[gn build] (semi-manually) port 009cd4e491

This commit is contained in:
Nico Weber 2020-09-10 15:10:12 -04:00
parent d867be5de3
commit 5692497aef
1 changed files with 19 additions and 0 deletions

View File

@ -18,17 +18,32 @@ tablegen("PPCGenFastISel") {
td_file = "PPC.td"
}
tablegen("PPCGenGlobalISel") {
visibility = [ ":LLVMPowerPCCodeGen" ]
args = [ "-gen-global-isel" ]
td_file = "PPC.td"
}
tablegen("PPCGenRegisterBank") {
visibility = [ ":LLVMPowerPCCodeGen" ]
args = [ "-gen-register-bank" ]
td_file = "PPC.td"
}
static_library("LLVMPowerPCCodeGen") {
deps = [
":PPCGenCallingConv",
":PPCGenDAGISel",
":PPCGenFastISel",
":PPCGenGlobalISel",
":PPCGenRegisterBank",
"MCTargetDesc",
"TargetInfo",
"//llvm/include/llvm/Config:llvm-config",
"//llvm/lib/Analysis",
"//llvm/lib/CodeGen",
"//llvm/lib/CodeGen/AsmPrinter",
"//llvm/lib/CodeGen/GlobalISel",
"//llvm/lib/CodeGen/SelectionDAG",
"//llvm/lib/IR",
"//llvm/lib/MC",
@ -38,6 +53,10 @@ static_library("LLVMPowerPCCodeGen") {
]
include_dirs = [ "." ]
sources = [
"GISel/PPCCallLowering.cpp",
"GISel/PPCInstructionSelector.cpp",
"GISel/PPCLegalizerInfo.cpp",
"GISel/PPCRegisterBankInfo.cpp",
"PPCAsmPrinter.cpp",
"PPCBoolRetToInt.cpp",
"PPCBranchCoalescing.cpp",