Skip to content

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Aug 21, 2025

Specifically, I am refactoring out the code that converts actor/Optional to an executor in preparation for adding code to LowerHopToExecutor that handles Builtin.ImplicitIsolationActor.

The only actual functional change is that I made getExecutorForOptionalActor support being invoked when generating code (i.e. when its SILBuilder has an insertion point at the end of the block). It previously assumed that it would always have a real SILInstruction as an insertion point. The changes can be seen in the places where we now check if the insertion point equals the end of a block. Its very minor and due to conditional control flow doesn't have any actual impact given the manner that the code today is generated. This came up in a subsequent commit when I reuse this code to generate a helper function for converting Builtin.ImplicitIsolationActor to Builtin.Executor.


This is split out from #83346

@gottesmm gottesmm requested a review from eeckstein as a code owner August 21, 2025 19:52
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge August 21, 2025 19:52
@gottesmm gottesmm force-pushed the pr-723e8720ba1310d5199281d6ef14fd5ab808667c branch from 577380a to 9f49fe7 Compare August 21, 2025 21:54
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

…changing the pass.

Specifically, I am refactoring out the code that converts actor/Optional<any
Actor> to an executor in preparation for adding code to LowerHopToExecutor that
handles Builtin.ImplicitIsolationActor.

The only actual functional change is that I made getExecutorForOptionalActor
support being invoked when generating code (i.e. when its SILBuilder has an
insertion point at the end of the block). It previously assumed that it would
always have a real SILInstruction as an insertion point. The changes can be seen
in the places where we now check if the insertion point equals the end of a
block. Its very minor and due to conditional control flow doesn't have any
actual impact given the manner that the code today is generated. This came up in
a subsequent commit when I reuse this code to generate a helper function for
converting Builtin.ImplicitIsolationActor to Builtin.Executor.
@gottesmm gottesmm force-pushed the pr-723e8720ba1310d5199281d6ef14fd5ab808667c branch from 9f49fe7 to 21915ae Compare August 22, 2025 19:40
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci test windows platform

@gottesmm gottesmm merged commit d22255e into swiftlang:main Aug 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant