SwiftCompilerSources: move SIL-related Context APIs from Optimizer to the SIL module

This commit is contained in:
Erik Eckstein
2025-07-28 10:38:45 +02:00
parent 319f49ad9f
commit 41a6b8e257
20 changed files with 361 additions and 430 deletions

View File

@@ -30,6 +30,12 @@ public struct DeclRef: CustomStringConvertible, NoReflectionChildren {
public static func ==(lhs: DeclRef, rhs: DeclRef) -> Bool {
lhs.bridged.isEqualTo(rhs.bridged)
}
/// Do we have enough information to determine all callees that could
/// be reached by calling the function represented by Decl?
public func calleesAreStaticallyKnowable(_ context: some Context) -> Bool {
context._bridged.calleesAreStaticallyKnowable(bridged)
}
}
extension DeclRef: DiagnosticArgument {