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

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 4 00:00:06 PDT 2003


Changes in directory llvm/lib/Target:

Target.td updated: 1.10 -> 1.11

---
Log message:

Allow specifying custom names for registers


---
Diffs of the changes:

Index: llvm/lib/Target/Target.td
diff -u llvm/lib/Target/Target.td:1.10 llvm/lib/Target/Target.td:1.11
--- llvm/lib/Target/Target.td:1.10	Sun Aug  3 16:52:28 2003
+++ llvm/lib/Target/Target.td	Sun Aug  3 17:12:37 2003
@@ -35,6 +35,14 @@
 //
 class Register {
   string Namespace = "";
+  string Name = "";
+}
+
+// NamedReg - If the name for the 'def' of the register should not become the
+// "name" of the register, you can use this to specify a custom name instead.
+//
+class NamedReg<string n> : Register {
+  set Name = n;
 }
 
 // RegisterAliases - You should define instances of this class to indicate which





More information about the llvm-commits mailing list