diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-29 18:48:17 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-29 18:48:17 +0000 |
| commit | bb053cefe89031a790c1d8f8468dbd6a5b799958 (patch) | |
| tree | e73fcaaab15173d9c1e7121a2677398756db9477 /llvm/lib/Target | |
| parent | 41f77484893fd82d348532efacd39b8161d4cacf (diff) | |
| download | bcm5719-llvm-bb053cefe89031a790c1d8f8468dbd6a5b799958.tar.gz bcm5719-llvm-bb053cefe89031a790c1d8f8468dbd6a5b799958.zip | |
Added the target-independent part of TableGen data.
llvm-svn: 6403
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Target.td | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/lib/Target/Target.td b/llvm/lib/Target/Target.td new file mode 100644 index 00000000000..da3033c40ad --- /dev/null +++ b/llvm/lib/Target/Target.td @@ -0,0 +1,26 @@ +//===- Sparc.td - Target Description for Sparc V9 Target --------*- C++ -*-===// +// vim:ft=cpp +//===----------------------------------------------------------------------===// + +//===----------------------------------------------------------------------===// +// Target-Independent interface +//===----------------------------------------------------------------------===// + +class Register { + string Namespace = ""; + int Size; +} + +class Instruction { + string Name; // The opcode string for this instruction + string Namespace = ""; + + list<Register> Uses = []; // Default to using no non-operand registers + list<Register> Defs = []; // Default to modifying no non-operand registers + + // These bits capture information about the high-level semantics of the + // instruction. + bit isReturn = 0; // Is this instruction a return instruction? + bit isBranch = 0; // Is this instruction a branch instruction? + bit isCall = 0; // Is this instruction a call instruction? +} |

