@@ -1193,7 +1193,7 @@ static Value bitcastSubByteVectorToI8(PatternRewriter &rewriter, Location loc,
1193
1193
Value subByteVec) {
1194
1194
auto srcVecType = cast<VectorType>(subByteVec.getType ());
1195
1195
int64_t srcBitwidth = srcVecType.getElementType ().getIntOrFloatBitWidth ();
1196
- assert (8 % srcBitwidth == 0 && " Invalid source bitwidth " );
1196
+ assert (8 % srcBitwidth == 0 && " Unsupported sub-byte type (not a divisor of i8) " );
1197
1197
int64_t bitwidthFactor = 8 / srcBitwidth;
1198
1198
SmallVector<int64_t > vecShape (srcVecType.getShape ());
1199
1199
// Adjust last dimension of the vector, so the total size remains the same.
@@ -1207,7 +1207,7 @@ static Value bitcastSubByteVectorToI8(PatternRewriter &rewriter, Location loc,
1207
1207
// / The `bitIdx` starts at 0 from the LSB and moves to the left.
1208
1208
// /
1209
1209
// / Example for a single element:
1210
- // / extract numBits=2 starting at bitIdx=2
1210
+ // / Extract numBits=2 starting at bitIdx=2
1211
1211
// / src = [0 | 1 | 0 | 1 | 1 | 1 | 1 | 0]
1212
1212
// / indices = [7 | 6 | 5 | 4 | 3 | 2 | 1 | 0]
1213
1213
// / target = [. . . . ^ ^ . .]
@@ -1244,7 +1244,7 @@ static Value extractNBitsFromVectorSigned(PatternRewriter &rewriter,
1244
1244
// / The `bitIdx` starts at 0 from the LSB and moves to the left.
1245
1245
// /
1246
1246
// / Example for a single element:
1247
- // / extract numBits=2 starting at bitIdx=2
1247
+ // / Extract numBits=2 starting at bitIdx=2
1248
1248
// / src = [0 | 1 | 0 | 1 | 1 | 0 | 1 | 0]
1249
1249
// / indices = [7 | 6 | 5 | 4 | 3 | 2 | 1 | 0]
1250
1250
// / target = [. . . . ^ ^ . .]
0 commit comments