[PATCH] D79046: Add comment.
Wen-Heng (Jack) Chung via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 15:07:16 PDT 2020
whchung created this revision.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: aartbik.
Herald added a reviewer: ftynse.
Herald added a project: LLVM.
whchung abandoned this revision.
whchung added a comment.
should be amended in D79023 <https://reviews.llvm.org/D79023>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79046
Files:
mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
Index: mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
===================================================================
--- mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
+++ mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
@@ -835,6 +835,9 @@
MemRefType memRefType = xferOp.getMemRefType();
// 1. Get the source/dst address as an LLVM vector pointer.
+ // The vector pointer would always be on address space 0, therefore
+ // addrspacecast shall be used when source/dst memrefs are not on
+ // address space 0.
// TODO: support alignment when possible.
Value dataPtr = getDataPtr(loc, memRefType, adaptor.memref(),
adaptor.indices(), rewriter, getModule());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79046.260776.patch
Type: text/x-patch
Size: 761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/9c1d913f/attachment.bin>
More information about the llvm-commits
mailing list