Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLVM bpEVL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Lorenzo Albano
LLVM bpEVL
Commits
9011903e
There was an error fetching the commit references. Please try again later.
Commit
9011903e
authored
22 years ago
by
Vikram S. Adve
Browse files
Options
Downloads
Patches
Plain Diff
Added a couple of helper methods for live range construction.
llvm-svn: 3970
parent
ed2df3ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
+12
-13
12 additions, 13 deletions
llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
with
12 additions
and
13 deletions
llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
+
12
−
13
View file @
9011903e
...
...
@@ -58,13 +58,21 @@ class LiveRangeInfo {
//------------ Private methods (see LiveRangeInfo.cpp for description)-------
void
unionAndUpdateLRs
(
LiveRange
*
L1
,
LiveRange
*
L2
);
LiveRange
*
createNewLiveRange
(
const
Value
*
Def
,
bool
isCC
=
false
);
void
addInterference
(
const
Instruction
*
Inst
,
const
ValueSet
*
LVSet
);
LiveRange
*
createOrAddToLiveRange
(
const
Value
*
Def
,
bool
isCC
=
false
);
void
unionAndUpdateLRs
(
LiveRange
*
L1
,
LiveRange
*
L2
);
void
addInterference
(
const
Instruction
*
Inst
,
const
ValueSet
*
LVSet
);
void
suggestRegs4CallRets
();
void
suggestRegs4CallRets
();
const
Function
*
getMethod
()
{
return
Meth
;
}
const
Function
*
getMethod
()
const
{
return
Meth
;
}
public
:
...
...
@@ -79,15 +87,6 @@ public:
// Main entry point for live range construction
//
void
constructLiveRanges
();
// This method is used to add a live range created elsewhere (e.g.,
// in machine specific code) to the common live range map
//
inline
void
addLRToMap
(
const
Value
*
Val
,
LiveRange
*
LR
)
{
assert
(
Val
&&
LR
&&
"Val/LR is NULL!
\n
"
);
assert
((
!
LiveRangeMap
[
Val
])
&&
"LR already set in map"
);
LiveRangeMap
[
Val
]
=
LR
;
}
// return the common live range map for this method
//
...
...
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