mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
LiveIntervalUnion: Allow specification of liverange when unifying/extracting.
This allows it to add subregister ranges into the union. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -84,10 +84,16 @@ public:
|
||||
bool changedSince(unsigned tag) const { return tag != Tag; }
|
||||
|
||||
// Add a live virtual register to this union and merge its segments.
|
||||
void unify(LiveInterval &VirtReg);
|
||||
void unify(LiveInterval &VirtReg, const LiveRange &Range);
|
||||
void unify(LiveInterval &VirtReg) {
|
||||
unify(VirtReg, VirtReg);
|
||||
}
|
||||
|
||||
// Remove a live virtual register's segments from this union.
|
||||
void extract(LiveInterval &VirtReg);
|
||||
void extract(LiveInterval &VirtReg, const LiveRange &Range);
|
||||
void extract(LiveInterval &VirtReg) {
|
||||
extract(VirtReg, VirtReg);
|
||||
}
|
||||
|
||||
// Remove all inserted virtual registers.
|
||||
void clear() { Segments.clear(); ++Tag; }
|
||||
|
Reference in New Issue
Block a user