mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
Rename UpdateRegAllocHint to match style guidelines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd1a6e074d
commit
f8c57a105e
@ -694,13 +694,13 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
/// UpdateRegAllocHint - A callback to allow target a chance to update
|
||||
/// updateRegAllocHint - A callback to allow target a chance to update
|
||||
/// register allocation hints when a register is "changed" (e.g. coalesced)
|
||||
/// to another register. e.g. On ARM, some virtual registers should target
|
||||
/// register pairs, if one of pair is coalesced to another register, the
|
||||
/// allocation hint of the other half of the pair should be changed to point
|
||||
/// to the new register.
|
||||
virtual void UpdateRegAllocHint(unsigned Reg, unsigned NewReg,
|
||||
virtual void updateRegAllocHint(unsigned Reg, unsigned NewReg,
|
||||
MachineFunction &MF) const {
|
||||
// Do nothing.
|
||||
}
|
||||
|
@ -1393,7 +1393,7 @@ bool RegisterCoalescer::joinCopy(MachineInstr *CopyMI, bool &Again) {
|
||||
LIS->removeInterval(CP.getSrcReg());
|
||||
|
||||
// Update regalloc hint.
|
||||
TRI->UpdateRegAllocHint(CP.getSrcReg(), CP.getDstReg(), *MF);
|
||||
TRI->updateRegAllocHint(CP.getSrcReg(), CP.getDstReg(), *MF);
|
||||
|
||||
DEBUG({
|
||||
dbgs() << "\tSuccess: " << PrintReg(CP.getSrcReg(), TRI, CP.getSrcIdx())
|
||||
|
@ -264,7 +264,7 @@ ARMBaseRegisterInfo::getRegAllocationHints(unsigned VirtReg,
|
||||
}
|
||||
|
||||
void
|
||||
ARMBaseRegisterInfo::UpdateRegAllocHint(unsigned Reg, unsigned NewReg,
|
||||
ARMBaseRegisterInfo::updateRegAllocHint(unsigned Reg, unsigned NewReg,
|
||||
MachineFunction &MF) const {
|
||||
MachineRegisterInfo *MRI = &MF.getRegInfo();
|
||||
std::pair<unsigned, unsigned> Hint = MRI->getRegAllocationHint(Reg);
|
||||
|
@ -135,7 +135,7 @@ public:
|
||||
const MachineFunction &MF,
|
||||
const VirtRegMap *VRM) const override;
|
||||
|
||||
void UpdateRegAllocHint(unsigned Reg, unsigned NewReg,
|
||||
void updateRegAllocHint(unsigned Reg, unsigned NewReg,
|
||||
MachineFunction &MF) const override;
|
||||
|
||||
bool avoidWriteAfterWrite(const TargetRegisterClass *RC) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user