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")
16 set(LLVM_EXEGESIS_TARGETS "${LLVM_EXEGESIS_TARGETS} ${TARGETS_TO_APPEND}" PARENT_SCOPE)
18 add_library(LLVMExegesis
32 SchedClassResolution.cpp
38 llvm_update_compile_flags(LLVMExegesis)
39 llvm_map_components_to_libnames(libs
53 if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
57 target_link_libraries(LLVMExegesis ${libs})
58 set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")