vector.scatter.mask
← vector dialect
Masked non-atomic scatter. True mask lanes write the full-rank origin with the last coordinate adjusted by offsets[lane], false mask lanes do not access memory, and active lane addresses must be distinct.
Operation contract
| Property |
Value |
| Semantic phase |
— |
| Interfaces |
MemoryAccess |
| Memory effects |
write view |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
value |
vector |
required |
Vector value to store. |
| Operand |
view |
view |
required |
Typed destination view. |
| Operand |
offsets |
vector |
required |
Per-lane signed element offsets from the logical origin. |
| Operand |
mask |
vector |
required |
i1 vector mask selecting stored lanes. |
| Operand |
indices |
index |
variadic |
Dynamic logical origin indices. |
| Attribute |
cache_scope |
enum CacheScope |
optional |
Optional cache/coherency scope required by target lowering. |
| Attribute |
cache_temporal |
enum CacheTemporal |
optional |
Optional temporal cache policy required by target lowering. |
| Attribute |
static_indices |
i64_array |
required |
Static logical origin indices with INT64_MIN sentinels for dynamics. |
Verification constraints
HasI1Element(mask)
HasIndexOrNonI1IntegerElement(offsets)
SameElementType(value, view)
SameShape(offsets, mask, value)
Examples
vector.scatter.mask %v, %view[%row, %col][%offsets], %mask : vector<4xf32>, view<[%m]x[%n]xf32, %layout>, vector<4xindex>, vector<4xi1>