[PATCH] D79508: [mlir][gpu] Refactor functions for workgroup and private buffer attributions.

Wen-Heng (Jack) Chung via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 08:43:11 PDT 2020


whchung marked an inline comment as done.
whchung added inline comments.


================
Comment at: mlir/lib/Dialect/GPU/IR/GPUDialect.cpp:478
+  return getBody().front().insertArgument(
+      getType().getNumInputs() + workgroupAttrCount, type);
 }
----------------
herhut wrote:
> I would prefer if new private attributions would also be added at the end of the existing private attributes, rather than at the front. You could just use `addArgument` for this.
@herhut `addArgument` might not guard the case `addPrivateAttribution` is used prior to `addWorkgroupAttribution`. Now I have revised the patch to re-introduce `getNumPrivateAttribution` we can leverage it here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79508/new/

https://reviews.llvm.org/D79508





More information about the llvm-commits mailing list