diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-05-24 23:03:18 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-05-24 23:03:18 +0000 |
commit | 33276d95ef4191663d8e6b972481f9faf37ce541 (patch) | |
tree | 040375cd6aec3eee3ecbe38cf9f980afb7be5684 /include/llvm | |
parent | c21763fd993f37d02c7a495e96c3e8eb4c0b4015 (diff) | |
download | external_llvm-33276d95ef4191663d8e6b972481f9faf37ce541.zip external_llvm-33276d95ef4191663d8e6b972481f9faf37ce541.tar.gz external_llvm-33276d95ef4191663d8e6b972481f9faf37ce541.tar.bz2 |
Switch SubRegSet to using symbolic SubRegIndices
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/Target.td | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Target/Target.td b/include/llvm/Target/Target.td index b9ec987..5fd69cf 100644 --- a/include/llvm/Target/Target.td +++ b/include/llvm/Target/Target.td @@ -21,6 +21,7 @@ include "llvm/Intrinsics.td" class RegisterClass; // Forward def +// SubRegIndex - Use instances on SubRegIndex to identify subregisters. class SubRegIndex { string Namespace = ""; @@ -80,8 +81,8 @@ class RegisterWithSubRegs<string n, list<Register> subregs> : Register<n> { // indices, for use as named subregs of a particular physical register. Each // register in 'subregs' becomes an addressable subregister at index 'n' of the // corresponding register in 'regs'. -class SubRegSet<int n, list<Register> regs, list<Register> subregs> { - int index = n; +class SubRegSet<SubRegIndex n, list<Register> regs, list<Register> subregs> { + SubRegIndex Index = n; list<Register> From = regs; list<Register> To = subregs; |