forked from sabottenda/llvm-sample-target
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (27 loc) · 998 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
set(LLVM_TARGET_DEFINITIONS Sample.td)
tablegen(LLVM SampleGenAsmMatcher.inc -gen-asm-matcher)
tablegen(LLVM SampleGenAsmWriter.inc -gen-asm-writer)
tablegen(LLVM SampleGenCallingConv.inc -gen-callingconv)
tablegen(LLVM SampleGenDAGISel.inc -gen-dag-isel)
tablegen(LLVM SampleGenDisassemblerTables.inc -gen-disassembler)
tablegen(LLVM SampleGenInstrInfo.inc -gen-instr-info)
tablegen(LLVM SampleGenMCCodeEmitter.inc -gen-emitter)
tablegen(LLVM SampleGenRegisterInfo.inc -gen-register-info)
tablegen(LLVM SampleGenSubtargetInfo.inc -gen-subtarget)
add_public_tablegen_target(SampleCommonTableGen)
add_llvm_target(SampleCodeGen
SampleAsmPrinter.cpp
SampleFrameLowering.cpp
SampleISelDAGtoDAG.cpp
SampleISelLowering.cpp
SampleInstrInfo.cpp
SampleMachineFunction.cpp
SampleMCInstLower.cpp
SampleRegisterInfo.cpp
SampleSubtarget.cpp
SampleTargetMachine.cpp
SampleTargetObjectFile.cpp
)
add_subdirectory(Disassembler)
add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo)