2016-02-12 03:18:27 +08:00
|
|
|
# List of all GlobalISel files.
|
|
|
|
set(GLOBAL_ISEL_FILES
|
2016-08-30 03:07:08 +08:00
|
|
|
CallLowering.cpp
|
2016-02-12 03:18:27 +08:00
|
|
|
IRTranslator.cpp
|
2016-07-27 22:31:55 +08:00
|
|
|
InstructionSelect.cpp
|
|
|
|
InstructionSelector.cpp
|
2016-02-12 03:18:27 +08:00
|
|
|
MachineIRBuilder.cpp
|
2016-10-15 06:18:18 +08:00
|
|
|
LegalizerHelper.cpp
|
|
|
|
Legalizer.cpp
|
|
|
|
LegalizerInfo.cpp
|
2016-04-06 03:06:01 +08:00
|
|
|
RegBankSelect.cpp
|
2016-04-06 03:54:44 +08:00
|
|
|
RegisterBank.cpp
|
2016-04-06 04:02:47 +08:00
|
|
|
RegisterBankInfo.cpp
|
2016-02-12 03:18:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# 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.
|
2016-01-21 04:58:56 +08:00
|
|
|
add_llvm_library(LLVMGlobalISel
|
2016-02-12 03:18:27 +08:00
|
|
|
${GLOBAL_ISEL_BUILD_FILES}
|
2016-03-08 09:38:55 +08:00
|
|
|
GlobalISel.cpp
|
2016-01-21 04:58:56 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_dependencies(LLVMGlobalISel intrinsics_gen)
|