Skip to content

view.store

← view dialect

Store one scalar 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.

Operation contract

Property Value
Semantic phase executable
Interfaces CachePolicy, MemoryAccess
Memory effects write view

Signature

Kind Name Type Cardinality Description
Operand value scalar required Scalar element to store.
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>