Use explicit add_subdirectory's for LLVM target sublibraries instead
[oota-llvm.git] / lib / Target / ARM / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS ARM.td)
2
3 tablegen(ARMGenRegisterInfo.h.inc -gen-register-desc-header)
4 tablegen(ARMGenRegisterNames.inc -gen-register-enums)
5 tablegen(ARMGenRegisterInfo.inc -gen-register-desc)
6 tablegen(ARMGenInstrNames.inc -gen-instr-enums)
7 tablegen(ARMGenInstrInfo.inc -gen-instr-desc)
8 tablegen(ARMGenCodeEmitter.inc -gen-emitter)
9 tablegen(ARMGenMCCodeEmitter.inc -gen-emitter -mc-emitter)
10 tablegen(ARMGenAsmWriter.inc -gen-asm-writer)
11 tablegen(ARMGenAsmMatcher.inc -gen-asm-matcher)
12 tablegen(ARMGenDAGISel.inc -gen-dag-isel)
13 tablegen(ARMGenFastISel.inc -gen-fast-isel)
14 tablegen(ARMGenCallingConv.inc -gen-callingconv)
15 tablegen(ARMGenSubtarget.inc -gen-subtarget)
16 tablegen(ARMGenEDInfo.inc -gen-enhanced-disassembly-info)
17 tablegen(ARMGenDecoderTables.inc -gen-arm-decoder)
18
19 add_llvm_target(ARMCodeGen
20   ARMAsmBackend.cpp
21   ARMAsmPrinter.cpp
22   ARMBaseInstrInfo.cpp
23   ARMBaseRegisterInfo.cpp
24   ARMCodeEmitter.cpp
25   ARMConstantIslandPass.cpp
26   ARMConstantPoolValue.cpp
27   ARMELFWriterInfo.cpp
28   ARMExpandPseudoInsts.cpp
29   ARMFastISel.cpp
30   ARMFrameLowering.cpp
31   ARMGlobalMerge.cpp
32   ARMHazardRecognizer.cpp
33   ARMISelDAGToDAG.cpp
34   ARMISelLowering.cpp
35   ARMInstrInfo.cpp
36   ARMJITInfo.cpp
37   ARMMCCodeEmitter.cpp
38   ARMMCExpr.cpp
39   ARMLoadStoreOptimizer.cpp
40   ARMMCAsmInfo.cpp
41   ARMMCInstLower.cpp
42   ARMRegisterInfo.cpp
43   ARMSelectionDAGInfo.cpp
44   ARMSubtarget.cpp
45   ARMTargetMachine.cpp
46   ARMTargetObjectFile.cpp
47   MLxExpansionPass.cpp
48   NEONMoveFix.cpp
49   Thumb1InstrInfo.cpp
50   Thumb1FrameLowering.cpp
51   Thumb1RegisterInfo.cpp
52   Thumb2ITBlockPass.cpp
53   Thumb2InstrInfo.cpp
54   Thumb2RegisterInfo.cpp
55   Thumb2SizeReduction.cpp
56   )
57
58 # workaround for hanging compilation on MSVC10
59 if( MSVC_VERSION EQUAL 1600 )
60 set_property(
61   SOURCE ARMISelLowering.cpp
62   PROPERTY COMPILE_FLAGS "/Od"
63   )
64 endif()
65
66 add_subdirectory(TargetInfo)
67 add_subdirectory(AsmParser)
68 add_subdirectory(Disassembler)
69 add_subdirectory(InstPrinter)