SIL: add matchesActorIsolation

Returns true if the conformance is not isolated or if its isolation matches the isolation `inFunction`.
This commit is contained in:
Erik Eckstein
2025-04-04 19:10:34 +02:00
parent bcf845c620
commit 9df1039379
5 changed files with 37 additions and 0 deletions

View File

@@ -69,6 +69,10 @@ DynamicCastFeasibility classifyDynamicCast(
bool isSourceTypeExact = false,
bool isWholeModuleOpts = false);
/// Returns true if the conformance is not isolated or if its isolation matches
/// the isolation `inFunction`.
bool matchesActorIsolation(ProtocolConformanceRef conformance, SILFunction *inFunction);
SILValue emitSuccessfulScalarUnconditionalCast(SILBuilder &B, SILLocation loc,
SILDynamicCastInst inst);