forked from OSchip/llvm-project
Apply clang-tidy fixes for performance-unnecessary-value-param in Utils.cpp (NFC)
This commit is contained in:
parent
4f89ff3fc7
commit
63d69a21b7
|
@ -54,7 +54,7 @@ using NewYieldValueFn = std::function<SmallVector<Value>(
|
|||
OpBuilder &b, Location loc, ArrayRef<BlockArgument> newBBArgs)>;
|
||||
scf::ForOp replaceLoopWithNewYields(OpBuilder &builder, scf::ForOp loop,
|
||||
ValueRange newIterOperands,
|
||||
NewYieldValueFn newYieldValuesFn);
|
||||
const NewYieldValueFn &newYieldValuesFn);
|
||||
|
||||
/// 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
|
||||
|
|
|
@ -36,9 +36,10 @@ struct LoopParams {
|
|||
};
|
||||
} // namespace
|
||||
|
||||
scf::ForOp mlir::replaceLoopWithNewYields(OpBuilder &builder, scf::ForOp loop,
|
||||
ValueRange newIterOperands,
|
||||
NewYieldValueFn newYieldValuesFn) {
|
||||
scf::ForOp
|
||||
mlir::replaceLoopWithNewYields(OpBuilder &builder, scf::ForOp loop,
|
||||
ValueRange newIterOperands,
|
||||
const NewYieldValueFn &newYieldValuesFn) {
|
||||
// Create a new loop before the existing one, with the extra operands.
|
||||
OpBuilder::InsertionGuard g(builder);
|
||||
builder.setInsertionPoint(loop);
|
||||
|
|
Loading…
Reference in New Issue