diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-06-21 16:55:25 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-06-21 16:55:25 +0000 |
commit | e05203fb40946c20fb748de3eaf78ed5a8a082ab (patch) | |
tree | 4f4c6da33b01c4630a9ed25394ba05b56073a88f /llvm/lib/Target/PowerPC/PowerPC.td | |
parent | e54cbdd47848721b408274ccf08d45c95ac964bb (diff) | |
download | bcm5719-llvm-e05203fb40946c20fb748de3eaf78ed5a8a082ab.tar.gz bcm5719-llvm-e05203fb40946c20fb748de3eaf78ed5a8a082ab.zip |
Initial revision
llvm-svn: 14283
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPC.td')
-rw-r--r-- | llvm/lib/Target/PowerPC/PowerPC.td | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPC.td b/llvm/lib/Target/PowerPC/PowerPC.td new file mode 100644 index 00000000000..f70382f8169 --- /dev/null +++ b/llvm/lib/Target/PowerPC/PowerPC.td @@ -0,0 +1,44 @@ +//===- PowerPC.td - Describe the PowerPC Target Machine ---------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by the LLVM research group and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// +//===----------------------------------------------------------------------===// + +// Get the target-independent interfaces which we are implementing... +// +include "../Target.td" + +//===----------------------------------------------------------------------===// +// Register File Description +//===----------------------------------------------------------------------===// + +include "PowerPCReg.td" +include "PowerPCInstrs.td" + +def PowerPCInstrInfo : InstrInfo { + let PHIInst = PHI; + + let TSFlagsFields = ["ArgCount", "Arg0Type", "Arg1Type", "Arg2Type", "Arg3Type", "Arg4Type", "VMX", "PPC64"]; + let TSFlagsShifts = [ 0, 3, 8, 13, 18, 23, 28, 29 ]; +} + +def PowerPC : Target { + // Pointers are 32-bits in size. + let PointerType = i32; + + // According to the Mach-O Runtime ABI, these regs are nonvolatile across + // calls: + let CalleeSavedRegisters = [R1, R13, R14, R15, R16, R17, R18, R19, + R20, R21, R22, R23, R24, R25, R26, R27, R28, R29, R30, R31, F14, F15, + F16, F17, F18, F19, F20, F21, F22, F23, F24, F25, F26, F27, F28, F29, + F30, F31, CR2, CR3, CR4]; + + // Pull in Instruction Info: + let InstructionSet = PowerPCInstrInfo; +} |