aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/SparcV9.td
blob: a288248399487be138b8fe7ba81c199d88668017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//===- SparcV9.td - Target Description for SparcV9 Target --*- tablegen -*-===//
// 
//                     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.
// 
//===----------------------------------------------------------------------===//
//
// TableGen target description file for the SparcV9. This is currently used 
// primarily to generate part of the SparcV9CodeEmitter automatically.
//
//===----------------------------------------------------------------------===//

//===----------------------------------------------------------------------===//
// Target-independent interfaces which we are implementing
//===----------------------------------------------------------------------===//

include "../Target.td"

//===----------------------------------------------------------------------===//
// Register File Description
//===----------------------------------------------------------------------===//

include "SparcV9RegisterInfo.td"

//===----------------------------------------------------------------------===//
// Instruction Descriptions
//===----------------------------------------------------------------------===//

include "SparcV9InstrInfo.td"

def SparcV9InstrInfo : InstrInfo {
  let PHIInst = PHI;

  // Define how we want to layout our TargetSpecific information field.
  let TSFlagsFields = [];
  let TSFlagsShifts = [];
}

//===----------------------------------------------------------------------===//
// Declare the target which we are implementing
//===----------------------------------------------------------------------===//

def SparcV9 : Target {
  // FIXME: Specify the callee saved registers.
  let CalleeSavedRegisters = [];

  // Pointers are 64-bits in size.
  let PointerType = i64;

  // Information about the instructions...
  let InstructionSet = SparcV9InstrInfo;
}