Lines Matching defs:newBitWidth
36 /// Returns N bottom and N top bits from `value`, where N = `newBitWidth`.
41 unsigned newBitWidth) {
42 APInt low = value.extractBits(newBitWidth, 0);
43 APInt high = value.extractBits(newBitWidth, newBitWidth);
186 unsigned newBitWidth = newType.getElementTypeBitWidth();
190 auto [low, high] = getHalves(intAttr.getValue(), newBitWidth);
198 getHalves(splatAttr.getSplatValue<APInt>(), newBitWidth);
217 auto [low, high] = getHalves(origVal, newBitWidth);
647 // `oldBitWidth` == `2 * newBitWidth`
648 unsigned newBitWidth = newTy.getElementTypeBitWidth();
654 // Assume that the shift amount is < 2 * newBitWidth. Calculate the low and
661 // RHS < newBitWidth, e.g.:
667 // RHS > newBitWidth, e.g.:
673 // Because shifts by values >= newBitWidth are undefined, we ignore the high
675 // RHS.low > newBitWidth.
680 createScalarOrSplatConstant(rewriter, loc, newOperandTy, newBitWidth);
736 // `oldBitWidth` == `2 * newBitWidth`
737 unsigned newBitWidth = newTy.getElementTypeBitWidth();
743 // Assume that the shift amount is < 2 * newBitWidth. Calculate the low and
748 // RHS < newBitWidth, e.g.:
754 // RHS > newBitWidth, e.g.:
762 // Because shifts by values >= newBitWidth are undefined, we ignore the high
764 // RHS.low > newBitWidth.
769 createScalarOrSplatConstant(rewriter, loc, newOperandTy, newBitWidth);
931 unsigned newBitWidth = newTy.getElementTypeBitWidth();
961 int64_t pow2Int = int64_t(1) << newBitWidth;