[X86][SSE] Add general memory folding for (V)INSERTPS instruction
[oota-llvm.git] / lib / Target / X86 / X86InstrInfo.h
index e83a10f3b81c5eb987a48dfdb89bcd8ba2947f18..3f6b030c442da8630438968266e0e00e3d94daf9 100644 (file)
@@ -512,6 +512,14 @@ private:
                                               MachineBasicBlock::iterator &MBBI,
                                               LiveVariables *LV) const;
 
+  /// Handles memory folding for special case instructions, for instance those
+  /// requiring custom manipulation of the address.
+  MachineInstr *foldMemoryOperandCustom(MachineFunction &MF, MachineInstr *MI,
+                                        unsigned OpNum,
+                                        ArrayRef<MachineOperand> MOs,
+                                        MachineBasicBlock::iterator InsertPt,
+                                        unsigned Size, unsigned Align) const;
+
   /// isFrameOperand - Return true and the FrameIndex if the specified
   /// operand and follow operands form a reference to the stack frame.
   bool isFrameOperand(const MachineInstr *MI, unsigned int Op,