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