[PATCH] D78484: Providing buffer assignment for MLIR
Ehsan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 24 05:54:24 PDT 2020
dfki-ehna marked 3 inline comments as done.
dfki-ehna added inline comments.
================
Comment at: mlir/lib/Transforms/BufferPlacement.cpp:422
+ auto arg = block.getArgument(i);
+ arg.setType(toMemrefConverter(arg.getType()));
+ }
----------------
rriddle wrote:
> dfki-ehna wrote:
> > rriddle wrote:
> > > This isn't really valid to do directly in a pattern, as it is being done outside of the rewriter. Seems like this pattern can just be replaced by using a TypeConverter instead.
> > TypeConverter has convertBlockSignature which returns SignatureConversion but there is no applySignatureConversion for the rewriter that gets a Block as an input (the current version only accepts a region). Are we missing the point?
> When passing a type converter the non-entry blocks are converted automatically using that converter. After that I would expect that the default function conversion pattern would remove the need for this pattern:
> https://github.com/llvm/llvm-project/blob/3d178581ac7f5336b1ac75e31001de074ecca937/mlir/include/mlir/Transforms/DialectConversion.h#L300
Thanks. Resolved.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78484/new/
https://reviews.llvm.org/D78484
More information about the llvm-commits
mailing list