swift
[6.0] Support closures that capture opened pack element types
#73541
Merged

[6.0] Support closures that capture opened pack element types #73541

slavapestov
slavapestov slavapestov requested a review 1 year ago
slavapestov slavapestov marked this pull request as draft 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov slavapestov force pushed 1 year ago
slavapestov ASTVerifier: Consolidate verifier logic for local archetypes
a8bd4e7f
slavapestov AST: Record captured generic environments in CaptureInfo
a721ef80
slavapestov slavapestov force pushed 1 year ago
slavapestov
slavapestov
slavapestov slavapestov marked this pull request as ready for review 1 year ago
eeckstein
slavapestov
slavapestov AST: Add getNextDepth() and getMaxDepth() methods to GenericSignature
1f621acf
slavapestov AST: Factor out LocalArchetypeRequirementCollector from SIL
5db9e4d7
slavapestov SIL: Plumb pack element captures through type lowering
413d94b7
slavapestov SIL: Rename old LocalArchetypeRequirementCollector
a5d127e0
slavapestov SIL: Support element archetypes inside lowerCaptureContextParameters()
3b083493
slavapestov AST: Introduce TypeBase::hasPrimaryArchetype()
3787d657
slavapestov SIL: Add missing SILType::has*Archetype() predicates
c6e46472
slavapestov AST: Use hasPrimaryArchetype() in a few places
531d91b8
slavapestov AST: Allow local archetypes in interface types of local declarations
8dc68c7f
slavapestov AST: Rewrite GenericEnvironment::mapElementTypeIntoPackContext()
a429e25a
slavapestov AST: Remove VarDecl::getOpenedElementEnvironment()
e2bc6fc6
slavapestov SIL: Store captured environments in SILFunction
ed63461f
slavapestov AutoDiff: Local workaround for invariant violation
fa390c99
slavapestov SIL: Handle captured environments in SILFunction::mapTypeIntoContext()
b27beb96
slavapestov SIL: Fix assertion failure after deleting instructions that contain u…
4cf6e33e
slavapestov ASTMangler: Support closures whose types contain local archetypes
f91e4299
slavapestov SIL: Add TypeConverter::getSubstitutionMapWithCapturedEnvironments()
d8c0a39c
slavapestov SILGen: Use TypeConverter::getSubstitutionMapWithCapturedEnvironments()
d47d6a1a
slavapestov SILGen: Rewrite captured local archetypes into primary archetypes
4c36819e
slavapestov slavapestov force pushed to 4c36819e 1 year ago
slavapestov
hborla
hborla approved these changes on 2024-05-22
slavapestov slavapestov merged 8c230de0 into release/6.0 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone