vector.load
← vector dialect
Load a vector footprint from 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, so leading view axes select a slice and trailing axes describe the loaded footprint.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
RefinableResultTypeRefs |
| Interfaces |
MemoryAccess |
| Memory effects |
read view |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
view |
view |
required |
Typed source view. |
| Operand |
indices |
index |
variadic |
Dynamic logical origin indices. |
| Result |
result |
vector |
required |
Loaded vector value. |
| 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(view, result)
Examples
%v = vector.load %view[%row, %col] : view<[%m]x[%n]xf32, %layout> -> vector<4x8xf32>