[PATCH] D79489: [mlir][Linalg] NFC - Refactor and simplify Promotion

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 02:48:08 PDT 2020


ftynse added inline comments.


================
Comment at: mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp:49
+namespace {
+struct LinalgOpInstancePromotionOptions {
+  LinalgOpInstancePromotionOptions(LinalgOp op,
----------------
Could we have some documentation?


================
Comment at: mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp:257
+                                  op.getOutputBuffers().end());
+  op.getOperation()->setOperands(0, opViews.size(), opViews);
 
----------------
If you want to call this function from a pattern, you are not allowed to do this (unless it's the root operation of the pattern and you surround it with a proper transaction start/stop)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79489





More information about the llvm-commits mailing list