1set(LLVM_TARGET_DEFINITIONS ARM.td)
2
3tablegen(LLVM ARMGenRegisterInfo.inc -gen-register-info)
4tablegen(LLVM ARMGenInstrInfo.inc -gen-instr-info)
5tablegen(LLVM ARMGenCodeEmitter.inc -gen-emitter)
6tablegen(LLVM ARMGenMCCodeEmitter.inc -gen-emitter -mc-emitter)
7tablegen(LLVM ARMGenMCPseudoLowering.inc -gen-pseudo-lowering)
8tablegen(LLVM ARMGenAsmWriter.inc -gen-asm-writer)
9tablegen(LLVM ARMGenAsmMatcher.inc -gen-asm-matcher)
10tablegen(LLVM ARMGenDAGISel.inc -gen-dag-isel)
11tablegen(LLVM ARMGenFastISel.inc -gen-fast-isel)
12tablegen(LLVM ARMGenCallingConv.inc -gen-callingconv)
13tablegen(LLVM ARMGenSubtargetInfo.inc -gen-subtarget)
14tablegen(LLVM ARMGenEDInfo.inc -gen-enhanced-disassembly-info)
15tablegen(LLVM ARMGenDisassemblerTables.inc -gen-disassembler)
16add_public_tablegen_target(ARMCommonTableGen)
17
18add_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  ARMHazardRecognizer.cpp
30  ARMISelDAGToDAG.cpp
31  ARMISelLowering.cpp
32  ARMInstrInfo.cpp
33  ARMJITInfo.cpp
34  ARMLoadStoreOptimizer.cpp
35  ARMMCInstLower.cpp
36  ARMMachineFunctionInfo.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
52add_dependencies(LLVMARMCodeGen intrinsics_gen)
53
54# workaround for hanging compilation on MSVC9, 10
55if( MSVC_VERSION EQUAL 1600 OR MSVC_VERSION EQUAL 1500 )
56set_property(
57  SOURCE ARMISelLowering.cpp
58  PROPERTY COMPILE_FLAGS "/Od"
59  )
60endif()
61
62add_subdirectory(TargetInfo)
63add_subdirectory(AsmParser)
64add_subdirectory(Disassembler)
65add_subdirectory(InstPrinter)
66add_subdirectory(MCTargetDesc)
67