Skip to content

Commit f141a26

Browse files
committed
remove const
1 parent e57e8c3 commit f141a26

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mlir/include/mlir/Dialect/GPU/Utils/DistributionUtils.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ struct WarpDistributionPattern : OpRewritePattern<WarpExecuteOnLane0Op> {
2727
protected:
2828
/// Return a value yielded by `warpOp` which statifies the filter lamdba
2929
/// condition and is not dead.
30-
OpOperand *
31-
getWarpResult(WarpExecuteOnLane0Op warpOp,
32-
const llvm::function_ref<bool(Operation *)> fn) const;
30+
OpOperand *getWarpResult(WarpExecuteOnLane0Op warpOp,
31+
llvm::function_ref<bool(Operation *)> fn) const;
3332

3433
/// Helper to create a new WarpExecuteOnLane0Op with different signature.
3534
WarpExecuteOnLane0Op moveRegionToNewWarpOpAndReplaceReturns(

mlir/lib/Dialect/GPU/Utils/DistributionUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ WarpDistributionPattern::moveRegionToNewWarpOpAndAppendReturns(
8383

8484
OpOperand *WarpDistributionPattern::getWarpResult(
8585
WarpExecuteOnLane0Op warpOp,
86-
const llvm::function_ref<bool(Operation *)> fn) const {
86+
llvm::function_ref<bool(Operation *)> fn) const {
8787
auto yield = cast<gpu::YieldOp>(
8888
warpOp.getBodyRegion().getBlocks().begin()->getTerminator());
8989
for (OpOperand &yieldOperand : yield->getOpOperands()) {

0 commit comments

Comments
 (0)