mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
6c04bbc435
Add basis of CSKY MCTargetDesc and it's enough to compile and link but doesn't yet do anything particularly useful. Once an ASM parser and printer are added in the next two patches, the whole thing can be usefully tested. Differential Revision: https://reviews.llvm.org/D93372
27 lines
492 B
CMake
27 lines
492 B
CMake
add_llvm_component_group(CSKY)
|
|
|
|
set(LLVM_TARGET_DEFINITIONS CSKY.td)
|
|
|
|
tablegen(LLVM CSKYGenRegisterInfo.inc -gen-register-info)
|
|
tablegen(LLVM CSKYGenInstrInfo.inc -gen-instr-info)
|
|
tablegen(LLVM CSKYGenMCCodeEmitter.inc -gen-emitter)
|
|
|
|
add_public_tablegen_target(CSKYCommonTableGen)
|
|
|
|
add_llvm_target(CSKYCodeGen
|
|
CSKYTargetMachine.cpp
|
|
|
|
LINK_COMPONENTS
|
|
Core
|
|
CodeGen
|
|
CSKYInfo
|
|
Support
|
|
Target
|
|
|
|
ADD_TO_COMPONENT
|
|
CSKY
|
|
)
|
|
|
|
add_subdirectory(TargetInfo)
|
|
add_subdirectory(MCTargetDesc)
|