Skip to content

Commit ed64536

Browse files
Use std::function_ref.
1 parent 38889dc commit ed64536

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Interfaces/LoopLikeInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RewriterBase;
2222
/// `replaceWithAdditionalYields`. `newBbArgs` are the newly added region
2323
/// iter_args. This function should return as many values as there are block
2424
/// arguments in `newBbArgs`.
25-
using NewYieldValuesFn = std::function<SmallVector<Value>(
25+
using NewYieldValuesFn = llvm::function_ref<SmallVector<Value>(
2626
OpBuilder &b, Location loc, ArrayRef<BlockArgument> newBbArgs)>;
2727

2828
/// A function that allows returning additional yielded values during
@@ -41,7 +41,7 @@ using NewYieldValuesFn = std::function<SmallVector<Value>(
4141
/// - `resultStrides` is of the same size as `tiledValues` and represents
4242
/// the strides to use when inserting corresponding element from `tiledValues`
4343
/// into the element from `newBbArgs`.
44-
using YieldTiledValuesFn = std::function<LogicalResult(
44+
using YieldTiledValuesFn = llvm::function_ref<LogicalResult(
4545
RewriterBase &rewriter, Location loc, ValueRange ivs, ValueRange newBbArgs,
4646
SmallVector<Value> &tiledValues,
4747
SmallVector<SmallVector<OpFoldResult>> &resultOffsets,

0 commit comments

Comments
 (0)