1 set(LLVM_LINK_COMPONENTS
8 if(BOLT_BUILT_STANDALONE)
9 set(LLVM_TARGET_DEFINITIONS ${LLVM_MAIN_SRC_DIR}/lib/Target/X86/X86.td)
10 list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target/X86)
11 tablegen(LLVM X86GenInstrInfo.inc -gen-instr-info -instr-info-expand-mi-operand-info=0)
12 tablegen(LLVM X86GenMnemonicTables.inc -gen-x86-mnemonic-tables -asmwriternum=1)
13 tablegen(LLVM X86GenRegisterInfo.inc -gen-register-info)
14 tablegen(LLVM X86GenSubtargetInfo.inc -gen-subtarget)
16 add_public_tablegen_target(X86CommonTableGen)
17 include_directories(${CMAKE_CURRENT_BINARY_DIR})
20 add_llvm_library(LLVMBOLTTargetX86
25 DISABLE_LLVM_LINK_LLVM_DYLIB
31 target_link_libraries(LLVMBOLTTargetX86 PRIVATE LLVMBOLTCore LLVMBOLTUtils)
34 ${LLVM_MAIN_SRC_DIR}/lib/Target/X86
35 ${LLVM_BINARY_DIR}/lib/Target/X86