@@ -7019,7 +7019,12 @@ alignment for the target. It is the responsibility of the code emitter
7019
7019
to ensure that the alignment information is correct. Overestimating the
7020
7020
alignment results in undefined behavior. Underestimating the alignment
7021
7021
may produce less efficient code. An alignment of 1 is always safe. The
7022
- maximum possible alignment is ``1 << 29 ``.
7022
+ maximum possible alignment is ``1 << 29 ``. An alignment value higher
7023
+ than the size of the loaded type implies memory up to the alignment
7024
+ value bytes can be safely loaded without trapping in the default
7025
+ address space. Access of the high bytes can interfere with debugging
7026
+ tools, so should not be accessed if the function has the
7027
+ ``sanitize_thread `` or ``sanitize_address `` attributes.
7023
7028
7024
7029
The optional ``!nontemporal `` metadata must reference a single
7025
7030
metadata name ``<index> `` corresponding to a metadata node with one
@@ -7144,7 +7149,14 @@ alignment for the target. It is the responsibility of the code emitter
7144
7149
to ensure that the alignment information is correct. Overestimating the
7145
7150
alignment results in undefined behavior. Underestimating the
7146
7151
alignment may produce less efficient code. An alignment of 1 is always
7147
- safe. The maximum possible alignment is ``1 << 29 ``.
7152
+ safe. The maximum possible alignment is ``1 << 29 ``. An alignment
7153
+ value higher than the size of the stored type implies memory up to the
7154
+ alignment value bytes can be stored to without trapping in the default
7155
+ address space. Storing to the higher bytes however may result in data
7156
+ races if another thread can access the same address. Introducing a
7157
+ data race is not allowed. Storing to the extra bytes is not allowed
7158
+ even in situations where a data race is known to not exist if the
7159
+ function has the ``sanitize_address `` attribute.
7148
7160
7149
7161
The optional ``!nontemporal `` metadata must reference a single metadata
7150
7162
name ``<index> `` corresponding to a metadata node with one ``i32 `` entry of
0 commit comments