Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / utils / TableGen / CMakeLists.txt
blob071ea3bc07054bbad31793270706527abdd375af
1 add_subdirectory(GlobalISel)
3 add_llvm_library(LLVMTableGenCommon STATIC OBJECT EXCLUDE_FROM_ALL
4   Attributes.cpp
5   CodeGenIntrinsics.cpp
6   DirectiveEmitter.cpp
7   IntrinsicEmitter.cpp
8   RISCVTargetDefEmitter.cpp
9   SDNodeProperties.cpp
10   VTEmitter.cpp
11   PARTIAL_SOURCES_INTENDED
13   LINK_COMPONENTS
14   Support
15   TableGen
16   )
17 set_target_properties(LLVMTableGenCommon PROPERTIES FOLDER "Tablegenning")
19 set(LLVM_LINK_COMPONENTS Support)
21 add_tablegen(llvm-min-tblgen LLVM_HEADERS
22   TableGen.cpp
23   $<TARGET_OBJECTS:obj.LLVMTableGenCommon>
24   PARTIAL_SOURCES_INTENDED
25   )
26 set_target_properties(llvm-min-tblgen PROPERTIES FOLDER "Tablegenning")
28 set(LLVM_LINK_COMPONENTS
29   CodeGenTypes
30   Support
31   )
33 add_tablegen(llvm-tblgen LLVM
34   DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
35   EXPORT LLVM
36   AsmMatcherEmitter.cpp
37   AsmWriterEmitter.cpp
38   AsmWriterInst.cpp
39   CTagsEmitter.cpp
40   CallingConvEmitter.cpp
41   CodeEmitterGen.cpp
42   CodeGenDAGPatterns.cpp
43   CodeGenHwModes.cpp
44   CodeGenInstAlias.cpp
45   CodeGenInstruction.cpp
46   CodeGenMapTable.cpp
47   CodeGenRegisters.cpp
48   CodeGenSchedule.cpp
49   CodeGenTarget.cpp
50   DAGISelEmitter.cpp
51   DAGISelMatcherEmitter.cpp
52   DAGISelMatcherGen.cpp
53   DAGISelMatcherOpt.cpp
54   DAGISelMatcher.cpp
55   DecoderEmitter.cpp
56   DFAEmitter.cpp
57   DFAPacketizerEmitter.cpp
58   DisassemblerEmitter.cpp
59   DXILEmitter.cpp
60   ExegesisEmitter.cpp
61   FastISelEmitter.cpp
62   GlobalISelCombinerEmitter.cpp
63   GlobalISelEmitter.cpp
64   GlobalISelMatchTable.cpp
65   GlobalISelMatchTableExecutorEmitter.cpp
66   InfoByHwMode.cpp
67   InstrInfoEmitter.cpp
68   InstrDocsEmitter.cpp
69   OptEmitter.cpp
70   OptParserEmitter.cpp
71   OptRSTEmitter.cpp
72   PredicateExpander.cpp
73   PseudoLoweringEmitter.cpp
74   CompressInstEmitter.cpp
75   RegisterBankEmitter.cpp
76   RegisterInfoEmitter.cpp
77   SearchableTableEmitter.cpp
78   SubtargetEmitter.cpp
79   SubtargetFeatureInfo.cpp
80   TableGen.cpp
81   Types.cpp
82   VarLenCodeEmitterGen.cpp
83   X86DisassemblerTables.cpp
84   X86EVEX2VEXTablesEmitter.cpp
85   X86FoldTablesEmitter.cpp
86   X86MnemonicTables.cpp
87   X86ModRMFilters.cpp
88   X86RecognizableInstr.cpp
89   WebAssemblyDisassemblerEmitter.cpp
90   $<TARGET_OBJECTS:obj.LLVMTableGenCommon>
92   DEPENDS
93   intrinsics_gen # via llvm-min-tablegen
94   )
95 target_link_libraries(llvm-tblgen PRIVATE LLVMTableGenGlobalISel)
96 set_target_properties(llvm-tblgen PROPERTIES FOLDER "Tablegenning")