[llvm] r265499 - AArch64CodeGen: Make AArch64RegisterBankInfo.cpp optional along LLVM_BUILD_GLOBAL_ISEL.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 5 18:18:08 PDT 2016
Author: chapuni
Date: Tue Apr 5 20:18:08 2016
New Revision: 265499
URL: http://llvm.org/viewvc/llvm-project?rev=265499&view=rev
Log:
AArch64CodeGen: Make AArch64RegisterBankInfo.cpp optional along LLVM_BUILD_GLOBAL_ISEL.
Modified:
llvm/trunk/lib/Target/AArch64/CMakeLists.txt
Modified: llvm/trunk/lib/Target/AArch64/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/CMakeLists.txt?rev=265499&r1=265498&r2=265499&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/AArch64/CMakeLists.txt Tue Apr 5 20:18:08 2016
@@ -14,6 +14,18 @@ tablegen(LLVM AArch64GenSubtargetInfo.in
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)
More information about the llvm-commits
mailing list