1 set(LLVM_TARGET_DEFINITIONS Nios2.td)
3 #Generate Nios2GenRegisterInfo.inc and Nios2GenInstrInfo.inc which included by
4 #your hand code C++ files.
5 #Nios2GenRegisterInfo.inc came from Nios2RegisterInfo.td, Nios2GenInstrInfo.inc
6 #came from Nios2InstrInfo.td.
7 tablegen(LLVM Nios2GenRegisterInfo.inc -gen-register-info)
8 tablegen(LLVM Nios2GenInstrInfo.inc -gen-instr-info)
10 #Nios2CommonTableGen must be defined
11 add_public_tablegen_target(Nios2CommonTableGen)
13 #Nios2CodeGen should match with LLVMBuild.txt Nios2CodeGen
14 add_llvm_target(Nios2CodeGen Nios2TargetMachine.cpp)
16 #Should match with "subdirectories = MCTargetDesc TargetInfo" in LLVMBuild.txt
17 add_subdirectory(TargetInfo)
18 add_subdirectory(MCTargetDesc)