llvm.org GIT mirror llvm / 74decf8
[gn build] Add some llvm/tools: llvm-mca, llvm-mt Also add build file for dependency llvm/lib/MCA. Needed for check-llvm. Differential Revision: https://reviews.llvm.org/D56166 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350213 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
4 changed file(s) with 81 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
77 "//llvm/tools/llvm-exegesis",
88 "//llvm/tools/llvm-extract",
99 "//llvm/tools/llvm-link",
10 "//llvm/tools/llvm-mca",
11 "//llvm/tools/llvm-mt",
1012 "//llvm/tools/llvm-rc",
1113 "//llvm/tools/llvm-rtdyld",
1214 "//llvm/tools/llvm-size",
0 static_library("MCA") {
1 output_name = "LLVMMCA"
2 deps = [
3 "//llvm/lib/CodeGen",
4 "//llvm/lib/MC",
5 "//llvm/lib/Support",
6 ]
7 include_dirs = [ "../include" ]
8 sources = [
9 "Context.cpp",
10 "HWEventListener.cpp",
11 "HardwareUnits/HardwareUnit.cpp",
12 "HardwareUnits/LSUnit.cpp",
13 "HardwareUnits/RegisterFile.cpp",
14 "HardwareUnits/ResourceManager.cpp",
15 "HardwareUnits/RetireControlUnit.cpp",
16 "HardwareUnits/Scheduler.cpp",
17 "InstrBuilder.cpp",
18 "Instruction.cpp",
19 "Pipeline.cpp",
20 "Stages/DispatchStage.cpp",
21 "Stages/EntryStage.cpp",
22 "Stages/ExecuteStage.cpp",
23 "Stages/InstructionTables.cpp",
24 "Stages/RetireStage.cpp",
25 "Stages/Stage.cpp",
26 "Support.cpp",
27 ]
28 }
0 executable("llvm-mca") {
1 deps = [
2 "//llvm/lib/MC",
3 "//llvm/lib/MC/MCParser",
4 "//llvm/lib/MCA",
5 "//llvm/lib/Support",
6 "//llvm/lib/Target:AllTargetsAsmParsers",
7 "//llvm/lib/Target:AllTargetsAsmPrinters",
8 "//llvm/lib/Target:AllTargetsDescs",
9 "//llvm/lib/Target:AllTargetsDisassemblers",
10 "//llvm/lib/Target:AllTargetsInfos",
11 ]
12 include_dirs = [
13 ".",
14 "include",
15 ]
16 sources = [
17 "CodeRegion.cpp",
18 "CodeRegionGenerator.cpp",
19 "PipelinePrinter.cpp",
20 "Views/DispatchStatistics.cpp",
21 "Views/InstructionInfoView.cpp",
22 "Views/RegisterFileStatistics.cpp",
23 "Views/ResourcePressureView.cpp",
24 "Views/RetireControlUnitStatistics.cpp",
25 "Views/SchedulerStatistics.cpp",
26 "Views/SummaryView.cpp",
27 "Views/TimelineView.cpp",
28 "Views/View.cpp",
29 "llvm-mca.cpp",
30 ]
31 }
0 import("//llvm/utils/TableGen/tablegen.gni")
1
2 tablegen("Opts") {
3 visibility = [ ":llvm-mt" ]
4 args = [ "-gen-opt-parser-defs" ]
5 }
6
7 executable("llvm-mt") {
8 deps = [
9 ":Opts",
10 "//llvm/lib/Option",
11 "//llvm/lib/Support",
12 "//llvm/lib/WindowsManifest",
13 ]
14 sources = [
15 "llvm-mt.cpp",
16 ]
17 }