mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 00:02:16 +00:00
be4aef480e
This is the second minimal patch keeping Nios2 target buildable. I'm adding subtarget here and other stuff for frame lowering, instruction, register information methods. I do not add any test cases, as still there are missing parts like DAG selector and assembly printing. I plan to include them into the next patch. Patch by Andrei Grischenko <andrei.l.grischenko@intel.com> Differential Revision: https://reviews.llvm.org/D37256 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313626 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
853 B
CMake
26 lines
853 B
CMake
set(LLVM_TARGET_DEFINITIONS Nios2.td)
|
|
|
|
#Generate Nios2GenRegisterInfo.inc and Nios2GenInstrInfo.inc which included by
|
|
#your hand code C++ files.
|
|
#Nios2GenRegisterInfo.inc came from Nios2RegisterInfo.td, Nios2GenInstrInfo.inc
|
|
#came from Nios2InstrInfo.td.
|
|
tablegen(LLVM Nios2GenRegisterInfo.inc -gen-register-info)
|
|
tablegen(LLVM Nios2GenInstrInfo.inc -gen-instr-info)
|
|
tablegen(LLVM Nios2GenSubtargetInfo.inc -gen-subtarget)
|
|
|
|
#Nios2CommonTableGen must be defined
|
|
add_public_tablegen_target(Nios2CommonTableGen)
|
|
|
|
#Nios2CodeGen should match with LLVMBuild.txt Nios2CodeGen
|
|
add_llvm_target(Nios2CodeGen
|
|
Nios2InstrInfo.cpp
|
|
Nios2FrameLowering.cpp
|
|
Nios2RegisterInfo.cpp
|
|
Nios2Subtarget.cpp
|
|
Nios2TargetMachine.cpp
|
|
)
|
|
|
|
#Should match with "subdirectories = MCTargetDesc TargetInfo" in LLVMBuild.txt
|
|
add_subdirectory(TargetInfo)
|
|
add_subdirectory(MCTargetDesc)
|