mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-22 20:18:38 +00:00
b6fca8cdd3
This reverts commit r299283. Didn't intend to commit this :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299287 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
924 B
CMake
35 lines
924 B
CMake
# 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
|
|
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}
|
|
GlobalISel.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|