@@ -7,18 +7,25 @@ add_subdirectory(Common)
7
7
8
8
set (LLVM_LINK_COMPONENTS Support )
9
9
10
- # llvm-min-tablegen only contains a subset of backends necessary to
11
- # build llvm/include. It must not depend on TableGenCommon, as
12
- # TableGenCommon depends on this already to generate things such as
13
- # ValueType definitions.
14
- add_tablegen (llvm-min-tblgen LLVM_HEADERS
10
+ # Sources included in llvm-min-tblgen and llvm-tblgen.
11
+ add_llvm_library (LLVMTableGenBoth OBJECT EXCLUDE_FROM_ALL DISABLE_LLVM_LINK_LLVM_DYLIB
15
12
TableGen.cpp
16
13
ARMTargetDefEmitter.cpp
17
14
Attributes.cpp
18
15
DirectiveEmitter.cpp
19
16
IntrinsicEmitter.cpp
20
17
RISCVTargetDefEmitter.cpp
21
18
VTEmitter.cpp
19
+
20
+ PARTIAL_SOURCES_INTENDED
21
+ )
22
+
23
+ # llvm-min-tablegen only contains a subset of backends necessary to
24
+ # build llvm/include. It must not depend on TableGenCommon, as
25
+ # TableGenCommon depends on this already to generate things such as
26
+ # ValueType definitions.
27
+ add_tablegen (llvm-min-tblgen LLVM_HEADERS
28
+ $< TARGET_OBJECTS:obj.LLVMTableGenBoth>
22
29
$< TARGET_OBJECTS:obj.LLVMTableGenBasic>
23
30
24
31
PARTIAL_SOURCES_INTENDED
@@ -32,10 +39,8 @@ set(LLVM_LINK_COMPONENTS
32
39
add_tablegen (llvm-tblgen LLVM
33
40
DESTINATION "${LLVM_TOOLS_INSTALL_DIR} "
34
41
EXPORT LLVM
35
- ARMTargetDefEmitter.cpp
36
42
AsmMatcherEmitter.cpp
37
43
AsmWriterEmitter.cpp
38
- Attributes.cpp
39
44
CallingConvEmitter.cpp
40
45
CodeEmitterGen.cpp
41
46
CodeGenMapTable.cpp
@@ -48,7 +53,6 @@ add_tablegen(llvm-tblgen LLVM
48
53
DecoderEmitter.cpp
49
54
DFAEmitter.cpp
50
55
DFAPacketizerEmitter.cpp
51
- DirectiveEmitter.cpp
52
56
DisassemblerEmitter.cpp
53
57
DXILEmitter.cpp
54
58
ExegesisEmitter.cpp
@@ -57,25 +61,23 @@ add_tablegen(llvm-tblgen LLVM
57
61
GlobalISelEmitter.cpp
58
62
InstrDocsEmitter.cpp
59
63
InstrInfoEmitter.cpp
60
- IntrinsicEmitter.cpp
61
64
MacroFusionPredicatorEmitter.cpp
62
65
OptionParserEmitter.cpp
63
66
OptionRSTEmitter.cpp
64
67
PseudoLoweringEmitter.cpp
65
68
RegisterBankEmitter.cpp
66
69
RegisterInfoEmitter.cpp
67
- RISCVTargetDefEmitter.cpp
68
70
SearchableTableEmitter.cpp
69
71
SubtargetEmitter.cpp
70
- TableGen.cpp
71
- VTEmitter.cpp
72
72
WebAssemblyDisassemblerEmitter.cpp
73
73
X86InstrMappingEmitter.cpp
74
74
X86DisassemblerTables.cpp
75
75
X86FoldTablesEmitter.cpp
76
76
X86MnemonicTables.cpp
77
77
X86ModRMFilters.cpp
78
78
X86RecognizableInstr.cpp
79
+
80
+ $< TARGET_OBJECTS:obj.LLVMTableGenBoth>
79
81
$< TARGET_OBJECTS:obj.LLVMTableGenBasic>
80
82
$< TARGET_OBJECTS:obj.LLVMTableGenCommon>
81
83
0 commit comments