mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add method to assign stack slot to virtual register without creating a
new one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f174cc303b
commit
38af59a43c
@ -61,6 +61,14 @@ int VirtRegMap::assignVirt2StackSlot(unsigned virtReg)
|
|||||||
return frameIndex;
|
return frameIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void VirtRegMap::assignVirt2StackSlot(unsigned virtReg, int frameIndex)
|
||||||
|
{
|
||||||
|
assert(MRegisterInfo::isVirtualRegister(virtReg));
|
||||||
|
assert(v2ssMap_[virtReg] == NO_STACK_SLOT &&
|
||||||
|
"attempt to assign stack slot to already spilled register");
|
||||||
|
v2ssMap_[virtReg] = frameIndex;
|
||||||
|
}
|
||||||
|
|
||||||
void VirtRegMap::virtFolded(unsigned virtReg,
|
void VirtRegMap::virtFolded(unsigned virtReg,
|
||||||
MachineInstr* oldMI,
|
MachineInstr* oldMI,
|
||||||
MachineInstr* newMI)
|
MachineInstr* newMI)
|
||||||
|
@ -97,6 +97,7 @@ namespace llvm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int assignVirt2StackSlot(unsigned virtReg);
|
int assignVirt2StackSlot(unsigned virtReg);
|
||||||
|
void assignVirt2StackSlot(unsigned virtReg, int frameIndex);
|
||||||
|
|
||||||
void virtFolded(unsigned virtReg,
|
void virtFolded(unsigned virtReg,
|
||||||
MachineInstr* oldMI,
|
MachineInstr* oldMI,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user