1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

CMake support for SystemZ.

llvm-svn: 76384
This commit is contained in:
Daniel Dunbar 2009-07-20 00:24:17 +00:00
parent 46389b3660
commit e1a18819f7
3 changed files with 30 additions and 0 deletions

View File

@ -59,6 +59,7 @@ set(LLVM_ALL_TARGETS
PIC16
PowerPC
Sparc
SystemZ
X86
XCore
)

View File

@ -0,0 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMSystemZAsmPrinter
SystemZAsmPrinter.cpp
)
add_dependencies(LLVMSystemZAsmPrinter SystemZCodeGenTable_gen)

View File

@ -0,0 +1,23 @@
set(LLVM_TARGET_DEFINITIONS SystemZ.td)
tablegen(SystemZGenRegisterInfo.h.inc -gen-register-desc-header)
tablegen(SystemZGenRegisterNames.inc -gen-register-enums)
tablegen(SystemZGenRegisterInfo.inc -gen-register-desc)
tablegen(SystemZGenInstrNames.inc -gen-instr-enums)
tablegen(SystemZGenInstrInfo.inc -gen-instr-desc)
tablegen(SystemZGenAsmWriter.inc -gen-asm-writer)
tablegen(SystemZGenDAGISel.inc -gen-dag-isel)
tablegen(SystemZGenCallingConv.inc -gen-callingconv)
tablegen(SystemZGenSubtarget.inc -gen-subtarget)
add_llvm_target(SystemZCodeGen
SystemZISelDAGToDAG.cpp
SystemZISelLowering.cpp
SystemZInstrInfo.cpp
SystemZRegisterInfo.cpp
SystemZSubtarget.cpp
SystemZTargetAsmInfo.cpp
SystemZTargetMachine.cpp
)
target_link_libraries (LLVMSystemZCodeGen LLVMSelectionDAG)