vector.store.mask
← vector dialect
Masked vector store into a typed view. True mask lanes store the corresponding value lane, and false mask lanes do not access memory and leave the destination unchanged.
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 |
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)
SameElementType(value, view)
SameShape(mask, value)
Examples
vector.store.mask %v, %view[%row, %col], %mask : vector<4x8xf32>, view<[%m]x[%n]xf32, %layout>, vector<4x8xi1>