Skip to content

Commit 92267b0

Browse files
authored
Merge pull request #60582 from gottesmm/pr-dfd59f102428f30c3251a9e62814f7a8ee2c9c82
Rename MoveOnlyChecker -> MoveOnlyObjectChecker.cpp.
2 parents fb1859d + e65601f commit 92267b0

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

include/swift/SILOptimizer/PassManager/Passes.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ PASS(BugReducerTester, "bug-reducer-tester",
437437
"sil-bug-reducer Tool Testing by Asserting on a Sentinel Function")
438438
PASS(AssemblyVisionRemarkGenerator, "assembly-vision-remark-generator",
439439
"Emit assembly vision remarks that provide source level guidance of where runtime calls ended up")
440-
PASS(MoveOnlyChecker, "sil-move-only-checker",
441-
"Pass that enforces move only invariants on raw SIL")
440+
PASS(MoveOnlyObjectChecker, "sil-move-only-object-checker",
441+
"Pass that enforces move only invariants on raw SIL for objects")
442442
PASS(MoveKillsCopyableValuesChecker, "sil-move-kills-copyable-values-checker",
443443
"Pass that checks that any copyable (non-move only) value that is passed "
444444
"to _move do not have any uses later than the _move")

lib/SILOptimizer/Mandatory/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ target_sources(swiftSILOptimizer PRIVATE
2525
MoveFunctionCanonicalization.cpp
2626
MoveKillsCopyableAddressesChecker.cpp
2727
MoveKillsCopyableValuesChecker.cpp
28-
MoveOnlyChecker.cpp
28+
MoveOnlyObjectChecker.cpp
2929
NestedSemanticFunctionCheck.cpp
3030
OptimizeHopToExecutor.cpp
3131
PerformanceDiagnostics.cpp

lib/SILOptimizer/Mandatory/MoveOnlyChecker.cpp renamed to lib/SILOptimizer/Mandatory/MoveOnlyObjectChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,6 @@ class MoveOnlyCheckerPass : public SILFunctionTransform {
540540

541541
} // anonymous namespace
542542

543-
SILTransform *swift::createMoveOnlyChecker() {
543+
SILTransform *swift::createMoveOnlyObjectChecker() {
544544
return new MoveOnlyCheckerPass();
545545
}

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ static void addMandatoryDiagnosticOptPipeline(SILPassPipelinePlan &P) {
171171
// SSA based move function checking and no implicit copy checking.
172172
P.addMoveKillsCopyableValuesChecker(); // No uses after _move of copyable
173173
// value.
174-
P.addMoveOnlyChecker(); // Check noImplicitCopy isn't copied.
174+
P.addMoveOnlyObjectChecker(); // Check noImplicitCopy and move only
175+
// types.
175176

176177
// Now that we have run move only checking, eliminate SILMoveOnly wrapped
177178
// trivial types from the IR. We cannot introduce extra "copies" of trivial

0 commit comments

Comments
 (0)