From: Chris Lattner Date: Sun, 3 Aug 2003 22:12:37 +0000 (+0000) Subject: Allow specifying custom names for registers X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=76bf868ff31ea6424bb4e8f774b0d76ef3f6cade;p=oota-llvm.git Allow specifying custom names for registers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7546 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Target.td b/lib/Target/Target.td index b55693c2f51..546eeec3c4c 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 : Register { + set Name = n; } // RegisterAliases - You should define instances of this class to indicate which