1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add function to clear all virtual->physical mappings but not assigned

stack slots. This is in preparation for the iterative linear scan.

llvm-svn: 15032
This commit is contained in:
Alkis Evlogimenos 2004-07-20 13:28:17 +00:00
parent 89ae43ca19
commit cb3b2fc439

View File

@ -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;
}