swift
cedb439b - Bridging: Implement several bridges for FunctionPassContext and SILCloner

Commit
2 days ago
Bridging: Implement several bridges for FunctionPassContext and SILCloner This follows #84648 and #85756 with additional bridges needed for AutoDiff Closure Specialization. - Let `FunctionPassContext` look up top-level values by name in the current module, find the associated source file, and get or create the context for synthesized declarations in that file. - Let `Cloner(cloneBefore:)` take a substitution map when copying SIL instructions between generic contexts. For example, if the source’s `T` maps to `U` in the destination, the clone of `partial_apply %fn<T>(...)` must use `%fn<U>`.
Author
Parents
Loading