-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
70 lines (62 loc) · 1.89 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
add_llvm_component_group(Cpu0)
set(LLVM_TARGET_DEFINITIONS Cpu0Asm.td)
tablegen(LLVM Cpu0GenAsmMatcher.inc -gen-asm-matcher)
set(LLVM_TARGET_DEFINITIONS Cpu0Other.td)
# Generate Cpu0GenRegisterInfo.inc and Cpu0GenInstrInfo.inc which included by
# your hand code C++ files.
# Cpu0GenRegisterInfo.inc came from Cpu0RegisterInfo.td, Cpu0GenInstrInfo.inc
# came from Cpu0InstrInfo.td.
tablegen(LLVM Cpu0GenRegisterInfo.inc -gen-register-info)
tablegen(LLVM Cpu0GenInstrInfo.inc -gen-instr-info)
tablegen(LLVM Cpu0GenDisassemblerTables.inc -gen-disassembler)
tablegen(LLVM Cpu0GenSubtargetInfo.inc -gen-subtarget)
tablegen(LLVM Cpu0GenMCPseudoLowering.inc -gen-pseudo-lowering)
tablegen(LLVM Cpu0GenDAGISel.inc -gen-dag-isel)
tablegen(LLVM Cpu0GenCallingConv.inc -gen-callingconv)
tablegen(LLVM Cpu0GenCodeEmitter.inc -gen-emitter)
tablegen(LLVM Cpu0GenMCCodeEmitter.inc -gen-emitter)
tablegen(LLVM Cpu0GenAsmWriter.inc -gen-asm-writer)
# Cpu0CommonTableGen must be defined
add_public_tablegen_target(Cpu0CommonTableGen)
# Cpu0CodeGen should match with LLVMBuild.txt Cpu0CodeGen
add_llvm_target(Cpu0CodeGen
Cpu0TargetMachine.cpp
Cpu0InstrInfo.cpp
Cpu0ISelLowering.cpp
Cpu0MachineFunction.cpp
Cpu0RegisterInfo.cpp
Cpu0FrameLowering.cpp
Cpu0SEFrameLowering.cpp
Cpu0SEInstrInfo.cpp
Cpu0SEISelLowering.cpp
Cpu0SERegisterInfo.cpp
Cpu0Subtarget.cpp
Cpu0TargetObjectFile.cpp
Cpu0AsmPrinter.cpp
Cpu0MCInstLower.cpp
Cpu0ISelDAGToDAG.cpp
Cpu0SEISelDAGToDAG.cpp
Cpu0AnalyzeImmediate.cpp
Cpu0BranchExpansion.cpp
LINK_COMPONENTS
Analysis
AsmPrinter
CodeGen
Core
MC
Cpu0Desc
Cpu0Info
Cpu0Disassembler
Cpu0AsmParser
SelectionDAG
Support
Target
GlobalISel
ADD_TO_COMPONENT
Cpu0
)
# Should match with "subdirectories = MCTargetDesc TargetInfo" in LLVMBuild.txt
add_subdirectory(TargetInfo)
add_subdirectory(MCTargetDesc)
add_subdirectory(Disassembler)
add_subdirectory(AsmParser)