[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / utils / TableGen / CMakeLists.txt
blobba1e4aa01b48d64547e6baf5a8aa4d0d86a0fe42
1 # Basic utilities which is the strict minimum needed to build
2 # llvm-min-tblgen.
3 add_subdirectory(Basic)
4 # Common utilities are all of the reusable components and helper
5 # code needed by the backends.
6 add_subdirectory(Common)
8 set(LLVM_LINK_COMPONENTS Support)
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
15   TableGen.cpp
16   ARMTargetDefEmitter.cpp
17   Attributes.cpp
18   DirectiveEmitter.cpp
19   IntrinsicEmitter.cpp
20   RISCVTargetDefEmitter.cpp
21   VTEmitter.cpp
22   $<TARGET_OBJECTS:obj.LLVMTableGenBasic>
24   PARTIAL_SOURCES_INTENDED
25   )
27 set(LLVM_LINK_COMPONENTS
28   CodeGenTypes
29   Support
30   )
32 add_tablegen(llvm-tblgen LLVM
33   DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
34   EXPORT LLVM
35   ARMTargetDefEmitter.cpp
36   AsmMatcherEmitter.cpp
37   AsmWriterEmitter.cpp
38   Attributes.cpp
39   CallingConvEmitter.cpp
40   CodeEmitterGen.cpp
41   CodeGenMapTable.cpp
42   CompressInstEmitter.cpp
43   CTagsEmitter.cpp
44   DAGISelEmitter.cpp
45   DAGISelMatcherEmitter.cpp
46   DAGISelMatcherGen.cpp
47   DAGISelMatcherOpt.cpp
48   DecoderEmitter.cpp
49   DFAEmitter.cpp
50   DFAPacketizerEmitter.cpp
51   DirectiveEmitter.cpp
52   DisassemblerEmitter.cpp
53   DXILEmitter.cpp
54   ExegesisEmitter.cpp
55   FastISelEmitter.cpp
56   GlobalISelCombinerEmitter.cpp
57   GlobalISelEmitter.cpp
58   InstrDocsEmitter.cpp
59   InstrInfoEmitter.cpp
60   IntrinsicEmitter.cpp
61   MacroFusionPredicatorEmitter.cpp
62   OptionParserEmitter.cpp
63   OptionRSTEmitter.cpp
64   PseudoLoweringEmitter.cpp
65   RegisterBankEmitter.cpp
66   RegisterInfoEmitter.cpp
67   RISCVTargetDefEmitter.cpp
68   SearchableTableEmitter.cpp
69   SubtargetEmitter.cpp
70   TableGen.cpp
71   VTEmitter.cpp
72   WebAssemblyDisassemblerEmitter.cpp
73   X86InstrMappingEmitter.cpp
74   X86DisassemblerTables.cpp
75   X86FoldTablesEmitter.cpp
76   X86MnemonicTables.cpp
77   X86ModRMFilters.cpp
78   X86RecognizableInstr.cpp
79   $<TARGET_OBJECTS:obj.LLVMTableGenBasic>
80   $<TARGET_OBJECTS:obj.LLVMTableGenCommon>
82   DEPENDS
83   intrinsics_gen # via llvm-min-tablegen
84   )