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