vector.duplicate
← vector dialect
Create another local owner of a vector and its dependent shape values. Each result preserves the logical lanes and facts while receiving a distinct SSA ownership identity.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Category |
refinement |
| Traits |
UniqueIdentity, StorageRelation |
| Interfaces |
ValueDuplication |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
sources |
any |
variadic |
— |
| Result |
duplicates |
any |
variadic |
— |
Verification constraints
ClosedValueTuple(sources)
ClosedValueTuple(duplicates)
VariadicValuesMatch(duplicates, sources)
Examples
%copy = vector.duplicate %source : vector<4xf32>
%copy_n, %copy = vector.duplicate %n, %source : index, vector<[%copy_n]xf32>