Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bolt
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2022-04-30 06:37:32 +0300
committerAmir Ayupov <amir.aupov@gmail.com>2022-04-30 06:37:53 +0300
commit64421e191bb23d67a2cd2777dbae9bd171d79482 (patch)
tree812c4924c22dc62af9d1e62a4a25429372917ba1 /bolt
parent41b951c92931b65c25485b224901d8cb00163b8e (diff)
[BOLT][NFC] Reduce Target/{AArch64,X86} dependencies
We don't actually depend on entire X86/AArch64 components that pull in CodeGen, SelectionDAG etc., just the Desc part with opcode and other definitions. Note that it doesn't decouple BOLT from these components - we still pull in X86 and AArch64 from top-level llvm-bolt dependencies as we use assembler and disassembler. It's difficult to reduce these as this requires non-trivial changes to X86/AArch64 components themselves (e.g. moving out AsmPrinter). Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D124206
Diffstat (limited to 'bolt')
-rw-r--r--bolt/lib/Target/AArch64/CMakeLists.txt9
-rw-r--r--bolt/lib/Target/X86/CMakeLists.txt9
2 files changed, 10 insertions, 8 deletions
diff --git a/bolt/lib/Target/AArch64/CMakeLists.txt b/bolt/lib/Target/AArch64/CMakeLists.txt
index d9b07d73eda8..96c70168196e 100644
--- a/bolt/lib/Target/AArch64/CMakeLists.txt
+++ b/bolt/lib/Target/AArch64/CMakeLists.txt
@@ -1,17 +1,18 @@
set(LLVM_LINK_COMPONENTS
BOLTCore
MC
- Object
Support
- ${LLVM_TARGETS_TO_BUILD}
+ AArch64Desc
)
add_llvm_library(LLVMBOLTTargetAArch64
AArch64MCPlusBuilder.cpp
DEPENDS
- intrinsics_gen
AArch64CommonTableGen
)
-include_directories(${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64 ${LLVM_BINARY_DIR}/lib/Target/AArch64)
+include_directories(
+ ${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64
+ ${LLVM_BINARY_DIR}/lib/Target/AArch64
+ )
diff --git a/bolt/lib/Target/X86/CMakeLists.txt b/bolt/lib/Target/X86/CMakeLists.txt
index 87f0e248abcf..8d4ec2d09e07 100644
--- a/bolt/lib/Target/X86/CMakeLists.txt
+++ b/bolt/lib/Target/X86/CMakeLists.txt
@@ -2,17 +2,18 @@ set(LLVM_LINK_COMPONENTS
BOLTCore
BOLTUtils
MC
- Object
Support
- ${LLVM_TARGETS_TO_BUILD}
+ X86Desc
)
add_llvm_library(LLVMBOLTTargetX86
X86MCPlusBuilder.cpp
DEPENDS
- intrinsics_gen
X86CommonTableGen
)
-include_directories(${LLVM_MAIN_SRC_DIR}/lib/Target/X86 ${LLVM_BINARY_DIR}/lib/Target/X86)
+include_directories(
+ ${LLVM_MAIN_SRC_DIR}/lib/Target/X86
+ ${LLVM_BINARY_DIR}/lib/Target/X86
+ )