swift
[Sema/SIL] Implement type wrapper support in user-defined initializers
#60941
Merged

[Sema/SIL] Implement type wrapper support in user-defined initializers #60941

xedin
xedin xedin force pushed 3 years ago
xedin xedin force pushed 3 years ago
xedin xedin requested a review from kavon kavon 3 years ago
xedin xedin requested a review from atrick atrick 3 years ago
xedin xedin marked this pull request as ready for review 3 years ago
xedin
xedin xedin requested a review from hborla hborla 3 years ago
xedin
xedin xedin force pushed 3 years ago
xedin
xedin xedin force pushed 3 years ago
xedin
xedin
xedin
kavon
kavon approved these changes on 2022-09-28
xedin xedin force pushed 3 years ago
xedin
xedin xedin force pushed 3 years ago
xedin
xedin
xedin
atrick
xedin
xedin
xedin [AST] TypeWrappers: A request to synthesize `_storage` variable for a…
412915ea
xedin [TypeChecker] TypeWrappers: Inject `_storage` variable into initializ…
0692203a
xedin [SIL] Add originator to `assign_by_wrapper` instruction
df87a494
xedin [SILGen] Start emitting `assign_by_wrapper` for type wrappers
71eb2a73
xedin [SILOptimizer] Implement lowering of type wrapper assignment instruct…
fe1f1506
xedin [AST] Add a way to retrieve $Storage decl from a type wrapped type
1ee14f54
xedin [SILOptimizer] DI: Add a way to check whether `TheMemory` is `_storag…
b5126a97
xedin [AST/Sema] TypeWrappers: Rename wrapped type memberwise initializer e…
92fbb3eb
xedin [AST] TypeWrappers: Add request to retrieve type wrapper initializer
224708d9
xedin [SILGen] TypeWrappers: Make sure that memberwise init of $Storage is …
862c9d4f
xedin [SILGen] TypeWrappers: Route property wrapper through _storage for ma…
31cf06b7
xedin [SILGen] TypeWrappers: Make sure that default init of $Storage is alw…
8d39e525
xedin [DI] Process type wrapper `_storage` before any other initialization
d5844e53
xedin [SILOptimizer] TypeWrappers: Lower assign_by_wrapper into copy_addr f…
d1ad9e3e
xedin [SILOptimizer] TypeWrappers: Implement `self.$storage` initialization…
746457f3
xedin [SILOptimizer] TypeWrappers/NFC: Add tests for user-defined designed …
3fd5ed51
xedin [SILOptimizer] TypeWrappers/NFC: Add tests for convenience initialize…
dcecf527
xedin [DI] Element refs on `_storage` should be printed with `self.`
e9cb195f
xedin [DI] NFC: Add a TODO comment about possible refactoring
113c4fba
xedin [DI] Leave a comment about origins of `_storage` variable
a9251423
xedin [SILOpt] Add a flag to enable experimental type wrappers feature
1b4378ec
xedin xedin force pushed 3 years ago
xedin
xedin
xedin [SILOptimizer] TypeWrappers/NFC: Add test cases for assign_by_wrapper…
daa8d5be
xedin [SILGen] TypeWrappers: switch to `emitFunctionDefinition` for forced …
99cfbf7d
xedin xedin force pushed to 99cfbf7d 3 years ago
xedin
xedin
xedin
xedin xedin merged dbb5a48e into main 3 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone