aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CMakeLists.txt
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2023-04-17 23:46:47 +0900
committerNAKAMURA Takumi <geek4civic@gmail.com>2023-05-03 00:13:20 +0900
commit5d71ec6e448fa3ecb7e22368e97cf8274d5c84c6 (patch)
tree03c7e9d650c30f20a1dee069312ad9a055e47db5 /llvm/lib/CodeGen/CMakeLists.txt
parentc1221251fbb13f382f9142a8a75af2d3b372da7f (diff)
downloadllvm-5d71ec6e448fa3ecb7e22368e97cf8274d5c84c6.zip
llvm-5d71ec6e448fa3ecb7e22368e97cf8274d5c84c6.tar.gz
llvm-5d71ec6e448fa3ecb7e22368e97cf8274d5c84c6.tar.bz2
Split out `CodeGenTypes` from `CodeGen` for LLT/MVT
This reduces dependencies on `llvm-tblgen` so much. `CodeGenTypes` depends on `Support` at the moment. Be careful to append deps on this, since Targets' tablegens depend on this. Depends on D149024 Differential Revision: https://reviews.llvm.org/D148769
Diffstat (limited to 'llvm/lib/CodeGen/CMakeLists.txt')
-rw-r--r--llvm/lib/CodeGen/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt
index f264c45..9a138d0 100644
--- a/llvm/lib/CodeGen/CMakeLists.txt
+++ b/llvm/lib/CodeGen/CMakeLists.txt
@@ -22,6 +22,16 @@ if (DEFINED LLVM_HAVE_TF_AOT OR LLVM_HAVE_TFLITE)
endif()
endif()
+# This provides the implementation of MVT and LLT.
+# Be careful to append deps on this, since Targets' tablegens depend on this.
+add_llvm_component_library(LLVMCodeGenTypes
+ LowLevelType.cpp
+ PARTIAL_SOURCES_INTENDED
+
+ LINK_COMPONENTS
+ Support
+ )
+
add_llvm_component_library(LLVMCodeGen
AggressiveAntiDepBreaker.cpp
AllocationOrder.cpp
@@ -99,7 +109,6 @@ add_llvm_component_library(LLVMCodeGen
LLVMTargetMachine.cpp
LocalStackSlotAllocation.cpp
LoopTraversal.cpp
- LowLevelType.cpp
LowLevelTypeUtils.cpp
LowerEmuTLS.cpp
MachineBasicBlock.cpp
@@ -262,6 +271,7 @@ add_llvm_component_library(LLVMCodeGen
Analysis
BitReader
BitWriter
+ CodeGenTypes
Core
MC
ObjCARC