1 set(TARGETS_TO_APPEND "")
3 if (LLVM_TARGETS_TO_BUILD MATCHES "X86")
5 set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} X86")
7 if (LLVM_TARGETS_TO_BUILD MATCHES "AArch64")
8 add_subdirectory(AArch64)
9 set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} AArch64")
11 if (LLVM_TARGETS_TO_BUILD MATCHES "PowerPC")
12 add_subdirectory(PowerPC)
13 set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} PowerPC")
15 if (LLVM_TARGETS_TO_BUILD MATCHES "Mips")
16 add_subdirectory(Mips)
17 set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} Mips")
20 set(LLVM_EXEGESIS_TARGETS "${LLVM_EXEGESIS_TARGETS} ${TARGETS_TO_APPEND}" PARENT_SCOPE)
22 add_library(LLVMExegesis
36 SchedClassResolution.cpp
44 llvm_update_compile_flags(LLVMExegesis)
45 llvm_map_components_to_libnames(libs
60 if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
64 target_link_libraries(LLVMExegesis ${libs})
65 set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")