summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Nios2/CMakeLists.txt
blob: 7cad3c5ba9c100f89af9a4eff92281e5cb8a3d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 Nios2GenAsmWriter.inc -gen-asm-writer)
tablegen(LLVM Nios2GenDAGISel.inc -gen-dag-isel)
tablegen(LLVM Nios2GenRegisterInfo.inc -gen-register-info)
tablegen(LLVM Nios2GenCallingConv.inc -gen-callingconv)
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
 Nios2AsmPrinter.cpp
 Nios2FrameLowering.cpp
 Nios2InstrInfo.cpp
 Nios2ISelDAGToDAG.cpp
 Nios2ISelLowering.cpp
 Nios2MachineFunction.cpp
 Nios2MCInstLower.cpp
 Nios2RegisterInfo.cpp
 Nios2Subtarget.cpp
 Nios2TargetMachine.cpp
 Nios2TargetObjectFile.cpp
 )

#Should match with "subdirectories =  InstPrinter MCTargetDesc TargetInfo" in LLVMBuild.txt
add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo)
OpenPOWER on IntegriCloud