Move ARMMachObjectWriter to its own file.
[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   ARMMachObjectWriter.cpp
38   ARMMCCodeEmitter.cpp
39   ARMMCExpr.cpp
40   ARMLoadStoreOptimizer.cpp
41   ARMMCAsmInfo.cpp
42   ARMMCInstLower.cpp
43   ARMRegisterInfo.cpp
44   ARMSelectionDAGInfo.cpp
45   ARMSubtarget.cpp
46   ARMTargetMachine.cpp
47   ARMTargetObjectFile.cpp
48   MLxExpansionPass.cpp
49   NEONMoveFix.cpp
50   Thumb1InstrInfo.cpp
51   Thumb1FrameLowering.cpp
52   Thumb1RegisterInfo.cpp
53   Thumb2ITBlockPass.cpp
54   Thumb2InstrInfo.cpp
55   Thumb2RegisterInfo.cpp
56   Thumb2SizeReduction.cpp
57   )
58
59 # workaround for hanging compilation on MSVC10
60 if( MSVC_VERSION EQUAL 1600 )
61 set_property(
62   SOURCE ARMISelLowering.cpp
63   PROPERTY COMPILE_FLAGS "/Od"
64   )
65 endif()
66
67 add_subdirectory(TargetInfo)
68 add_subdirectory(AsmParser)
69 add_subdirectory(Disassembler)
70 add_subdirectory(InstPrinter)