Home
last modified time | relevance | path

Searched refs:isIntOrFloat (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/mlir/lib/IR/
DTypes.cpp89 bool Type::isIntOrFloat() const { return isa<IntegerType, FloatType>(); } in isIntOrFloat() function in Type
91 bool Type::isIntOrIndexOrFloat() const { return isIntOrFloat() || isIndex(); } in isIntOrIndexOrFloat()
94 assert(isIntOrFloat() && "only integers and floats have a bitwidth"); in getIntOrFloatBitWidth()
DBuiltinTypes.cpp38 if (!elementType.isIntOrFloat()) in verifyConstructionInvariants()
243 if (elementType.isIntOrFloat()) in getSizeInBits()
DBuiltinAttributes.cpp835 assert(!type.getElementType().isIntOrFloat()); in get()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dconstant_fold.cc52 if (!tensor_type.getElementType().isIntOrFloat()) continue; in ShouldBeFolded()
101 element_ty.isIntOrFloat(); in ConstantFoldFallbackHook()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dprepare_for_export.cc52 if (!attr.getType().getElementType().isIntOrFloat()) return; in runOnFunction()
Dlegalize_tf_patterns.td650 "getElementTypeOrSelf($0.getType()).isIntOrFloat() && "
651 "getElementTypeOrSelf($1.getType()).isIntOrFloat() && "
Dlegalize_tf.cc5400 if (!input_element_type.isIntOrFloat()) return failure(); in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/GPUToVulkan/
DConvertGPULaunchFuncToVulkanLaunchFunc.cpp61 (elementType.isIntOrFloat()); in isSupportedType()
/external/llvm-project/mlir/include/mlir/IR/
DTypes.h149 bool isIntOrFloat() const;
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dtype_to_shape.cc105 if (type.isIntOrFloat()) { in TypeToShape()
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
DConvertSPIRVToLLVM.cpp56 assert((type.isIntOrFloat() || type.isa<VectorType>()) && in getBitWidth()
58 if (type.isIntOrFloat()) in getBitWidth()
62 assert(elementType.isIntOrFloat() && in getBitWidth()
396 if (!srcType.isa<VectorType>() && !srcType.isIntOrFloat()) in matchAndRewrite()
1253 if (init && !pointerTo.isIntOrFloat() && !pointerTo.isa<VectorType>()) in matchAndRewrite()
/external/llvm-project/mlir/lib/Analysis/
DUtils.cpp393 if (elementType.isIntOrFloat()) { in getMemRefEltSizeInBytes()
437 if (!elementType.isIntOrFloat() && !elementType.isa<VectorType>()) in getMemRefSizeInBytes()
/external/llvm-project/mlir/lib/Parser/
DAttributeParser.cpp523 (eltType.isIntOrFloat() || eltType.isa<ComplexType>())) in getAttr()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVOps.cpp563 if (type.isIntOrFloat()) in getBitWidth()
567 assert(vectorType.getElementType().isIntOrFloat()); in getBitWidth()
1524 if (!opElemType.isIntOrFloat()) in verify()
DSPIRVTypes.cpp727 return isIntOrFloat() || isa<VectorType>(); in isScalarOrVector()
/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/
DConvertStandardToSPIRV.cpp231 return elementType.isIntOrFloat(); in CHECK_UNSIGNED_OP()
/external/llvm-project/mlir/lib/Transforms/
DLoopFusion.cpp760 if (elementType.isIntOrFloat()) { in getMemRefEltSizeInBytes()
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/
DDeserializer.cpp1736 if (resultType.isIntOrFloat() || resultType.isa<VectorType>()) { in processConstantNull()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_a_m.cc2276 if (!type.getElementType().isIntOrFloat()) return {}; in fold()
Dtf_ops_n_z.cc2369 if (element_type.isIntOrFloat()) in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/Vector/
DVectorTransforms.cpp1640 if (!elementType.isIntOrFloat()) in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/
DStandardToLLVM.cpp2087 if (elementType.isIntOrFloat()) { in getMemRefEltSizeInBytes()