diff options
| author | Kai Luo <lkail@cn.ibm.com> | 2019-07-25 08:36:44 +0000 |
|---|---|---|
| committer | Kai Luo <lkail@cn.ibm.com> | 2019-07-25 08:36:44 +0000 |
| commit | 985e52a4c1c61450d316505cd55f8e2d89d8aeac (patch) | |
| tree | bf3b5d77e82c701433da244eeb5086bb2a62fefb /llvm/lib | |
| parent | f46e8974dea4f8c6f4f9655a7e24d196af54862c (diff) | |
| download | bcm5719-llvm-985e52a4c1c61450d316505cd55f8e2d89d8aeac.tar.gz bcm5719-llvm-985e52a4c1c61450d316505cd55f8e2d89d8aeac.zip | |
[PowerPC][NFC] Make `getDefMIPostRA` public
llvm-svn: 366995
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.h b/llvm/lib/Target/PowerPC/PPCInstrInfo.h index 55047ade1c9..5150650439b 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.h +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.h @@ -140,11 +140,6 @@ class PPCInstrInfo : public PPCGenInstrInfo { unsigned &OpNoForForwarding, bool &SeenIntermediateUse) const; - // In PostRA phase, try to find instruction defines \p Reg before \p MI. - // \p SeenIntermediate is set to true if uses between DefMI and \p MI exist. - MachineInstr *getDefMIPostRA(unsigned Reg, MachineInstr &MI, - bool &SeenIntermediateUse) const; - // Can the user MI have it's source at index \p OpNoForForwarding // forwarded from an add-immediate that feeds it? bool isUseMIElgibleForForwarding(MachineInstr &MI, const ImmInstrInfo &III, @@ -447,6 +442,11 @@ public: bool instrHasImmForm(unsigned Opc, bool IsVFReg, ImmInstrInfo &III, bool PostRA) const; + // In PostRA phase, try to find instruction defines \p Reg before \p MI. + // \p SeenIntermediate is set to true if uses between DefMI and \p MI exist. + MachineInstr *getDefMIPostRA(unsigned Reg, MachineInstr &MI, + bool &SeenIntermediateUse) const; + /// getRegNumForOperand - some operands use different numbering schemes /// for the same registers. For example, a VSX instruction may have any of /// vs0-vs63 allocated whereas an Altivec instruction could only have |

