Lines Matching defs:bitWidth
539 size_t bitWidth = value.getBitWidth();
542 if (bitWidth == 1)
549 // Copying the first `llvm::divideCeil(bitWidth, CHAR_BIT)` bytes doesn't
553 copyAPIntToArrayForBEmachine(value, llvm::divideCeil(bitWidth, CHAR_BIT),
557 llvm::divideCeil(bitWidth, CHAR_BIT),
562 /// Reads the next `bitWidth` bits from the bit position `bitPos` in array
564 static APInt readBits(const char *rawData, size_t bitPos, size_t bitWidth) {
566 if (bitWidth == 1)
571 APInt result(bitWidth, 0);
574 // Copying the first `llvm::divideCeil(bitWidth, CHAR_BIT)` bytes doesn't
579 llvm::divideCeil(bitWidth, CHAR_BIT), result);
582 llvm::divideCeil(bitWidth, CHAR_BIT),
667 bitWidth(getDenseElementBitWidth(attr.getElementType())) {}
671 getDataIndex() * getDenseElementStorageWidth(bitWidth),
672 bitWidth);
685 bitWidth = getDenseElementBitWidth(complexType.getElementType());
690 size_t storageWidth = getDenseElementStorageWidth(bitWidth);
692 return {readBits(getData(), offset, bitWidth),
693 readBits(getData(), offset + storageWidth, bitWidth)};
951 size_t bitWidth = getDenseElementBitWidth(eltType);
952 size_t storageBitWidth = getDenseElementStorageWidth(bitWidth);
970 assert(intVal.getBitWidth() == bitWidth &&
1459 size_t bitWidth = getDenseElementBitWidth(newElementType);
1460 size_t storageBitWidth = getDenseElementStorageWidth(bitWidth);
1470 assert(newInt.getBitWidth() == bitWidth);
1476 if (bitWidth == 1) {