Misha Brukman | 01c1638 | 2003-05-29 18:48:17 +0000 | [diff] [blame] | 1 | //===- Sparc.td - Target Description for Sparc V9 Target --------*- C++ -*-===// |
| 2 | // vim:ft=cpp |
| 3 | //===----------------------------------------------------------------------===// |
| 4 | |
| 5 | //===----------------------------------------------------------------------===// |
| 6 | // Target-Independent interface |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | class Register { |
| 10 | string Namespace = ""; |
| 11 | int Size; |
| 12 | } |
| 13 | |
| 14 | class 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 | } |