summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/Utils/X86ShuffleDecode.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-08-15 11:01:37 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-08-15 11:01:37 +0000
commit0288620f67a74e67604776c5257c0481c07be7c5 (patch)
tree24734791401f78b493593785f46438fd17cf2306 /llvm/lib/Target/X86/Utils/X86ShuffleDecode.h
parentee843ef0fa305bc2451a7e8c9b962b64108fc348 (diff)
downloadbcm5719-llvm-0288620f67a74e67604776c5257c0481c07be7c5.tar.gz
bcm5719-llvm-0288620f67a74e67604776c5257c0481c07be7c5.zip
[x86] Teach the instruction printer to decode immediate operands to
BLENDPS, BLENDPD, and PBLENDW instructions into pretty shuffle comments. These will be used in my next commit as part of test cases for AVX shuffles which can directly use blend in more places. llvm-svn: 215701
Diffstat (limited to 'llvm/lib/Target/X86/Utils/X86ShuffleDecode.h')
-rw-r--r--llvm/lib/Target/X86/Utils/X86ShuffleDecode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/Utils/X86ShuffleDecode.h b/llvm/lib/Target/X86/Utils/X86ShuffleDecode.h
index 51ebe86259a..911e7047ee6 100644
--- a/llvm/lib/Target/X86/Utils/X86ShuffleDecode.h
+++ b/llvm/lib/Target/X86/Utils/X86ShuffleDecode.h
@@ -70,6 +70,9 @@ void DecodePSHUFBMask(const ConstantDataSequential *C,
void DecodePSHUFBMask(ArrayRef<uint64_t> RawMask,
SmallVectorImpl<int> &ShuffleMask);
+/// \brief Decode a BLEND immediate mask into a shuffle mask.
+void DecodeBLENDMask(MVT VT, unsigned Imm, SmallVectorImpl<int> &ShuffleMask);
+
void DecodeVPERM2X128Mask(MVT VT, unsigned Imm,
SmallVectorImpl<int> &ShuffleMask);
OpenPOWER on IntegriCloud