diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
tree | 4def12e759965de927d963ac65840d663ef9d1ea /lib/Target/X86/X86ShuffleDecodeConstantPool.h | |
parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) |
Diffstat (limited to 'lib/Target/X86/X86ShuffleDecodeConstantPool.h')
-rw-r--r-- | lib/Target/X86/X86ShuffleDecodeConstantPool.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/Target/X86/X86ShuffleDecodeConstantPool.h b/lib/Target/X86/X86ShuffleDecodeConstantPool.h index bcf46322c8cd5..d2565b849807e 100644 --- a/lib/Target/X86/X86ShuffleDecodeConstantPool.h +++ b/lib/Target/X86/X86ShuffleDecodeConstantPool.h @@ -25,18 +25,25 @@ namespace llvm { class Constant; class MVT; -/// \brief Decode a PSHUFB mask from an IR-level vector constant. +/// Decode a PSHUFB mask from an IR-level vector constant. void DecodePSHUFBMask(const Constant *C, SmallVectorImpl<int> &ShuffleMask); -/// \brief Decode a VPERMILP variable mask from an IR-level vector constant. +/// Decode a VPERMILP variable mask from an IR-level vector constant. void DecodeVPERMILPMask(const Constant *C, unsigned ElSize, SmallVectorImpl<int> &ShuffleMask); -/// \brief Decode a VPERM W/D/Q/PS/PD mask from an IR-level vector constant. +/// Decode a VPERMILP2 variable mask from an IR-level vector constant. +void DecodeVPERMIL2PMask(const Constant *C, unsigned MatchImm, unsigned ElSize, + SmallVectorImpl<int> &ShuffleMask); + +/// Decode a VPPERM variable mask from an IR-level vector constant. +void DecodeVPPERMMask(const Constant *C, SmallVectorImpl<int> &ShuffleMask); + +/// Decode a VPERM W/D/Q/PS/PD mask from an IR-level vector constant. void DecodeVPERMVMask(const Constant *C, MVT VT, SmallVectorImpl<int> &ShuffleMask); -/// \brief Decode a VPERMT2 W/D/Q/PS/PD mask from an IR-level vector constant. +/// Decode a VPERMT2 W/D/Q/PS/PD mask from an IR-level vector constant. void DecodeVPERMV3Mask(const Constant *C, MVT VT, SmallVectorImpl<int> &ShuffleMask); |