vector.splati
← vector dialect
Materialize an integer, predicate, or address vector whose every lane has the same integer literal. The result element type supplies the value domain; i1 literals use 0 or 1.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
Pure, ConstantLike, RefinableResultTypeRefs |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Result |
result |
vector |
required |
— |
| Attribute |
value |
i64 |
required |
The integer splat value. |
Verification constraints
AttrMatchesElementType(value, result)
Examples
%v = vector.splati 0 : vector<4xi32>