2008-09-26 06:40:32 +02:00
|
|
|
set(LLVM_TARGET_DEFINITIONS PPC.td)
|
|
|
|
|
|
|
|
tablegen(PPCGenAsmWriter.inc -gen-asm-writer)
|
|
|
|
tablegen(PPCGenCodeEmitter.inc -gen-emitter)
|
Implement a basic MCCodeEmitter for PPC. This doesn't handle
fixups yet, and doesn't handle actually encoding operand values,
but this is enough for llc -show-mc-encoding to show the base
instruction encoding information, e.g.:
mflr r0 ; encoding: [0x7c,0x08,0x02,0xa6]
stw r0, 8(r1) ; encoding: [0x90,0x00,0x00,0x00]
stwu r1, -64(r1) ; encoding: [0x94,0x00,0x00,0x00]
Ltmp0:
lhz r4, 4(r3) ; encoding: [0xa0,0x00,0x00,0x00]
cmplwi cr0, r4, 8 ; encoding: [0x28,0x00,0x00,0x00]
beq cr0, LBB0_2 ; encoding: [0x40,0x00,0x00,0x00]
llvm-svn: 119116
2010-11-15 05:16:32 +01:00
|
|
|
tablegen(PPCGenMCCodeEmitter.inc -gen-emitter -mc-emitter)
|
2011-06-24 03:44:41 +02:00
|
|
|
tablegen(PPCGenRegisterInfo.inc -gen-register-info)
|
2011-06-28 22:07:07 +02:00
|
|
|
tablegen(PPCGenInstrInfo.inc -gen-instr-info)
|
2008-09-26 06:40:32 +02:00
|
|
|
tablegen(PPCGenDAGISel.inc -gen-dag-isel)
|
|
|
|
tablegen(PPCGenCallingConv.inc -gen-callingconv)
|
2011-07-02 00:36:09 +02:00
|
|
|
tablegen(PPCGenSubtargetInfo.inc -gen-subtarget)
|
2008-09-26 06:40:32 +02:00
|
|
|
|
|
|
|
add_llvm_target(PowerPCCodeGen
|
2010-11-15 09:49:58 +01:00
|
|
|
PPCAsmBackend.cpp
|
2010-11-14 19:33:33 +01:00
|
|
|
PPCAsmPrinter.cpp
|
2008-09-26 06:40:32 +02:00
|
|
|
PPCBranchSelector.cpp
|
|
|
|
PPCCodeEmitter.cpp
|
|
|
|
PPCHazardRecognizers.cpp
|
|
|
|
PPCInstrInfo.cpp
|
|
|
|
PPCISelDAGToDAG.cpp
|
|
|
|
PPCISelLowering.cpp
|
2011-01-10 13:39:23 +01:00
|
|
|
PPCFrameLowering.cpp
|
2008-09-26 06:40:32 +02:00
|
|
|
PPCJITInfo.cpp
|
Implement a basic MCCodeEmitter for PPC. This doesn't handle
fixups yet, and doesn't handle actually encoding operand values,
but this is enough for llc -show-mc-encoding to show the base
instruction encoding information, e.g.:
mflr r0 ; encoding: [0x7c,0x08,0x02,0xa6]
stw r0, 8(r1) ; encoding: [0x90,0x00,0x00,0x00]
stwu r1, -64(r1) ; encoding: [0x94,0x00,0x00,0x00]
Ltmp0:
lhz r4, 4(r3) ; encoding: [0xa0,0x00,0x00,0x00]
cmplwi cr0, r4, 8 ; encoding: [0x28,0x00,0x00,0x00]
beq cr0, LBB0_2 ; encoding: [0x40,0x00,0x00,0x00]
llvm-svn: 119116
2010-11-15 05:16:32 +01:00
|
|
|
PPCMCCodeEmitter.cpp
|
2010-11-14 20:53:02 +01:00
|
|
|
PPCMCInstLower.cpp
|
2008-09-26 06:40:32 +02:00
|
|
|
PPCPredicates.cpp
|
|
|
|
PPCRegisterInfo.cpp
|
|
|
|
PPCSubtarget.cpp
|
|
|
|
PPCTargetMachine.cpp
|
2010-04-17 01:04:22 +02:00
|
|
|
PPCSelectionDAGInfo.cpp
|
2008-09-26 06:40:32 +02:00
|
|
|
)
|
2011-02-20 03:55:27 +01:00
|
|
|
|
|
|
|
add_subdirectory(InstPrinter)
|
|
|
|
add_subdirectory(TargetInfo)
|
2011-07-14 22:59:42 +02:00
|
|
|
add_subdirectory(MCTargetDesc)
|