Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
2b3ac6be
Commit
2b3ac6be
authored
21 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Add comments
Make the register classes optionally take code fragments for allocation_order_* llvm-svn: 7441
parent
34d10a1a
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/Target/Target.td
+19
-1
19 additions, 1 deletion
llvm/lib/Target/Target.td
with
19 additions
and
1 deletion
llvm/lib/Target/Target.td
+
19
−
1
View file @
2b3ac6be
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
//
//
// Value types - These values correspond to the register types defined in the
// Value types - These values correspond to the register types defined in the
// ValueTypes.h file.
// ValueTypes.h file.
//
class ValueType { string Namespace = "MVT"; }
class ValueType { string Namespace = "MVT"; }
def i1 : ValueType; // One bit boolean value
def i1 : ValueType; // One bit boolean value
...
@@ -53,9 +53,27 @@ class RegisterAliases<Register reg, list<Register> aliases> {
...
@@ -53,9 +53,27 @@ class RegisterAliases<Register reg, list<Register> aliases> {
// registers by register allocators.
// registers by register allocators.
//
//
class RegisterClass<ValueType regType, int alignment, list<Register> regList> {
class RegisterClass<ValueType regType, int alignment, list<Register> regList> {
// RegType - Specify the ValueType of the registers in this register class.
// Note that all registers in a register class must have the same ValueType.
//
ValueType RegType = regType;
ValueType RegType = regType;
// Alignment - Specify the alignment required of the registers when they are
// stored or loaded to memory.
//
int Alignment = alignment;
int Alignment = alignment;
// MemberList - Specify which registers are in this class. If the
// allocation_order_* method are not specified, this also defines the order of
// allocation used by the register allocator.
//
list<Register> MemberList = regList;
list<Register> MemberList = regList;
// allocation_order_* - These methods define the order that the registers
// should be allocated. See the MRegister.h file for more information.
//
code allocation_order_begin;
code allocation_order_end;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment