vector.broadcast
← vector dialect
Broadcast a vector value to a larger-rank or same-rank vector result. Source axes align with the trailing result axes, and each static source extent must either be 1 or match the corresponding result extent.
Operation contract
| Property |
Value |
| Semantic phase |
— |
| Traits |
Pure |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
source |
vector |
required |
— |
| Result |
result |
vector |
required |
— |
Verification constraints
SameElementType(source, result)
Examples
%wide = vector.broadcast %v : vector<4xf32> -> vector<16x4xf32>