File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- // ===- TestSingleFold.cpp - Pass to test single-pass folding --------------- ===//
1+ // ===- TestSingleFold.cpp - Pass to test single-pass folding --------------===//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
@@ -13,7 +13,7 @@ using namespace mlir;
1313
1414namespace {
1515// / Test pass for single-pass constant folding.
16- // /
16+ // /
1717// / This pass tests the behavior of operations when folded exactly once. Unlike
1818// / canonicalization passes that may apply multiple rounds of folding, this pass
1919// / ensures that each operation is folded at most once, which is useful for
@@ -59,7 +59,8 @@ void TestSingleFold::runOnOperation() {
5959
6060 // Collect and fold the operations within the operation.
6161 SmallVector<Operation *, 8 > ops;
62- getOperation ()->walk <mlir::WalkOrder::PreOrder>([&](Operation *op) { ops.push_back (op); });
62+ getOperation ()->walk <mlir::WalkOrder::PreOrder>(
63+ [&](Operation *op) { ops.push_back (op); });
6364
6465 // Fold the constants in reverse so that the last generated constants from
6566 // folding are at the beginning. This creates somewhat of a linear ordering to
You can’t perform that action at this time.
0 commit comments