Home
last modified time | relevance | path

Searched refs:getIntOrFloatBitWidth (Results 1 – 25 of 31) sorted by relevance

12

/external/llvm-project/mlir/lib/IR/
DTypes.cpp93 unsigned Type::getIntOrFloatBitWidth() const { in getIntOrFloatBitWidth() function in Type
DBuiltinTypes.cpp201 return getElementType().getIntOrFloatBitWidth(); in getElementTypeBitWidth()
244 return elementType.getIntOrFloatBitWidth() * getNumElements(); in getSizeInBits()
248 return elementType.getIntOrFloatBitWidth() * getNumElements() * 2; in getSizeInBits()
DAttributeDetail.h215 return APInt(getType().getIntOrFloatBitWidth(), in getValue()
358 return eltType.getIntOrFloatBitWidth(); in getDenseElementBitWidth()
DBuilders.cpp171 type, APInt(type.getIntOrFloatBitWidth(), value, type.isSignedInteger())); in getIntegerAttr()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/utils/
Dconvert_op_folder.cc30 size_t bit_width = new_type.isBF16() ? 64 : new_type.getIntOrFloatBitWidth(); in ConvertElementsAttr()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dconstant_fold.cc58 tensor_type.getElementType().getIntOrFloatBitWidth(); in ShouldBeFolded()
Dtpu_variable_runtime_reformatting.cc196 if (data_type.getIntOrFloatBitWidth() == 64) continue; in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping()
Dtensor_list_ops_decomposition.cc766 elem_shape.shape_type().getIntOrFloatBitWidth()); in HandleTensorListElementShapeOp()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DLayoutUtils.cpp152 auto bitWidth = scalarType.getIntOrFloatBitWidth(); in getScalarTypeAlignment()
DSPIRVTypes.cpp595 if (getIntOrFloatBitWidth() == 8) { in getExtensions()
603 if (getIntOrFloatBitWidth() == 16) { in getExtensions()
617 unsigned bitwidth = getIntOrFloatBitWidth(); in getCapabilities()
699 auto bitWidth = getIntOrFloatBitWidth(); in getSizeInBytes()
DSPIRVLowering.cpp162 auto bitWidth = t.getIntOrFloatBitWidth(); in getTypeNumBytes()
DSPIRVOps.cpp332 auto operandTypeBitWidth = operandType.getIntOrFloatBitWidth(); in verifyCastOp()
333 auto resultTypeBitWidth = resultType.getIntOrFloatBitWidth(); in verifyCastOp()
564 return type.getIntOrFloatBitWidth(); in getBitWidth()
569 vectorType.getElementType().getIntOrFloatBitWidth(); in getBitWidth()
/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/
DConvertStandardToSPIRV.cpp844 int srcBits = memrefType.getElementType().getIntOrFloatBitWidth(); in matchAndRewrite()
852 int dstBits = dstType.getIntOrFloatBitWidth(); in matchAndRewrite()
964 int srcBits = memrefType.getElementType().getIntOrFloatBitWidth(); in matchAndRewrite()
972 int dstBits = dstType.getIntOrFloatBitWidth(); in matchAndRewrite()
/external/llvm-project/mlir/include/mlir/IR/
DTypes.h137 unsigned getIntOrFloatBitWidth() const;
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dlegalize_to_standard.cc130 bitwidth = int_or_float_ty.getIntOrFloatBitWidth(); in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/Quant/IR/
DQuantTypes.cpp77 return static_cast<ImplType *>(impl)->storageType.getIntOrFloatBitWidth(); in getStorageTypeIntegralWidth()
/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
DLLVMTypeSyntax.cpp435 loc, maybeIntegerType.getIntOrFloatBitWidth()); in parseTypeImpl()
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DPromotion.cpp75 auto width = llvm::divideCeil(elementType.getIntOrFloatBitWidth(), 8); in allocBuffer()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_patterns.td652 "getElementTypeOrSelf($0.getType()).getIntOrFloatBitWidth() == "
653 "getElementTypeOrSelf($1.getType()).getIntOrFloatBitWidth()">,
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_n_z.cc908 getType().cast<ShapedType>().getElementType().getIntOrFloatBitWidth(); in fold()
959 int width = getElementTypeOrSelf(op.getType(0)).getIntOrFloatBitWidth(); in matchAndRewrite()
2195 getType().cast<ShapedType>().getElementType().getIntOrFloatBitWidth(); in fold()
2824 getType().cast<ShapedType>().getElementType().getIntOrFloatBitWidth(); in fold()
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
DConvertSPIRVToLLVM.cpp59 return type.getIntOrFloatBitWidth(); in getBitWidth()
64 return elementType.getIntOrFloatBitWidth(); in getBitWidth()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dhlo_utils.cc207 int width = type.getIntOrFloatBitWidth(); in GetElementTypeBytes()
/external/llvm-project/mlir/lib/Parser/
DAttributeParser.cpp336 : type.getIntOrFloatBitWidth(); in buildAttributeAPInt()
/external/llvm-project/mlir/lib/Dialect/GPU/IR/
DGPUDialect.cpp188 if (!type.isSignlessIntOrFloat() || type.getIntOrFloatBitWidth() != 32) { in verifyShuffleOp()
/external/llvm-project/mlir/lib/Analysis/
DUtils.cpp394 sizeInBits = elementType.getIntOrFloatBitWidth(); in getMemRefEltSizeInBytes()

12