[PowerPC][NFC] Make `getDefMIPostRA` public
authorKai Luo <lkail@cn.ibm.com>
Thu, 25 Jul 2019 08:36:44 +0000 (08:36 +0000)
committerKai Luo <lkail@cn.ibm.com>
Thu, 25 Jul 2019 08:36:44 +0000 (08:36 +0000)
llvm-svn: 366995

llvm/lib/Target/PowerPC/PPCInstrInfo.h

index 55047ad..5150650 100644 (file)
@@ -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