1# List of all GlobalISel files. 2set(GLOBAL_ISEL_FILES 3 IRTranslator.cpp 4 MachineIRBuilder.cpp 5 RegBankSelect.cpp 6 RegisterBank.cpp 7 RegisterBankInfo.cpp 8 ) 9 10# Add GlobalISel files to the dependencies if the user wants to build it. 11if(LLVM_BUILD_GLOBAL_ISEL) 12 set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES}) 13else() 14 set(GLOBAL_ISEL_BUILD_FILES"") 15 set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES}) 16endif() 17 18 19# In LLVMBuild.txt files, it is not possible to mark a dependency to a 20# library as optional. So instead, generate an empty library if we did 21# not ask for it. 22add_llvm_library(LLVMGlobalISel 23 ${GLOBAL_ISEL_BUILD_FILES} 24 GlobalISel.cpp 25 ) 26 27add_dependencies(LLVMGlobalISel intrinsics_gen) 28