You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/docs/LangRef.rst
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24419,7 +24419,10 @@ Semantics:
24419
24419
""""""""""
24420
24420
24421
24421
The '``llvm.masked.load``' intrinsic is designed for conditional reading of selected vector elements in a single IR operation. It is useful for targets that support vector masked loads and allows vectorizing predicated basic blocks on these targets. Other targets may support this intrinsic differently, for example by lowering it into a sequence of branches that guard scalar load operations.
24422
-
The result of this operation is equivalent to a regular vector load instruction followed by a 'select' between the loaded and the passthru values, predicated on the same mask. However, using this intrinsic prevents exceptions on memory access to masked-off lanes.
24422
+
The result of this operation is equivalent to a regular vector load instruction followed by a 'select' between the loaded and the passthru values, predicated on the same mask, except that the masked-off lanes are not accessed.
24423
+
Only the masked-on lanes of the vector need to be inbounds of an allocation (but all these lanes need to be inbounds of the same allocation).
24424
+
In particular, using this intrinsic prevents exceptions on memory accesses to masked-off lanes.
24425
+
Masked-off lanes are also not considered accessed for the purpose of data races or `noalias` constraints.
24423
24426
24424
24427
24425
24428
::
@@ -24461,7 +24464,10 @@ Semantics:
24461
24464
""""""""""
24462
24465
24463
24466
The '``llvm.masked.store``' intrinsics is designed for conditional writing of selected vector elements in a single IR operation. It is useful for targets that support vector masked store and allows vectorizing predicated basic blocks on these targets. Other targets may support this intrinsic differently, for example by lowering it into a sequence of branches that guard scalar store operations.
24464
-
The result of this operation is equivalent to a load-modify-store sequence. However, using this intrinsic prevents exceptions and data races on memory access to masked-off lanes.
24467
+
The result of this operation is equivalent to a load-modify-store sequence, except that the masked-off lanes are not accessed.
24468
+
Only the masked-on lanes of the vector need to be inbounds of an allocation (but all these lanes need to be inbounds of the same allocation).
24469
+
In particular, using this intrinsic prevents exceptions on memory accesses to masked-off lanes.
24470
+
Masked-off lanes are also not considered accessed for the purpose of data races or `noalias` constraints.
0 commit comments