vector.bitunpacks
← vector dialect
Unpack signed fixed-width fields from a contiguous little-endian integer bitstream into sign-extended integer result lanes. Result lanes are produced in logical lane order.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
Pure |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
source |
vector |
required |
Integer storage lanes containing the packed bitstream. |
| Result |
result |
vector |
required |
Integer lanes receiving sign-extended unpacked fields. |
| Attribute |
width |
i64 |
required |
Number of packed bits read for each result lane. |
Verification constraints
HasIntegerElement(source)
HasIntegerElement(result)
PositiveBitWidthAttr(width)
ElementWidthAtLeastAttr(result, width)
UnpackedPayloadBitCountMatchesStorage(result, width, source, result)
Examples
%deltas = vector.bitunpacks<3> %packed : vector<12xi8> -> vector<32xi8>