@@ -1475,6 +1475,12 @@ BridgedCanType BridgedInstruction::UnconditionalCheckedCast_getTargetFormalType(
1475
1475
return {getAs<swift::UnconditionalCheckedCastInst>()->getTargetFormalType ()};
1476
1476
}
1477
1477
1478
+ BridgedInstruction::CastingIsolatedConformances
1479
+ BridgedInstruction::UnconditionalCheckedCast_getIsolatedConformances () const {
1480
+ return static_cast <BridgedInstruction::CastingIsolatedConformances>(
1481
+ getAs<swift::UnconditionalCheckedCastInst>()->getIsolatedConformances ());
1482
+ }
1483
+
1478
1484
BridgedCanType BridgedInstruction::UnconditionalCheckedCastAddr_getSourceFormalType () const {
1479
1485
return {getAs<swift::UnconditionalCheckedCastAddrInst>()->getSourceFormalType ()};
1480
1486
}
@@ -1483,6 +1489,12 @@ BridgedCanType BridgedInstruction::UnconditionalCheckedCastAddr_getTargetFormalT
1483
1489
return {getAs<swift::UnconditionalCheckedCastAddrInst>()->getTargetFormalType ()};
1484
1490
}
1485
1491
1492
+ BridgedInstruction::CastingIsolatedConformances
1493
+ BridgedInstruction::UnconditionalCheckedCastAddr_getIsolatedConformances () const {
1494
+ return static_cast <BridgedInstruction::CastingIsolatedConformances>(
1495
+ getAs<swift::UnconditionalCheckedCastAddrInst>()->getIsolatedConformances ());
1496
+ }
1497
+
1486
1498
BridgedBasicBlock BridgedInstruction::CheckedCastBranch_getSuccessBlock () const {
1487
1499
return {getAs<swift::CheckedCastBranchInst>()->getSuccessBB ()};
1488
1500
}
@@ -1491,6 +1503,12 @@ BridgedBasicBlock BridgedInstruction::CheckedCastBranch_getFailureBlock() const
1491
1503
return {getAs<swift::CheckedCastBranchInst>()->getFailureBB ()};
1492
1504
}
1493
1505
1506
+ BridgedInstruction::CastingIsolatedConformances
1507
+ BridgedInstruction::CheckedCastBranch_getIsolatedConformances () const {
1508
+ return static_cast <BridgedInstruction::CastingIsolatedConformances>(
1509
+ getAs<swift::CheckedCastBranchInst>()->getIsolatedConformances ());
1510
+ }
1511
+
1494
1512
BridgedCanType BridgedInstruction::CheckedCastAddrBranch_getSourceFormalType () const {
1495
1513
return {getAs<swift::CheckedCastAddrBranchInst>()->getSourceFormalType ()};
1496
1514
}
@@ -1519,6 +1537,11 @@ BridgedInstruction::CastConsumptionKind BridgedInstruction::CheckedCastAddrBranc
1519
1537
getAs<swift::CheckedCastAddrBranchInst>()->getConsumptionKind ());
1520
1538
}
1521
1539
1540
+ BridgedInstruction::CastingIsolatedConformances
1541
+ BridgedInstruction::CheckedCastAddrBranch_getIsolatedConformances () const {
1542
+ return static_cast <BridgedInstruction::CastingIsolatedConformances>(
1543
+ getAs<swift::CheckedCastAddrBranchInst>()->getIsolatedConformances ());
1544
+ }
1522
1545
1523
1546
BridgedSubstitutionMap BridgedInstruction::ApplySite_getSubstitutionMap () const {
1524
1547
auto as = swift::ApplySite (unbridged ());
@@ -2065,25 +2088,31 @@ BridgedInstruction BridgedBuilder::createUpcast(BridgedValue op, BridgedType typ
2065
2088
}
2066
2089
2067
2090
BridgedInstruction BridgedBuilder::createCheckedCastAddrBranch (
2068
- BridgedValue source, BridgedCanType sourceFormalType,
2069
- BridgedValue destination, BridgedCanType targetFormalType,
2070
- BridgedInstruction::CastConsumptionKind consumptionKind,
2071
- BridgedBasicBlock successBlock, BridgedBasicBlock failureBlock) const
2091
+ BridgedValue source, BridgedCanType sourceFormalType,
2092
+ BridgedValue destination, BridgedCanType targetFormalType,
2093
+ BridgedInstruction::CastingIsolatedConformances isolatedConformances,
2094
+ BridgedInstruction::CastConsumptionKind consumptionKind,
2095
+ BridgedBasicBlock successBlock, BridgedBasicBlock failureBlock) const
2072
2096
{
2073
2097
return {unbridged ().createCheckedCastAddrBranch (
2074
- regularLoc (), (swift::CastConsumptionKind)consumptionKind,
2075
- source.getSILValue (), sourceFormalType.unbridged (),
2076
- destination.getSILValue (), targetFormalType.unbridged (),
2077
- successBlock.unbridged (), failureBlock.unbridged ())};
2098
+ regularLoc (),
2099
+ (swift::CastingIsolatedConformances)isolatedConformances,
2100
+ (swift::CastConsumptionKind)consumptionKind,
2101
+ source.getSILValue (), sourceFormalType.unbridged (),
2102
+ destination.getSILValue (), targetFormalType.unbridged (),
2103
+ successBlock.unbridged (), failureBlock.unbridged ())};
2078
2104
}
2079
2105
2080
2106
BridgedInstruction BridgedBuilder::createUnconditionalCheckedCastAddr (
2081
- BridgedValue source, BridgedCanType sourceFormalType,
2082
- BridgedValue destination, BridgedCanType targetFormalType) const
2107
+ BridgedInstruction::CastingIsolatedConformances isolatedConformances,
2108
+ BridgedValue source, BridgedCanType sourceFormalType,
2109
+ BridgedValue destination, BridgedCanType targetFormalType) const
2083
2110
{
2084
2111
return {unbridged ().createUnconditionalCheckedCastAddr (
2085
- regularLoc (), source.getSILValue (), sourceFormalType.unbridged (),
2086
- destination.getSILValue (), targetFormalType.unbridged ())};
2112
+ regularLoc (),
2113
+ (swift::CastingIsolatedConformances)isolatedConformances,
2114
+ source.getSILValue (), sourceFormalType.unbridged (),
2115
+ destination.getSILValue (), targetFormalType.unbridged ())};
2087
2116
}
2088
2117
2089
2118
BridgedInstruction BridgedBuilder::createLoad (BridgedValue op, SwiftInt ownership) const {
0 commit comments