[Sparc] Make SPARC instructions' encoding well defined such that TableGen can automat...
[oota-llvm.git] / lib / Target / Sparc / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS Sparc.td)
2
3 tablegen(LLVM SparcGenRegisterInfo.inc -gen-register-info)
4 tablegen(LLVM SparcGenInstrInfo.inc -gen-instr-info)
5 tablegen(LLVM SparcGenCodeEmitter.inc -gen-emitter)
6 tablegen(LLVM SparcGenAsmWriter.inc -gen-asm-writer)
7 tablegen(LLVM SparcGenDAGISel.inc -gen-dag-isel)
8 tablegen(LLVM SparcGenSubtargetInfo.inc -gen-subtarget)
9 tablegen(LLVM SparcGenCallingConv.inc -gen-callingconv)
10 add_public_tablegen_target(SparcCommonTableGen)
11
12 add_llvm_target(SparcCodeGen
13   DelaySlotFiller.cpp
14   SparcAsmPrinter.cpp
15   SparcInstrInfo.cpp
16   SparcISelDAGToDAG.cpp
17   SparcISelLowering.cpp
18   SparcFrameLowering.cpp
19   SparcMachineFunctionInfo.cpp
20   SparcRegisterInfo.cpp
21   SparcSubtarget.cpp
22   SparcTargetMachine.cpp
23   SparcSelectionDAGInfo.cpp
24   )
25
26 add_dependencies(LLVMSparcCodeGen SparcCommonTableGen intrinsics_gen)
27
28 add_subdirectory(TargetInfo)
29 add_subdirectory(MCTargetDesc)