summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-04-06 01:18:08 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-04-06 01:18:08 +0000
commit285c8ff75394a3f755312654a9e197082f4628a3 (patch)
treec3217646df93210ac4727f48c2788ad21aa2eb4a
parent58c4dd7a71300a0e542efc2de0ce6a605627913a (diff)
downloadbcm5719-llvm-285c8ff75394a3f755312654a9e197082f4628a3.tar.gz
bcm5719-llvm-285c8ff75394a3f755312654a9e197082f4628a3.zip
AArch64CodeGen: Make AArch64RegisterBankInfo.cpp optional along LLVM_BUILD_GLOBAL_ISEL.
llvm-svn: 265499
-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