mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SIL: Introduce lowered SILLayouts.
This gives us a concept we can eventually use to cache the lowered physical layout of fragile structs and classes, and more immediately, concretize the layout of closure boxes in a way that lets us represent the capture of generic environments and multiple captured values without compromising the "nominal" nature of box layouts. To start exercising the basic implementation, change the representation of SILBoxType to be in terms of a SILLayout, though avoid any immediate functionality change by preserving the single-boxed-type interface for now.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "swift/SIL/SILFunction.h"
|
||||
#include "swift/SIL/SILGlobalVariable.h"
|
||||
#include "swift/SIL/Notifications.h"
|
||||
#include "swift/SIL/SILLayout.h"
|
||||
#include "swift/SIL/SILType.h"
|
||||
#include "swift/SIL/SILVTable.h"
|
||||
#include "swift/SIL/SILWitnessTable.h"
|
||||
@@ -91,6 +92,7 @@ private:
|
||||
friend class SILDefaultWitnessTable;
|
||||
friend class SILFunction;
|
||||
friend class SILGlobalVariable;
|
||||
friend class SILLayout;
|
||||
friend class SILType;
|
||||
friend class SILVTable;
|
||||
friend class SILUndef;
|
||||
|
||||
Reference in New Issue
Block a user