2004-08-10 20:15:31 +02:00
|
|
|
//===- SparcV9.td - Target Description for SparcV9 Target --*- tablegen -*-===//
|
2003-10-21 17:17:13 +02:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2004-04-25 09:04:49 +02:00
|
|
|
// TableGen target description file for the SparcV9. This is currently used
|
|
|
|
// primarily to generate part of the SparcV9CodeEmitter automatically.
|
2003-08-14 17:16:28 +02:00
|
|
|
//
|
2003-05-07 23:52:39 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
2004-08-10 20:15:31 +02:00
|
|
|
// Target-independent interfaces which we are implementing
|
2003-05-07 23:52:39 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
include "../Target.td"
|
2003-05-07 23:52:39 +02:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
2004-08-10 20:15:31 +02:00
|
|
|
// Register File Description
|
|
|
|
//===----------------------------------------------------------------------===//
|
2003-05-27 22:03:29 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
include "SparcV9RegisterInfo.td"
|
2003-05-30 22:15:59 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Instruction Descriptions
|
|
|
|
//===----------------------------------------------------------------------===//
|
2003-05-29 05:31:43 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
include "SparcV9InstrInfo.td"
|
2003-06-02 21:08:37 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
def SparcV9InstrInfo : InstrInfo {
|
|
|
|
let PHIInst = PHI;
|
2003-06-02 21:08:37 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
// Define how we want to layout our TargetSpecific information field.
|
|
|
|
let TSFlagsFields = [];
|
|
|
|
let TSFlagsShifts = [];
|
2003-05-27 22:03:29 +02:00
|
|
|
}
|
2003-05-29 05:31:43 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Declare the target which we are implementing
|
|
|
|
//===----------------------------------------------------------------------===//
|
2003-05-27 22:03:29 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
def SparcV9 : Target {
|
|
|
|
// FIXME: Specify the callee saved registers.
|
|
|
|
let CalleeSavedRegisters = [];
|
2003-05-29 05:31:43 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
// Pointers are 64-bits in size.
|
|
|
|
let PointerType = i64;
|
2003-06-06 11:52:23 +02:00
|
|
|
|
2004-08-10 20:15:31 +02:00
|
|
|
// Information about the instructions...
|
|
|
|
let InstructionSet = SparcV9InstrInfo;
|
2003-06-06 11:52:23 +02:00
|
|
|
}
|