SmallVector<scf::ForOp>
replaceLoopNestWithNewYields(OpBuilder &builder, ArrayRef<scf::ForOp> loopNest,
ValueRange newIterOperands,
- NewYieldValueFn newYieldValueFn);
+ const NewYieldValueFn &newYieldValueFn);
/// Outline a region with a single block into a new FuncOp.
/// Assumes the FuncOp result types is the type of the yielded operands of the
SmallVector<scf::ForOp> mlir::replaceLoopNestWithNewYields(
OpBuilder &builder, ArrayRef<scf::ForOp> loopNest,
- ValueRange newIterOperands, NewYieldValueFn newYieldValueFn) {
+ ValueRange newIterOperands, const NewYieldValueFn &newYieldValueFn) {
if (loopNest.empty())
return {};
SmallVector<scf::ForOp> newLoopNest(loopNest.size());