mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Allow specifying custom names for registers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7546 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15de32d706
commit
76bf868ff3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user