Skip to content

vector.store

← vector dialect

Store a vector footprint into a typed view at a full-rank logical origin. The index list addresses the origin in view coordinates; vector axes map onto the trailing view axes, matching vector.load.

Operation contract

Property Value
Semantic phase executable
Interfaces CachePolicy, 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 indices index variadic Dynamic logical origin 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 origin indices with INT64_MIN sentinels for dynamics.

Verification constraints

  • SameElementType(value, view)

Examples

vector.store %v, %view[%row, %col] : vector<4x8xf32>, view<[%m]x[%n]xf32, %layout>
vector.store<volatile> %packet, %ring[%tail] : vector<16xi8>, view<[%capacity]x16xi8>