diff options
author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2015-11-19 07:17:16 +0000 |
---|---|---|
committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2015-11-19 07:17:16 +0000 |
commit | 1ca72e1846fca95dcb4182c2672ff90c71511965 (patch) | |
tree | 634d1bb1c261a92ab5a1e488dac06bdf5b7d861f /llvm/lib/IR/Function.cpp | |
parent | 67cf9a723ba5cf0a711efcb317b241104b558779 (diff) | |
download | llvm-1ca72e1846fca95dcb4182c2672ff90c71511965.zip llvm-1ca72e1846fca95dcb4182c2672ff90c71511965.tar.gz llvm-1ca72e1846fca95dcb4182c2672ff90c71511965.tar.bz2 |
Pointers in Masked Load, Store, Gather, Scatter intrinsics
The masked intrinsics support all integer and floating point data types. I added the pointer type to this list.
Added tests for CodeGen and for Loop Vectorizer.
Updated the Language Reference.
Differential Revision: http://reviews.llvm.org/D14150
llvm-svn: 253544
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 3a1c7a4..ccdb5ac 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -492,7 +492,10 @@ static std::string getMangledTypeStr(Type* Ty) { Result += "vararg"; // Ensure nested function types are distinguishable. Result += "f"; - } else if (Ty) + } else if (isa<VectorType>(Ty)) + Result += "v" + utostr(Ty->getVectorNumElements()) + + getMangledTypeStr(Ty->getVectorElementType()); + else if (Ty) Result += EVT::getEVT(Ty).getEVTString(); return Result; } |