Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/IR/
H A DTypes.cpp87 bool Type::isIntOrFloat() const { return isa<IntegerType, FloatType>(); } in isIntOrFloat() function in Type
89 bool Type::isIntOrIndexOrFloat() const { return isIntOrFloat() || isIndex(); } in isIntOrIndexOrFloat()
92 assert(isIntOrFloat() && "only integers and floats have a bitwidth"); in getIntOrFloatBitWidth()
H A DBuiltinTypeInterfaces.cpp43 if (elementType.isIntOrFloat()) in getSizeInBits()
H A DBuiltinTypes.cpp54 if (!elementType.isIntOrFloat()) in verify()
H A DBuiltinAttributes.cpp1046 assert(!type.getElementType().isIntOrFloat()); in get()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DUnifyAliasedResourcePass.cpp133 return a.isIntOrFloat() && b.isIntOrFloat() && in areSameBitwidthScalarType()
353 if (srcElemType.isIntOrFloat() && dstElemType.isa<VectorType>()) { in matchAndRewrite()
377 if (srcElemType.isIntOrFloat() && dstElemType.isIntOrFloat()) { in matchAndRewrite()
412 if (!srcElemType.isIntOrFloat() || !dstElemType.isIntOrFloat()) in matchAndRewrite()
485 if (!srcElemType.isIntOrFloat() || !dstElemType.isIntOrFloat()) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/
H A DConvertGPULaunchFuncToVulkanLaunchFunc.cpp61 (elementType.isIntOrFloat()); in isSupportedType()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DTypes.h158 bool isIntOrFloat() const;
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DSPIRVToLLVM.cpp55 assert((type.isIntOrFloat() || type.isa<VectorType>()) && in getBitWidth()
57 if (type.isIntOrFloat()) in getBitWidth()
61 assert(elementType.isIntOrFloat() && in getBitWidth()
393 if (!srcType.isa<VectorType>() && !srcType.isIntOrFloat()) in matchAndRewrite()
1258 if (init && !pointerTo.isIntOrFloat() && !pointerTo.isa<VectorType>()) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DConstantFold.cpp86 if (!elementType.isIntOrFloat()) in matchAndRewrite()
H A DDetensorize.cpp400 [&](Type resultType) { return resultType.isIntOrFloat(); })) in compute()
H A DElementwiseOpFusion.cpp1505 splatAttr.getType().getElementType().isIntOrFloat()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToSPIRV/
H A DVectorToSPIRV.cpp165 if (insertOp.getSourceType().isIntOrFloat() && in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/
H A DUtils.cpp606 if (elementType.isIntOrFloat()) { in getMemRefEltSizeInBytes()
648 if (!elementType.isIntOrFloat() && !elementType.isa<VectorType>()) in getMemRefSizeInBytes()
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToSPIRV/
H A DMemRefToSPIRV.cpp112 return elementType.isIntOrFloat(); in isAllocationSupported()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DGPUToLLVMConversion.cpp846 if (!valueType.isIntOrFloat() || valueType.getIntOrFloatBitWidth() != 32) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToSPIRV/
H A DArithmeticToSPIRV.cpp284 if (type.isIntOrFloat()) in hasSameBitwidth()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp663 return isIntOrFloat() || isa<VectorType>(); in isScalarOrVector()
H A DSPIRVOps.cpp673 if (type.isIntOrFloat()) in getBitWidth()
677 assert(vectorType.getElementType().isIntOrFloat()); in getBitWidth()
1848 if (!opElemType.isIntOrFloat()) in verifyConstantType()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/
H A DLoopFusion.cpp875 if (elementType.isIntOrFloat()) { in getMemRefEltSizeInBytes()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp1409 if (resultType.isIntOrFloat() || resultType.isa<VectorType>()) { in processConstantNull()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorTransforms.cpp1371 if (!elementType.isIntOrFloat()) in matchAndRewrite()