OSDN Git Service

[CMake] NFC. Updating CMake dependency specifications
[android-x86/external-llvm.git] / lib / Target / AArch64 / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS AArch64.td)
2
3 tablegen(LLVM AArch64GenRegisterInfo.inc -gen-register-info)
4 tablegen(LLVM AArch64GenInstrInfo.inc -gen-instr-info)
5 tablegen(LLVM AArch64GenMCCodeEmitter.inc -gen-emitter)
6 tablegen(LLVM AArch64GenMCPseudoLowering.inc -gen-pseudo-lowering)
7 tablegen(LLVM AArch64GenAsmWriter.inc -gen-asm-writer)
8 tablegen(LLVM AArch64GenAsmWriter1.inc -gen-asm-writer -asmwriternum=1)
9 tablegen(LLVM AArch64GenAsmMatcher.inc -gen-asm-matcher)
10 tablegen(LLVM AArch64GenDAGISel.inc -gen-dag-isel)
11 tablegen(LLVM AArch64GenFastISel.inc -gen-fast-isel)
12 tablegen(LLVM AArch64GenCallingConv.inc -gen-callingconv)
13 tablegen(LLVM AArch64GenSubtargetInfo.inc -gen-subtarget)
14 tablegen(LLVM AArch64GenDisassemblerTables.inc -gen-disassembler)
15 tablegen(LLVM AArch64GenSystemOperands.inc -gen-searchable-tables)
16
17 add_public_tablegen_target(AArch64CommonTableGen)
18
19 # List of all GlobalISel files.
20 set(GLOBAL_ISEL_FILES
21       AArch64CallLowering.cpp
22       AArch64InstructionSelector.cpp
23       AArch64LegalizerInfo.cpp
24       AArch64RegisterBankInfo.cpp
25       )
26
27 # Add GlobalISel files to the dependencies if the user wants to build it.
28 if(LLVM_BUILD_GLOBAL_ISEL)
29   set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES})
30 else()
31   set(GLOBAL_ISEL_BUILD_FILES"")
32   set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES})
33 endif()
34
35
36 add_llvm_target(AArch64CodeGen
37   AArch64A57FPLoadBalancing.cpp
38   AArch64AddressTypePromotion.cpp
39   AArch64AdvSIMDScalarPass.cpp
40   AArch64AsmPrinter.cpp
41   AArch64CleanupLocalDynamicTLSPass.cpp
42   AArch64CollectLOH.cpp
43   AArch64ConditionalCompares.cpp
44   AArch64DeadRegisterDefinitionsPass.cpp
45   AArch64ExpandPseudoInsts.cpp
46   AArch64FastISel.cpp
47   AArch64A53Fix835769.cpp
48   AArch64FrameLowering.cpp
49   AArch64ConditionOptimizer.cpp
50   AArch64RedundantCopyElimination.cpp
51   AArch64ISelDAGToDAG.cpp
52   AArch64ISelLowering.cpp
53   AArch64InstrInfo.cpp
54   AArch64LoadStoreOptimizer.cpp
55   AArch64MCInstLower.cpp
56   AArch64PromoteConstant.cpp
57   AArch64PBQPRegAlloc.cpp
58   AArch64RegisterInfo.cpp
59   AArch64SelectionDAGInfo.cpp
60   AArch64StorePairSuppress.cpp
61   AArch64Subtarget.cpp
62   AArch64TargetMachine.cpp
63   AArch64TargetObjectFile.cpp
64   AArch64TargetTransformInfo.cpp
65   AArch64VectorByElementOpt.cpp
66   ${GLOBAL_ISEL_BUILD_FILES}
67
68   DEPENDS
69   intrinsics_gen
70 )
71
72 add_subdirectory(TargetInfo)
73 add_subdirectory(AsmParser)
74 add_subdirectory(Disassembler)
75 add_subdirectory(InstPrinter)
76 add_subdirectory(MCTargetDesc)
77 add_subdirectory(Utils)