Home
last modified time | relevance | path

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

/external/llvm-project/mlir/include/mlir/Dialect/Quant/
DUniformSupport.h74 uint32_t storageBitWidth, bool isSigned) in UniformQuantizedValueConverter() argument
78 storageBitWidth(storageBitWidth), isSigned(isSigned), in UniformQuantizedValueConverter()
83 uint32_t storageBitWidth, bool isSigned) in UniformQuantizedValueConverter() argument
88 storageBitWidth(storageBitWidth), isSigned(isSigned), in UniformQuantizedValueConverter()
97 storageBitWidth == 8 && in quantizeFloatToInt()
112 llvm::APSInt result(storageBitWidth, !isSigned); in quantizeFloatToInt()
130 assert(storageBitWidth == 8); in quantizeF32ToInt8()
148 return APInt(storageBitWidth, signlessResult); in quantizeF32ToInt8()
164 const uint32_t storageBitWidth; variable
181 storageBitWidth(uniformType.getStorageTypeIntegralWidth()), in UniformQuantizedPerAxisValueConverter()
[all …]
/external/llvm-project/mlir/lib/IR/
DBuiltinAttributes.cpp797 size_t storageBitWidth = getDenseElementStorageWidth(bitWidth); in get() local
800 SmallVector<char, 8> data(llvm::divideCeil(storageBitWidth, CHAR_BIT) * in get()
815 writeBits(data.data(), i * storageBitWidth, intVal); in get()
846 size_t storageBitWidth = getDenseElementStorageWidth(type.getElementType()); in get() local
847 return DenseIntOrFPElementsAttr::getRaw(type, storageBitWidth, values, in get()
855 size_t storageBitWidth = getDenseElementStorageWidth(complex) / 2; in get() local
858 return DenseIntOrFPElementsAttr::getRaw(type, storageBitWidth, intVals, in get()
869 size_t storageBitWidth = getDenseElementStorageWidth(type.getElementType()); in get() local
870 return DenseIntOrFPElementsAttr::getRaw(type, storageBitWidth, values, in get()
881 size_t storageBitWidth = getDenseElementStorageWidth(complex) / 2; in get() local
[all …]
/external/llvm-project/mlir/lib/Dialect/Quant/Utils/
DUniformSupport.cpp82 Type newElementType = IntegerType::get(storageBitWidth, attr.getContext()); in convert()