|
| 1 | +import("//llvm/utils/TableGen/tablegen.gni") |
| 2 | + |
| 3 | +tablegen("PPCGenCallingConv") { |
| 4 | + visibility = [ ":LLVMPowerPCCodeGen" ] |
| 5 | + args = [ "-gen-callingconv" ] |
| 6 | + td_file = "PPC.td" |
| 7 | +} |
| 8 | + |
| 9 | +tablegen("PPCGenDAGISel") { |
| 10 | + visibility = [ ":LLVMPowerPCCodeGen" ] |
| 11 | + args = [ "-gen-dag-isel" ] |
| 12 | + td_file = "PPC.td" |
| 13 | +} |
| 14 | + |
| 15 | +tablegen("PPCGenFastISel") { |
| 16 | + visibility = [ ":LLVMPowerPCCodeGen" ] |
| 17 | + args = [ "-gen-fast-isel" ] |
| 18 | + td_file = "PPC.td" |
| 19 | +} |
| 20 | + |
| 21 | +static_library("LLVMPowerPCCodeGen") { |
| 22 | + deps = [ |
| 23 | + ":PPCGenCallingConv", |
| 24 | + ":PPCGenDAGISel", |
| 25 | + ":PPCGenFastISel", |
| 26 | + "InstPrinter", |
| 27 | + "MCTargetDesc", |
| 28 | + "TargetInfo", |
| 29 | + "//llvm/include/llvm/Config:llvm-config", |
| 30 | + "//llvm/lib/Analysis", |
| 31 | + "//llvm/lib/CodeGen", |
| 32 | + "//llvm/lib/CodeGen/AsmPrinter", |
| 33 | + "//llvm/lib/CodeGen/SelectionDAG", |
| 34 | + "//llvm/lib/IR", |
| 35 | + "//llvm/lib/MC", |
| 36 | + "//llvm/lib/Support", |
| 37 | + "//llvm/lib/Target", |
| 38 | + "//llvm/lib/Transforms/Utils", |
| 39 | + ] |
| 40 | + include_dirs = [ "." ] |
| 41 | + sources = [ |
| 42 | + "PPCBoolRetToInt.cpp", |
| 43 | + "PPCAsmPrinter.cpp", |
| 44 | + "PPCBranchSelector.cpp", |
| 45 | + "PPCBranchCoalescing.cpp", |
| 46 | + "PPCCCState.cpp", |
| 47 | + "PPCCTRLoops.cpp", |
| 48 | + "PPCHazardRecognizers.cpp", |
| 49 | + "PPCInstrInfo.cpp", |
| 50 | + "PPCISelDAGToDAG.cpp", |
| 51 | + "PPCISelLowering.cpp", |
| 52 | + "PPCEarlyReturn.cpp", |
| 53 | + "PPCFastISel.cpp", |
| 54 | + "PPCFrameLowering.cpp", |
| 55 | + "PPCLoopPreIncPrep.cpp", |
| 56 | + "PPCMCInstLower.cpp", |
| 57 | + "PPCMachineFunctionInfo.cpp", |
| 58 | + "PPCMIPeephole.cpp", |
| 59 | + "PPCRegisterInfo.cpp", |
| 60 | + "PPCQPXLoadSplat.cpp", |
| 61 | + "PPCSubtarget.cpp", |
| 62 | + "PPCTargetMachine.cpp", |
| 63 | + "PPCTargetObjectFile.cpp", |
| 64 | + "PPCTargetTransformInfo.cpp", |
| 65 | + "PPCTOCRegDeps.cpp", |
| 66 | + "PPCTLSDynamicCall.cpp", |
| 67 | + "PPCVSXCopy.cpp", |
| 68 | + "PPCReduceCRLogicals.cpp", |
| 69 | + "PPCVSXFMAMutate.cpp", |
| 70 | + "PPCVSXSwapRemoval.cpp", |
| 71 | + "PPCExpandISEL.cpp", |
| 72 | + "PPCPreEmitPeephole.cpp", |
| 73 | + ] |
| 74 | +} |
| 75 | + |
| 76 | +# This is a bit different from most build files: Due to this group |
| 77 | +# having the directory's name, "//llvm/lib/Target/PowerPC" will refer to this |
| 78 | +# target, which pulls in the code in this directory *and all subdirectories*. |
| 79 | +# For most other directories, "//llvm/lib/Foo" only pulls in the code directly |
| 80 | +# in "llvm/lib/Foo". The forwarding targets in //llvm/lib/Target expect this |
| 81 | +# different behavior. |
| 82 | +group("PowerPC") { |
| 83 | + deps = [ |
| 84 | + ":LLVMPowerPCCodeGen", |
| 85 | + "AsmParser", |
| 86 | + "Disassembler", |
| 87 | + "InstPrinter", |
| 88 | + "MCTargetDesc", |
| 89 | + "TargetInfo", |
| 90 | + ] |
| 91 | +} |
0 commit comments