File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
reference/src/representation Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,14 @@ Structs can have various `#[repr]` flags that influence their layout:
87
87
The default layout of structs is not specified. Effectively, the
88
88
compiler provdes a deterministic function per struct definition that
89
89
defines its layout. This function may as principle take as input the
90
- entire input program. Therefore:
90
+ entire input to the compiler. Therefore, any of the the following might
91
+ influence layout:
91
92
92
93
- the types of the struct's fields
93
94
- the layout of other structs (including structs not included within this struct)
94
95
- compiler settings
96
+ - the results of profile information which are given to the compiler
97
+ for the purpose of PGO etc
95
98
96
99
As of this writing, we have not reached a full consensus on what
97
100
limitations should exist on possible field struct layouts. Therefore,
You can’t perform that action at this time.
0 commit comments