llvm-6502/lib/Target/Mos6502/CMakeLists.txt
Damián Silvani 642eccbb21 Clone "Sparc" target as "Mos6502"
All string occurences for "sparc", "Sparc" and "SPARC" were already
replaced, with the exception of ELF constans in the object file
descriptor as it will get removed later on (we won't be building ELF
object files for the 6502).
2015-08-02 22:45:53 -03:00

34 lines
1.1 KiB
CMake

set(LLVM_TARGET_DEFINITIONS Mos6502.td)
tablegen(LLVM Mos6502GenRegisterInfo.inc -gen-register-info)
tablegen(LLVM Mos6502GenInstrInfo.inc -gen-instr-info)
tablegen(LLVM Mos6502GenDisassemblerTables.inc -gen-disassembler)
tablegen(LLVM Mos6502GenMCCodeEmitter.inc -gen-emitter)
tablegen(LLVM Mos6502GenAsmWriter.inc -gen-asm-writer)
tablegen(LLVM Mos6502GenAsmMatcher.inc -gen-asm-matcher)
tablegen(LLVM Mos6502GenDAGISel.inc -gen-dag-isel)
tablegen(LLVM Mos6502GenSubtargetInfo.inc -gen-subtarget)
tablegen(LLVM Mos6502GenCallingConv.inc -gen-callingconv)
add_public_tablegen_target(Mos6502CommonTableGen)
add_llvm_target(Mos6502CodeGen
DelaySlotFiller.cpp
Mos6502AsmPrinter.cpp
Mos6502InstrInfo.cpp
Mos6502ISelDAGToDAG.cpp
Mos6502ISelLowering.cpp
Mos6502FrameLowering.cpp
Mos6502MachineFunctionInfo.cpp
Mos6502RegisterInfo.cpp
Mos6502Subtarget.cpp
Mos6502TargetMachine.cpp
Mos6502MCInstLower.cpp
Mos6502TargetObjectFile.cpp
)
add_subdirectory(TargetInfo)
add_subdirectory(MCTargetDesc)
add_subdirectory(InstPrinter)
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)