1 add_llvm_library(LLVMTarget
7 TargetELFWriterInfo.cpp
8 TargetFrameLowering.cpp
10 TargetIntrinsicInfo.cpp
12 TargetLoweringObjectFile.cpp
14 TargetRegisterInfo.cpp
15 TargetSubtargetInfo.cpp
18 set(LLVM_ENUM_ASM_PRINTERS "")
19 set(LLVM_ENUM_ASM_PARSERS "")
20 set(LLVM_ENUM_DISASSEMBLERS "")
21 foreach(t ${LLVM_TARGETS_TO_BUILD})
22 message(STATUS "Targeting ${t}")
23 add_subdirectory(${t})
24 set( td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t} )
25 file(GLOB asmp_file "${td}/*AsmPrinter.cpp")
27 set(LLVM_ENUM_ASM_PRINTERS
28 "${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
30 if( EXISTS ${td}/AsmParser/CMakeLists.txt )
31 set(LLVM_ENUM_ASM_PARSERS
32 "${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n")
34 if( EXISTS ${td}/Disassembler/CMakeLists.txt )
35 set(LLVM_ENUM_DISASSEMBLERS
36 "${LLVM_ENUM_DISASSEMBLERS}LLVM_DISASSEMBLER(${t})\n")
40 # Produce llvm/Config/AsmPrinters.def
42 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/AsmPrinters.def.in
43 ${LLVM_BINARY_DIR}/include/llvm/Config/AsmPrinters.def
46 # Produce llvm/Config/AsmParsers.def
48 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/AsmParsers.def.in
49 ${LLVM_BINARY_DIR}/include/llvm/Config/AsmParsers.def
52 # Produce llvm/Config/Disassemblers.def
54 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/Disassemblers.def.in
55 ${LLVM_BINARY_DIR}/include/llvm/Config/Disassemblers.def