aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-03 22:12:37 +0000
committerChris Lattner <sabre@nondot.org>2003-08-03 22:12:37 +0000
commit76bf868ff31ea6424bb4e8f774b0d76ef3f6cade (patch)
tree39c9003e389279ab3caedb29544ef0f7b880f09a
parent15de32d706287e1457ab26b74d731f5367083b99 (diff)
Allow specifying custom names for registers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7546 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Target.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/Target.td b/lib/Target/Target.td
index b55693c2f5..546eeec3c4 100644
--- a/lib/Target/Target.td
+++ b/lib/Target/Target.td
@@ -35,6 +35,14 @@ def f128 : ValueType<128>; // 128-bit floating point value
//
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