File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
include/swift/SILOptimizer/Utils
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1220,6 +1220,10 @@ struct PartitionOpEvaluator {
1220
1220
return asImpl ().isActorDerived (elt);
1221
1221
}
1222
1222
1223
+ ValueIsolationRegionInfo getIsolationRegionInfo (Element elt) const {
1224
+ return asImpl ().getIsolationRegionInfo (elt);
1225
+ }
1226
+
1223
1227
bool isTaskIsolatedDerived (Element elt) const {
1224
1228
return asImpl ().isTaskIsolatedDerived (elt);
1225
1229
}
@@ -1429,6 +1433,12 @@ struct PartitionOpEvaluatorBaseImpl : PartitionOpEvaluator<Subclass> {
1429
1433
// / isolated value.
1430
1434
bool isTaskIsolatedDerived (Element elt) const { return false ; }
1431
1435
1436
+ // / Returns the information about \p elt's isolation that we ascertained from
1437
+ // / SIL and the AST.
1438
+ ValueIsolationRegionInfo getIsolationRegionInfo (Element elt) const {
1439
+ return ValueIsolationRegionInfo ();
1440
+ }
1441
+
1432
1442
// / Check if the representative value of \p elt is closure captured at \p
1433
1443
// / op.
1434
1444
// /
Original file line number Diff line number Diff line change @@ -1355,6 +1355,10 @@ struct DiagnosticEvaluator final
1355
1355
return info->getValueMap ().getIsolationRegion (element).getKind ();
1356
1356
}
1357
1357
1358
+ ValueIsolationRegionInfo getIsolationRegionInfo (Element element) const {
1359
+ return info->getValueMap ().getIsolationRegion (element);
1360
+ }
1361
+
1358
1362
bool isClosureCaptured (Element element, Operand *op) const {
1359
1363
auto value = info->getValueMap ().maybeGetRepresentative (element);
1360
1364
if (!value)
You can’t perform that action at this time.
0 commit comments