1set(LLVM_TARGET_DEFINITIONS XCore.td)
2
3tablegen(LLVM XCoreGenRegisterInfo.inc -gen-register-info)
4tablegen(LLVM XCoreGenInstrInfo.inc -gen-instr-info)
5tablegen(LLVM XCoreGenAsmWriter.inc -gen-asm-writer)
6tablegen(LLVM XCoreGenDAGISel.inc -gen-dag-isel)
7tablegen(LLVM XCoreGenCallingConv.inc -gen-callingconv)
8tablegen(LLVM XCoreGenSubtargetInfo.inc -gen-subtarget)
9add_public_tablegen_target(XCoreCommonTableGen)
10
11add_llvm_target(XCoreCodeGen
12  XCoreAsmPrinter.cpp
13  XCoreFrameLowering.cpp
14  XCoreInstrInfo.cpp
15  XCoreISelDAGToDAG.cpp
16  XCoreISelLowering.cpp
17  XCoreMachineFunctionInfo.cpp
18  XCoreRegisterInfo.cpp
19  XCoreSubtarget.cpp
20  XCoreTargetMachine.cpp
21  XCoreTargetObjectFile.cpp
22  XCoreSelectionDAGInfo.cpp
23  )
24
25add_dependencies(LLVMXCoreCodeGen intrinsics_gen)
26
27add_subdirectory(TargetInfo)
28add_subdirectory(MCTargetDesc)
29