[X86] Fix shuffle decoding for variable VPERMIL to be tolerant of the Constant type...
[oota-llvm.git] / lib / Target / X86 / Utils / X86ShuffleDecode.h
index b18cc7b4c2c5aebcb5896b07c68388f9b824744e..ab18e6438ec9548bd83ac80f433b81495a3524f8 100644 (file)
@@ -96,7 +96,8 @@ void decodeVSHUF64x2FamilyMask(MVT VT, unsigned Imm,
 void DecodeVPERMMask(unsigned Imm, SmallVectorImpl<int> &ShuffleMask);
 
 /// \brief Decode a VPERMILP variable mask from an IR-level vector constant.
-void DecodeVPERMILPMask(const Constant *C, SmallVectorImpl<int> &ShuffleMask);
+void DecodeVPERMILPMask(const Constant *C, unsigned ElSize,
+                        SmallVectorImpl<int> &ShuffleMask);
 
 /// \brief Decode a zero extension instruction as a shuffle mask.
 void DecodeZeroExtendMask(MVT SrcVT, MVT DstVT,