Commit Graph

3 Commits

Author SHA1 Message Date
Allan Shortlidge
3d722e1919 ClangImporter: Generate and call custom availability domain predicates.
When importing custom availability domains with dynamic predicates from Clang
modules, synthesize predicate functions for `if #available` queries and call
them when generating SIL.

Resolves rdar://138441312.
2025-07-10 08:15:01 -07:00
Allan Shortlidge
e94713191c Tests: Clean up IRGen tests for custom availability.
Nest the `if #available` queries in functions so that it's easier to check the
resulting IR unambiguously.
2025-07-09 18:11:15 -07:00
Allan Shortlidge
303f7d8452 AST: Build scopes for if #available queries on custom availability domains.
Resolves rdar://138441298 and rdar://138441307.
2025-04-01 09:03:41 -07:00