summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2015-08-30 07:28:18 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2015-08-30 07:28:18 +0000
commita59fcfa56b5299b82183ae2613892df1bf13d0f6 (patch)
treef97c5c1e1c78340b9ac5a2e9e859038de63caa9a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent799e880e95f6e179290abb83a538685b95859093 (diff)
New interface function is added to VectorUtils
Value *getSplatValue(Value *Val); It complements the CreateVectorSplat(), which creates 2 instructions - insertelement and shuffle with all-zero mask. The new function recognizes the pattern - insertelement+shuffle and returns the splat value (or nullptr). It also returns a splat value form ConstantDataVector, for completeness. Differential Revision: http://reviews.llvm.org/D11124 llvm-svn: 246371
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions