Skip to content

Commit 97622bc

Browse files
committed
generalize "input program" to "input to compiler"
Also, fix the dangling "therefore".
1 parent fbf35bf commit 97622bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

reference/src/representation/structs-and-tuples.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ Structs can have various `#[repr]` flags that influence their layout:
8787
The default layout of structs is not specified. Effectively, the
8888
compiler provdes a deterministic function per struct definition that
8989
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:
9192

9293
- the types of the struct's fields
9394
- the layout of other structs (including structs not included within this struct)
9495
- compiler settings
96+
- the results of profile information which are given to the compiler
97+
for the purpose of PGO etc
9598

9699
As of this writing, we have not reached a full consensus on what
97100
limitations should exist on possible field struct layouts. Therefore,

0 commit comments

Comments
 (0)