Home
last modified time | relevance | path

Searched refs:storageWidth (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DTypeParser.cpp341 unsigned storageWidth = type.getStorageTypeIntegralWidth(); in printStorageType() local
344 out << "i" << storageWidth; in printStorageType()
346 out << "u" << storageWidth; in printStorageType()
351 QuantizedType::getDefaultMinimumForInteger(isSigned, storageWidth); in printStorageType()
353 QuantizedType::getDefaultMaximumForInteger(isSigned, storageWidth); in printStorageType()
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinAttributes.cpp678 size_t storageWidth = getDenseElementStorageWidth(bitWidth); in operator *() local
679 size_t offset = getDataIndex() * storageWidth * 2; in operator *()
681 readBits(getData(), offset + storageWidth, bitWidth)}; in operator *()
1113 if (storageWidth == 1) { in isValidRawBuffer()
1130 if (rawBufferWidth == storageWidth) { in isValidRawBuffer()
1136 return rawBufferWidth == storageWidth * numElements; in isValidRawBuffer()
1349 data.resize(llvm::divideCeil(storageWidth * numValues, CHAR_BIT)); in writeAPIntsToBuffer()
1352 ++it, offset += storageWidth) { in writeAPIntsToBuffer()
1353 assert((*it).getBitWidth() <= storageWidth); in writeAPIntsToBuffer()
1366 size_t storageWidth, in getRaw() argument
[all …]
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinAttributes.td313 static DenseElementsAttr getRaw(ShapedType type, size_t storageWidth,
322 static DenseElementsAttr getRaw(ShapedType type, size_t storageWidth,