1 set(LLVM_LINK_COMPONENTS
7 if(BOLT_BUILT_STANDALONE)
8 set(LLVM_TARGET_DEFINITIONS ${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64/AArch64.td)
9 list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64)
10 tablegen(LLVM AArch64GenInstrInfo.inc -gen-instr-info)
11 tablegen(LLVM AArch64GenRegisterInfo.inc -gen-register-info)
12 tablegen(LLVM AArch64GenSystemOperands.inc -gen-searchable-tables)
13 tablegen(LLVM AArch64GenSubtargetInfo.inc -gen-subtarget)
15 add_public_tablegen_target(AArch64CommonTableGen)
16 include_directories(${CMAKE_CURRENT_BINARY_DIR})
19 add_llvm_library(LLVMBOLTTargetAArch64
20 AArch64MCPlusBuilder.cpp
22 DISABLE_LLVM_LINK_LLVM_DYLIB
28 target_link_libraries(LLVMBOLTTargetAArch64 PRIVATE LLVMBOLTCore)
31 ${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64
32 ${LLVM_BINARY_DIR}/lib/Target/AArch64