Skip to content

[region-isolation] Change named transfer non transferable error to use the dynamic merged IsolationRegionInfo found during dataflow. #72403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 19, 2024

Conversation

gottesmm
Copy link
Contributor

[region-isolation] Change named transfer non transferable error to use the dynamic merged IsolationRegionInfo found during dataflow.

I also eliminated the very basic "why is this task isolated" part of the warning
in favor of the larger, better, region history impl that I am going to land
soon. The diagnostic wasn't that good in the first place and also was fiddly. So
I removed it for now.

rdar://124960994


I noticed this while fixing a different bug. To make it a little clearer, the issue is that we were emitting diagnostics where we were using the value region isolation of the immediate value which is a static flow insensitive property. Instead, we want to when we emit the error merge together all of the isolation region info of all elements in that value’s region and use that for the error. This ensures that if we merge an actor isolated thing into a task isolated thing, we emit an error saying the task isolated thing was actor isolated (since actor isolation takes precedence in the region).

…erTransfer.

Now that we have other forms of error callbacks, having such a general name for
any specific failure is misleading and hinds intent.
ActorIsolation::getActor() asserts if an actor cannot be found. This new helper
method just returns nullptr instead.
…h -> PartitionUtils.h.

I am going to need this so that I can use it when evaluating partition
ops. Specifically, so I can when I find two values that do not merge correctly,
emit an error.
…itionOpEvaluator.

This will let me look up the dynamic isolation region associated with \p elt
while performing dataflow.
…e the dynamic merged IsolationRegionInfo found during dataflow.

I also eliminated the very basic "why is this task isolated" part of the warning
in favor of the larger, better, region history impl that I am going to land
soon. The diagnostic wasn't that good in the first place and also was fiddly. So
I removed it for now.

rdar://124960994
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge March 18, 2024 21:50
@gottesmm gottesmm merged commit 538cdba into swiftlang:main Mar 19, 2024
@gottesmm gottesmm deleted the rdar124960994 branch March 19, 2024 00:46
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