[PATCH] D79518: [mlir][Linalg] Introduce a helper function for staged pattern application

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 15:19:57 PDT 2020


rriddle added inline comments.


================
Comment at: mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h:386
+    OwningRewritePatternList &stage2Patterns,
+    std::function<void(Operation *)> stage3Lambda = nullptr);
 } // namespace linalg
----------------
Only use std::function if you need to store it, otherwise use function_ref.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79518





More information about the llvm-commits mailing list