blob: da3033c40ad68bbf92478ff5993bdf1b50427afa [file] [log] [blame]
Misha Brukman01c16382003-05-29 18:48:17 +00001//===- Sparc.td - Target Description for Sparc V9 Target --------*- C++ -*-===//
2// vim:ft=cpp
3//===----------------------------------------------------------------------===//
4
5//===----------------------------------------------------------------------===//
6// Target-Independent interface
7//===----------------------------------------------------------------------===//
8
9class Register {
10 string Namespace = "";
11 int Size;
12}
13
14class Instruction {
15 string Name; // The opcode string for this instruction
16 string Namespace = "";
17
18 list<Register> Uses = []; // Default to using no non-operand registers
19 list<Register> Defs = []; // Default to modifying no non-operand registers
20
21 // These bits capture information about the high-level semantics of the
22 // instruction.
23 bit isReturn = 0; // Is this instruction a return instruction?
24 bit isBranch = 0; // Is this instruction a branch instruction?
25 bit isCall = 0; // Is this instruction a call instruction?
26}