Brian Gaeke | e785e53 | 2004-02-25 19:28:19 +0000 | [diff] [blame] | 1 | //===- SparcV8.td - Describe the SparcV8 Target Machine ---------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by the LLVM research group and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
Misha Brukman | 981eefd | 2004-09-22 20:09:29 +0000 | [diff] [blame] | 13 | //===----------------------------------------------------------------------===// |
| 14 | // Target-independent interfaces which we are implementing |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | |
Brian Gaeke | 5760054 | 2004-12-10 04:48:57 +0000 | [diff] [blame] | 17 | include "../Target.td" |
Brian Gaeke | e785e53 | 2004-02-25 19:28:19 +0000 | [diff] [blame] | 18 | |
| 19 | //===----------------------------------------------------------------------===// |
| 20 | // Register File Description |
| 21 | //===----------------------------------------------------------------------===// |
| 22 | |
Chris Lattner | a85d46e | 2004-02-28 19:45:39 +0000 | [diff] [blame] | 23 | include "SparcV8RegisterInfo.td" |
Misha Brukman | 981eefd | 2004-09-22 20:09:29 +0000 | [diff] [blame] | 24 | |
| 25 | //===----------------------------------------------------------------------===// |
| 26 | // Instruction Descriptions |
| 27 | //===----------------------------------------------------------------------===// |
| 28 | |
Chris Lattner | a85d46e | 2004-02-28 19:45:39 +0000 | [diff] [blame] | 29 | include "SparcV8InstrInfo.td" |
Brian Gaeke | e785e53 | 2004-02-25 19:28:19 +0000 | [diff] [blame] | 30 | |
| 31 | def SparcV8InstrInfo : InstrInfo { |
Misha Brukman | 981eefd | 2004-09-22 20:09:29 +0000 | [diff] [blame] | 32 | let PHIInst = PHI; |
| 33 | |
| 34 | // Define how we want to layout our target-specific information field. |
| 35 | let TSFlagsFields = []; |
| 36 | let TSFlagsShifts = []; |
Brian Gaeke | e785e53 | 2004-02-25 19:28:19 +0000 | [diff] [blame] | 37 | } |
| 38 | |
Misha Brukman | 981eefd | 2004-09-22 20:09:29 +0000 | [diff] [blame] | 39 | //===----------------------------------------------------------------------===// |
| 40 | // Declare the target which we are implementing |
| 41 | //===----------------------------------------------------------------------===// |
| 42 | |
Brian Gaeke | e785e53 | 2004-02-25 19:28:19 +0000 | [diff] [blame] | 43 | def SparcV8 : Target { |
| 44 | // Pointers are 32-bits in size. |
| 45 | let PointerType = i32; |
| 46 | |
Misha Brukman | 981eefd | 2004-09-22 20:09:29 +0000 | [diff] [blame] | 47 | // FIXME: Specify callee-saved registers |
Misha Brukman | e07c2aa | 2004-02-25 21:02:21 +0000 | [diff] [blame] | 48 | let CalleeSavedRegisters = []; |
Brian Gaeke | e785e53 | 2004-02-25 19:28:19 +0000 | [diff] [blame] | 49 | |
| 50 | // Pull in Instruction Info: |
| 51 | let InstructionSet = SparcV8InstrInfo; |
| 52 | } |