projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15de32d
)
Allow specifying custom names for registers
author
Chris Lattner
<sabre@nondot.org>
Sun, 3 Aug 2003 22:12:37 +0000
(22:12 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 3 Aug 2003 22:12:37 +0000
(22:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7546
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Target.td
patch
|
blob
|
history
diff --git
a/lib/Target/Target.td
b/lib/Target/Target.td
index b55693c2f516f2078592c64ec78bc0be3fd90665..546eeec3c4c490966f959c2b0bf0a2e342845121 100644
(file)
--- 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