diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2017-08-03 21:52:25 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2017-08-03 21:52:25 +0000 |
| commit | 250e050a50e4596ead4dfaf51975f37680d129ac (patch) | |
| tree | ec9d623d3fc92438335b942fa44b1dcf01849eb4 /llvm/lib/CodeGen | |
| parent | a5d3909678a7060ce5df3954acca98d47461dbae (diff) | |
| download | bcm5719-llvm-250e050a50e4596ead4dfaf51975f37680d129ac.tar.gz bcm5719-llvm-250e050a50e4596ead4dfaf51975f37680d129ac.zip | |
[GlobalISel] Make GlobalISel a non-optional library.
With this change, the GlobalISel library gets always built. In
particular, this is not possible to opt GlobalISel out of the build
using the LLVM_BUILD_GLOBAL_ISEL variable any more.
llvm-svn: 309990
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/CMakeLists.txt | 39 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp | 8 |
2 files changed, 13 insertions, 34 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt b/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt index eba7ea8132e..afe42b8cb84 100644 --- a/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt +++ b/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt @@ -1,34 +1,21 @@ -# List of all GlobalISel files. -set(GLOBAL_ISEL_FILES - CallLowering.cpp - IRTranslator.cpp - InstructionSelect.cpp - InstructionSelector.cpp - MachineIRBuilder.cpp - LegalizerHelper.cpp - Legalizer.cpp - LegalizerInfo.cpp - Localizer.cpp - RegBankSelect.cpp - RegisterBank.cpp - RegisterBankInfo.cpp - Utils.cpp - ) - -# Add GlobalISel files to the dependencies if the user wants to build it. -if(LLVM_BUILD_GLOBAL_ISEL) - set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES}) -else() - set(GLOBAL_ISEL_BUILD_FILES"") - set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES}) -endif() - # In LLVMBuild.txt files, it is not possible to mark a dependency to a # library as optional. So instead, generate an empty library if we did # not ask for it. add_llvm_library(LLVMGlobalISel - ${GLOBAL_ISEL_BUILD_FILES} + CallLowering.cpp GlobalISel.cpp + IRTranslator.cpp + InstructionSelect.cpp + InstructionSelector.cpp + LegalizerHelper.cpp + Legalizer.cpp + LegalizerInfo.cpp + Localizer.cpp + MachineIRBuilder.cpp + RegBankSelect.cpp + RegisterBank.cpp + RegisterBankInfo.cpp + Utils.cpp DEPENDS intrinsics_gen diff --git a/llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp b/llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp index 29d1209bb02..00c6a9d6315 100644 --- a/llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp +++ b/llvm/lib/CodeGen/GlobalISel/GlobalISel.cpp @@ -16,13 +16,6 @@ using namespace llvm; -#ifndef LLVM_BUILD_GLOBAL_ISEL - -void llvm::initializeGlobalISel(PassRegistry &Registry) { -} - -#else - void llvm::initializeGlobalISel(PassRegistry &Registry) { initializeIRTranslatorPass(Registry); initializeLegalizerPass(Registry); @@ -30,4 +23,3 @@ void llvm::initializeGlobalISel(PassRegistry &Registry) { initializeRegBankSelectPass(Registry); initializeInstructionSelectPass(Registry); } -#endif // LLVM_BUILD_GLOBAL_ISEL |

