[SelectOpt] Support ADD and SUB with zext operands. (#115489)
[llvm-project.git] / bolt / lib / Target / AArch64 / CMakeLists.txt
blob7e2d33e09b5a041f50fa340cf179d680933ae5fb
1 set(LLVM_LINK_COMPONENTS
2   MC
3   Support
4   AArch64Desc
5   )
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})
17 endif()
19 add_llvm_library(LLVMBOLTTargetAArch64
20   AArch64MCPlusBuilder.cpp
22   DISABLE_LLVM_LINK_LLVM_DYLIB
24   DEPENDS
25   AArch64CommonTableGen
26   )
28 target_link_libraries(LLVMBOLTTargetAArch64 PRIVATE LLVMBOLTCore)
30 include_directories(
31   ${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64
32   ${LLVM_BINARY_DIR}/lib/Target/AArch64
33   )