view.store
← view dialect
Store one element into a typed view at a full-rank logical index. The index list is expressed in view coordinates and must name one position per view axis. Reference elements copy the complete handle state without consuming the source and release any replaced owner. Stored pointers preserve borrowing or its necessary protection.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Interfaces |
CachePolicy, MemoryAccess |
| Memory effects |
write view |
| Ownership effects |
copy value (by_value) |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
value |
any |
required |
Element to copy into storage. |
| Operand |
view |
view |
required |
Typed destination view. |
| Operand |
indices |
index |
variadic |
Dynamic logical element indices. |
| Attribute |
memory_flags |
flags MemoryAccessFlags |
optional |
— |
| 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 element indices with INT64_MIN sentinels for dynamics. |
Verification constraints
SameElementType(value, view)
Examples
view.store %x, %view[%row, %col] : f32, view<[%M]x[%N]xf32, %layout>
view.store<volatile> %flag, %mailbox[%index] : i32, view<16xi32>