diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 19:33:37 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 19:33:37 +0000 |
commit | 5e6e8c7a0a2ee0053a082453f687ae4f0e8da852 (patch) | |
tree | 244b26dcfd584ef74347f3f6fca72417dee4d5a2 /llvm/lib/CodeGen/AggressiveAntiDepBreaker.h | |
parent | bd529fbb4a678b1a07cf769be71b1a8e41d527ec (diff) | |
download | bcm5719-llvm-5e6e8c7a0a2ee0053a082453f687ae4f0e8da852.tar.gz bcm5719-llvm-5e6e8c7a0a2ee0053a082453f687ae4f0e8da852.zip |
CodeGen: Use MachineInstr& in AntiDepBreaker API, NFC
Take parameters as MachineInstr& instead of MachineInstr* in
AntiDepBreaker API, since these are required to be non-null. No
functionality change intended. Looking toward PR26753.
llvm-svn: 262145
Diffstat (limited to 'llvm/lib/CodeGen/AggressiveAntiDepBreaker.h')
-rw-r--r-- | llvm/lib/CodeGen/AggressiveAntiDepBreaker.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.h b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.h index eba73839660..f97e6666b21 100644 --- a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.h +++ b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.h @@ -144,7 +144,7 @@ class LLVM_LIBRARY_VISIBILITY AggressiveAntiDepState { /// Update liveness information to account for the current /// instruction, which will not be scheduled. /// - void Observe(MachineInstr *MI, unsigned Count, + void Observe(MachineInstr &MI, unsigned Count, unsigned InsertPosIndex) override; /// Finish anti-dep breaking for a basic block. @@ -156,19 +156,19 @@ class LLVM_LIBRARY_VISIBILITY AggressiveAntiDepState { /// Return true if MO represents a register /// that is both implicitly used and defined in MI - bool IsImplicitDefUse(MachineInstr *MI, MachineOperand& MO); + bool IsImplicitDefUse(MachineInstr &MI, MachineOperand &MO); /// If MI implicitly def/uses a register, then /// return that register and all subregisters. - void GetPassthruRegs(MachineInstr *MI, std::set<unsigned>& PassthruRegs); + void GetPassthruRegs(MachineInstr &MI, std::set<unsigned> &PassthruRegs); void HandleLastUse(unsigned Reg, unsigned KillIdx, const char *tag, const char *header = nullptr, const char *footer = nullptr); - void PrescanInstruction(MachineInstr *MI, unsigned Count, - std::set<unsigned>& PassthruRegs); - void ScanInstruction(MachineInstr *MI, unsigned Count); + void PrescanInstruction(MachineInstr &MI, unsigned Count, + std::set<unsigned> &PassthruRegs); + void ScanInstruction(MachineInstr &MI, unsigned Count); BitVector GetRenameRegisters(unsigned Reg); bool FindSuitableFreeRegisters(unsigned AntiDepGroupIndex, RenameOrderType& RenameOrder, |