[llvm-commits] CVS: llvm/lib/Target/Target.td

Misha Brukman brukman at cs.uiuc.edu
Thu May 29 13:49:01 PDT 2003


Changes in directory llvm/lib/Target:

Target.td added (r1.1)

---
Log message:

Added the target-independent part of TableGen data.


---
Diffs of the changes:

Index: llvm/lib/Target/Target.td
diff -c /dev/null llvm/lib/Target/Target.td:1.1
*** /dev/null	Thu May 29 13:48:27 2003
--- llvm/lib/Target/Target.td	Thu May 29 13:48:17 2003
***************
*** 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?
+ }





More information about the llvm-commits mailing list