aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/VirtRegMap.h
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-07-20 13:28:17 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-07-20 13:28:17 +0000
commita39fc0efcf1ccaf18f1b8eb095433e37ac9ec425 (patch)
tree7aa185688cef30ca344e6f3053aadde12420782f /lib/CodeGen/VirtRegMap.h
parent6bd23c083290ab0f68388397f213323f386fc36e (diff)
Add function to clear all virtual->physical mappings but not assigned
stack slots. This is in preparation for the iterative linear scan. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.h')
-rw-r--r--lib/CodeGen/VirtRegMap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/VirtRegMap.h b/lib/CodeGen/VirtRegMap.h
index e9bfe76d4b..c76a222341 100644
--- a/lib/CodeGen/VirtRegMap.h
+++ b/lib/CodeGen/VirtRegMap.h
@@ -87,6 +87,11 @@ namespace llvm {
v2pMap_[virtReg] = NO_PHYS_REG;
}
+ void clearAllVirt() {
+ v2pMap_.clear();
+ grow();
+ }
+
bool hasStackSlot(unsigned virtReg) const {
return getStackSlot(virtReg) != NO_STACK_SLOT;
}