2016-02-12 03:18:27 +08:00
|
|
|
# List of all GlobalISel files.
|
|
|
|
set(GLOBAL_ISEL_FILES
|
|
|
|
IRTranslator.cpp
|
|
|
|
MachineIRBuilder.cpp
|
2016-07-23 04:03:43 +08:00
|
|
|
MachineLegalizeHelper.cpp
|
|
|
|
MachineLegalizePass.cpp
|
2016-07-21 05:13:29 +08:00
|
|
|
MachineLegalizer.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)
|