[Mlir-commits] [mlir] [MLIR] Create GPU utils library & move distribution utils (PR #119264)

Jakub Kuderski llvmlistbot at llvm.org
Thu Dec 12 10:21:36 PST 2024


================
@@ -30,8 +27,9 @@ struct WarpDistributionPattern : OpRewritePattern<WarpExecuteOnLane0Op> {
 protected:
   /// Return a value yielded by `warpOp` which statifies the filter lamdba
   /// condition and is not dead.
-  OpOperand *getWarpResult(WarpExecuteOnLane0Op warpOp,
-                           const std::function<bool(Operation *)> &fn) const;
+  OpOperand *
+  getWarpResult(WarpExecuteOnLane0Op warpOp,
+                const llvm::function_ref<bool(Operation *)> fn) const;
----------------
kuhar wrote:

```suggestion
                llvm::function_ref<bool(Operation *)> fn) const;
```

https://github.com/llvm/llvm-project/pull/119264


More information about the Mlir-commits mailing list