mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Added new C++-to-Swift callback for isDeinitBarrier. And pass it CalleeAnalysis so it can depend on function effects. For now, the argument is ignored. And, all callers just pass nullptr. Promoted to API the mayAccessPointer component predicate of isDeinitBarrier which needs to remain in C++. That predicate will also depends on function effects. For that reason, it too is now passed a BasicCalleeAnalysis and is moved into SILOptimizer. Also, added more conservative versions of isDeinitBarrier and maySynchronize which will never consider side-effects.
5.4 KiB
5.4 KiB