diff options
author | Fraser Cormack <fraser@codeplay.com> | 2021-12-13 17:52:47 +0000 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2021-12-13 17:53:19 +0000 |
commit | 2d60bc87a25525a731629e35c919034e07d3a1bb (patch) | |
tree | 55ad0f00300718103b738124d73b7e7c33f3a715 | |
parent | fc33861d48a95aa4682ce3b6e44732e5c8bbd092 (diff) | |
download | llvm-2d60bc87a25525a731629e35c919034e07d3a1bb.zip llvm-2d60bc87a25525a731629e35c919034e07d3a1bb.tar.gz llvm-2d60bc87a25525a731629e35c919034e07d3a1bb.tar.bz2 |
[VP] [NFC] Fix vp_store signature and vp_gather examples
Reviewed By: frasercrmck, simoll
Differential Revision: https://reviews.llvm.org/D115027
-rw-r--r-- | llvm/docs/LangRef.rst | 4 | ||||
-rw-r--r-- | llvm/include/llvm/IR/VPIntrinsics.def | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 709a3e9..55cfba8 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -19772,12 +19772,12 @@ Examples: .. code-block:: text - %r = call void @llvm.vp.scatter.v8i8.v8p0i8(<8 x i8> %val, <8 x i8*> %ptrs, <8 x i1> %mask, i32 %evl) + %r = call <8 x i8> @llvm.vp.gather.v8i8.v8p0i8(<8 x i8*> %ptrs, <8 x i1> %mask, i32 %evl) ;; For all lanes below %evl, %r is lane-wise equivalent to %also.r ;; Note that since the alignment is ultimately up to the data layout ;; string, 8 is used as an example. - %also.r = call void @llvm.masked.scatter.v8i8.v8p0i8(<8 x i8> %val, <8 x i8*> %ptrs, i32 8, <8 x i1> %mask, <8 x i8> undef) + %also.r = call <8 x i8> @llvm.masked.gather.v8i8.v8p0i8(<8 x i8*> %ptrs, i32 8, <8 x i1> %mask, <8 x i8> undef) .. _int_vp_scatter: diff --git a/llvm/include/llvm/IR/VPIntrinsics.def b/llvm/include/llvm/IR/VPIntrinsics.def index ceb999c..121c8bb 100644 --- a/llvm/include/llvm/IR/VPIntrinsics.def +++ b/llvm/include/llvm/IR/VPIntrinsics.def @@ -214,7 +214,7 @@ HELPER_REGISTER_BINARY_FP_VP(frem, VP_FREM, FRem) ///// } Floating-Point Arithmetic ///// Memory Operations { -// llvm.vp.store(ptr,val,mask,vlen) +// llvm.vp.store(val,ptr,mask,vlen) BEGIN_REGISTER_VP_INTRINSIC(vp_store, 2, 3) // chain = VP_STORE chain,val,base,offset,mask,evl BEGIN_REGISTER_VP_SDNODE(VP_STORE, 0, vp_store, 4, 5) |