AMDGPU: Simplify VOP3 operand legalization.
[oota-llvm.git] / lib / Target / AMDGPU / SIInstrInfo.h
index 906c15c43d127f3e32cd1af330b654ecf511b5d9..5816bf822519ee3f5421d2c9a5b69cf5be6ebc3f 100644 (file)
@@ -378,6 +378,9 @@ public:
   bool isOperandLegal(const MachineInstr *MI, unsigned OpIdx,
                       const MachineOperand *MO = nullptr) const;
 
+  /// \brief Fix operands in \p MI to satisfy constant bus requirements.
+  void legalizeOperandsVOP3(MachineRegisterInfo &MRI, MachineInstr *MI) const;
+
   /// \brief Legalize all operands in this instruction.  This function may
   /// create new instruction and insert them before \p MI.
   void legalizeOperands(MachineInstr *MI) const;