summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-30 04:13:23 +0000
committerChris Lattner <sabre@nondot.org>2005-09-30 04:13:23 +0000
commit33ce5f8a7342e226dfaac1122c2f9d300304178d (patch)
treec62b5128b3d80e38d5c55d2c8998bb65dbaba36b /llvm/lib
parent6e60c8fe056baa1d8e00fe884d692b811ff75cce (diff)
downloadbcm5719-llvm-33ce5f8a7342e226dfaac1122c2f9d300304178d.tar.gz
bcm5719-llvm-33ce5f8a7342e226dfaac1122c2f9d300304178d.zip
Now that self referential classes are supported, get rid of a work-around.
llvm-svn: 23544
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Target.td10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Target/Target.td b/llvm/lib/Target/Target.td
index fc79f592047..8ef76a611c8 100644
--- a/llvm/lib/Target/Target.td
+++ b/llvm/lib/Target/Target.td
@@ -46,7 +46,7 @@ def isVoid : ValueType<0 , 12>; // Produces no value
// Register - You should define one instance of this class for each register
// in the target machine. String n will become the "name" of the register.
-class RegisterBase<string n> {
+class Register<string n> {
string Namespace = "";
string Name = n;
@@ -60,10 +60,12 @@ class RegisterBase<string n> {
// spilling the register. Like SpillSize, this should only be explicitly
// specified if the register is not in a register class.
int SpillAlignment = 0;
-}
-class Register<string n> : RegisterBase<n> {
- list<RegisterBase> Aliases = [];
+ // Aliases - A list of registers that this register overlaps with. A read or
+ // modification of this register can potentially read or modifie the aliased
+ // registers.
+ //
+ list<Register> Aliases = [];
}
// RegisterGroup - This can be used to define instances of Register which
OpenPOWER on IntegriCloud