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 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 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>