mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[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 llvm-svn: 350213
This commit is contained in:
parent
eacf2bc7ff
commit
3c4bb8f80e
@ -8,6 +8,8 @@ group("default") {
|
||||
"//llvm/tools/llvm-exegesis",
|
||||
"//llvm/tools/llvm-extract",
|
||||
"//llvm/tools/llvm-link",
|
||||
"//llvm/tools/llvm-mca",
|
||||
"//llvm/tools/llvm-mt",
|
||||
"//llvm/tools/llvm-rc",
|
||||
"//llvm/tools/llvm-rtdyld",
|
||||
"//llvm/tools/llvm-size",
|
||||
|
29
utils/gn/secondary/llvm/lib/MCA/BUILD.gn
Normal file
29
utils/gn/secondary/llvm/lib/MCA/BUILD.gn
Normal file
@ -0,0 +1,29 @@
|
||||
static_library("MCA") {
|
||||
output_name = "LLVMMCA"
|
||||
deps = [
|
||||
"//llvm/lib/CodeGen",
|
||||
"//llvm/lib/MC",
|
||||
"//llvm/lib/Support",
|
||||
]
|
||||
include_dirs = [ "../include" ]
|
||||
sources = [
|
||||
"Context.cpp",
|
||||
"HWEventListener.cpp",
|
||||
"HardwareUnits/HardwareUnit.cpp",
|
||||
"HardwareUnits/LSUnit.cpp",
|
||||
"HardwareUnits/RegisterFile.cpp",
|
||||
"HardwareUnits/ResourceManager.cpp",
|
||||
"HardwareUnits/RetireControlUnit.cpp",
|
||||
"HardwareUnits/Scheduler.cpp",
|
||||
"InstrBuilder.cpp",
|
||||
"Instruction.cpp",
|
||||
"Pipeline.cpp",
|
||||
"Stages/DispatchStage.cpp",
|
||||
"Stages/EntryStage.cpp",
|
||||
"Stages/ExecuteStage.cpp",
|
||||
"Stages/InstructionTables.cpp",
|
||||
"Stages/RetireStage.cpp",
|
||||
"Stages/Stage.cpp",
|
||||
"Support.cpp",
|
||||
]
|
||||
}
|
32
utils/gn/secondary/llvm/tools/llvm-mca/BUILD.gn
Normal file
32
utils/gn/secondary/llvm/tools/llvm-mca/BUILD.gn
Normal file
@ -0,0 +1,32 @@
|
||||
executable("llvm-mca") {
|
||||
deps = [
|
||||
"//llvm/lib/MC",
|
||||
"//llvm/lib/MC/MCParser",
|
||||
"//llvm/lib/MCA",
|
||||
"//llvm/lib/Support",
|
||||
"//llvm/lib/Target:AllTargetsAsmParsers",
|
||||
"//llvm/lib/Target:AllTargetsAsmPrinters",
|
||||
"//llvm/lib/Target:AllTargetsDescs",
|
||||
"//llvm/lib/Target:AllTargetsDisassemblers",
|
||||
"//llvm/lib/Target:AllTargetsInfos",
|
||||
]
|
||||
include_dirs = [
|
||||
".",
|
||||
"include",
|
||||
]
|
||||
sources = [
|
||||
"CodeRegion.cpp",
|
||||
"CodeRegionGenerator.cpp",
|
||||
"PipelinePrinter.cpp",
|
||||
"Views/DispatchStatistics.cpp",
|
||||
"Views/InstructionInfoView.cpp",
|
||||
"Views/RegisterFileStatistics.cpp",
|
||||
"Views/ResourcePressureView.cpp",
|
||||
"Views/RetireControlUnitStatistics.cpp",
|
||||
"Views/SchedulerStatistics.cpp",
|
||||
"Views/SummaryView.cpp",
|
||||
"Views/TimelineView.cpp",
|
||||
"Views/View.cpp",
|
||||
"llvm-mca.cpp",
|
||||
]
|
||||
}
|
18
utils/gn/secondary/llvm/tools/llvm-mt/BUILD.gn
Normal file
18
utils/gn/secondary/llvm/tools/llvm-mt/BUILD.gn
Normal file
@ -0,0 +1,18 @@
|
||||
import("//llvm/utils/TableGen/tablegen.gni")
|
||||
|
||||
tablegen("Opts") {
|
||||
visibility = [ ":llvm-mt" ]
|
||||
args = [ "-gen-opt-parser-defs" ]
|
||||
}
|
||||
|
||||
executable("llvm-mt") {
|
||||
deps = [
|
||||
":Opts",
|
||||
"//llvm/lib/Option",
|
||||
"//llvm/lib/Support",
|
||||
"//llvm/lib/WindowsManifest",
|
||||
]
|
||||
sources = [
|
||||
"llvm-mt.cpp",
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user