dc9f4d6fd550b6e3d44b45da9370b0bf19d231ac
[oota-llvm.git] / lib / Target / ARM / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS ARM.td)
2
3 tablegen(ARMGenRegisterInfo.inc -gen-register-info)
4 tablegen(ARMGenInstrInfo.inc -gen-instr-info)
5 tablegen(ARMGenCodeEmitter.inc -gen-emitter)
6 tablegen(ARMGenMCCodeEmitter.inc -gen-emitter -mc-emitter)
7 tablegen(ARMGenMCPseudoLowering.inc -gen-pseudo-lowering)
8 tablegen(ARMGenAsmWriter.inc -gen-asm-writer)
9 tablegen(ARMGenAsmMatcher.inc -gen-asm-matcher)
10 tablegen(ARMGenDAGISel.inc -gen-dag-isel)
11 tablegen(ARMGenFastISel.inc -gen-fast-isel)
12 tablegen(ARMGenCallingConv.inc -gen-callingconv)
13 tablegen(ARMGenSubtargetInfo.inc -gen-subtarget)
14 tablegen(ARMGenEDInfo.inc -gen-enhanced-disassembly-info)
15 tablegen(ARMGenDisassemblerTables.inc -gen-disassembler)
16 add_public_tablegen_target(ARMCommonTableGen)
17
18 add_llvm_target(ARMCodeGen
19   ARMAsmPrinter.cpp
20   ARMBaseInstrInfo.cpp
21   ARMBaseRegisterInfo.cpp
22   ARMCodeEmitter.cpp
23   ARMConstantIslandPass.cpp
24   ARMConstantPoolValue.cpp
25   ARMELFWriterInfo.cpp
26   ARMExpandPseudoInsts.cpp
27   ARMFastISel.cpp
28   ARMFrameLowering.cpp
29   ARMGlobalMerge.cpp
30   ARMHazardRecognizer.cpp
31   ARMISelDAGToDAG.cpp
32   ARMISelLowering.cpp
33   ARMInstrInfo.cpp
34   ARMJITInfo.cpp
35   ARMLoadStoreOptimizer.cpp
36   ARMMCInstLower.cpp
37   ARMRegisterInfo.cpp
38   ARMSelectionDAGInfo.cpp
39   ARMSubtarget.cpp
40   ARMTargetMachine.cpp
41   ARMTargetObjectFile.cpp
42   MLxExpansionPass.cpp
43   Thumb1FrameLowering.cpp
44   Thumb1InstrInfo.cpp
45   Thumb1RegisterInfo.cpp
46   Thumb2ITBlockPass.cpp
47   Thumb2InstrInfo.cpp
48   Thumb2RegisterInfo.cpp
49   Thumb2SizeReduction.cpp
50   )
51
52 add_llvm_library_dependencies(LLVMARMCodeGen
53   LLVMARMAsmPrinter
54   LLVMARMDesc
55   LLVMARMInfo
56   LLVMAnalysis
57   LLVMAsmPrinter
58   LLVMCodeGen
59   LLVMCore
60   LLVMMC
61   LLVMSelectionDAG
62   LLVMSupport
63   LLVMTarget
64   )
65
66 # workaround for hanging compilation on MSVC10
67 if( MSVC_VERSION EQUAL 1600 )
68 set_property(
69   SOURCE ARMISelLowering.cpp
70   PROPERTY COMPILE_FLAGS "/Od"
71   )
72 endif()
73
74 add_subdirectory(TargetInfo)
75 add_subdirectory(AsmParser)
76 add_subdirectory(Disassembler)
77 add_subdirectory(InstPrinter)
78 add_subdirectory(MCTargetDesc)