summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/AArch64/CMakeLists.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/CMakeLists.txt b/llvm/lib/Target/AArch64/CMakeLists.txt
index a88332b1feb..37e2e6418a6 100644
--- a/llvm/lib/Target/AArch64/CMakeLists.txt
+++ b/llvm/lib/Target/AArch64/CMakeLists.txt
@@ -14,6 +14,18 @@ tablegen(LLVM AArch64GenSubtargetInfo.inc -gen-subtarget)
tablegen(LLVM AArch64GenDisassemblerTables.inc -gen-disassembler)
add_public_tablegen_target(AArch64CommonTableGen)
+set(GLOBAL_ISEL_FILES
+ AArch64RegisterBankInfo.cpp
+ )
+
+if(NOT LLVM_BUILD_GLOBAL_ISEL)
+ set(LLVM_OPTIONAL_SOURCES ${GLOBAL_ISEL_FILES})
+ set(GLOBAL_ISEL_FILES)
+endif()
+
+
+set(LLVM_OPTIONAL_SOURCES AArch64RegisterBankInfo.cpp)
+
add_llvm_target(AArch64CodeGen
AArch64A57FPLoadBalancing.cpp
AArch64AddressTypePromotion.cpp
@@ -38,7 +50,6 @@ add_llvm_target(AArch64CodeGen
AArch64MCInstLower.cpp
AArch64PromoteConstant.cpp
AArch64PBQPRegAlloc.cpp
- AArch64RegisterBankInfo.cpp
AArch64RegisterInfo.cpp
AArch64SelectionDAGInfo.cpp
AArch64StorePairSuppress.cpp
@@ -46,6 +57,7 @@ add_llvm_target(AArch64CodeGen
AArch64TargetMachine.cpp
AArch64TargetObjectFile.cpp
AArch64TargetTransformInfo.cpp
+ ${GLOBAL_ISEL_FILES}
)
add_dependencies(LLVMAArch64CodeGen intrinsics_gen)
OpenPOWER on IntegriCloud