| /llvm-project-15.0.7/mlir/lib/Conversion/MathToLLVM/ |
| H A D | MathToLLVM.cpp | 105 auto floatType = getElementTypeOrSelf(resultType).cast<FloatType>(); in matchAndRewrite() local 106 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite() 132 floatType), in matchAndRewrite() 158 auto floatType = getElementTypeOrSelf(resultType).cast<FloatType>(); in matchAndRewrite() local 159 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite() 186 floatType), in matchAndRewrite() 212 auto floatType = getElementTypeOrSelf(resultType).cast<FloatType>(); in matchAndRewrite() local 213 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite() 239 floatType), in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/ |
| H A D | ExpandPatterns.cpp | 26 auto floatType = op.getOperand().getType(); in convertTanhOp() local 28 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in convertTanhOp() 29 auto floatTwo = rewriter.getFloatAttr(floatType, 2.0); in convertTanhOp() 48 auto floatZero = rewriter.getFloatAttr(floatType, 0.0); in convertTanhOp()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MathToSPIRV/ |
| H A D | MathToSPIRV.cpp | 69 FloatType floatType; in matchAndRewrite() local 71 floatType = scalarType; in matchAndRewrite() 73 floatType = vectorType.getElementType().cast<FloatType>(); in matchAndRewrite() 79 int bitwidth = floatType.getWidth(); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | DecomposeLinalgOps.cpp | 137 auto floatType = elementType.cast<FloatType>(); in getZero() local 139 loc, APFloat::getZero(floatType.getFloatSemantics()), floatType); in getZero()
|
| H A D | SplitReduction.cpp | 34 if (auto floatType = resultType.dyn_cast<FloatType>()) { in getNeutralElement() local 35 const llvm::fltSemantics &semantic = floatType.getFloatSemantics(); in getNeutralElement()
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | AttributeParser.cpp | 406 if (auto floatType = type.dyn_cast<FloatType>()) { in parseDecOrHexAttr() local 409 floatType.getFloatSemantics(), in parseDecOrHexAttr() 410 floatType.getWidth()))) in parseDecOrHexAttr() 412 return FloatAttr::get(floatType, *result); in parseDecOrHexAttr() 877 } else if (auto floatType = type.dyn_cast<FloatType>()) { in parseDenseArrayAttr() local
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/ |
| H A D | WmmaOpsToNvvm.cpp | 282 auto floatType = getElementTypeOrSelf(lhs.getType()).cast<FloatType>(); in createMinMaxF() local 294 builder.getFloatAttr(floatType, in createMinMaxF() 295 APFloat::getQNaN(floatType.getFloatSemantics()))); in createMinMaxF()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/ |
| H A D | Deserializer.cpp | 1169 if (auto floatType = resultType.dyn_cast<FloatType>()) { in processConstant() local 1170 auto bitwidth = floatType.getWidth(); in processConstant() 1176 if (floatType.isF64()) { in processConstant() 1185 } else if (floatType.isF32()) { in processConstant() 1187 } else if (floatType.isF16()) { in processConstant() 1192 auto attr = opBuilder.getFloatAttr(floatType, value); in processConstant() 1198 constantMap.try_emplace(resultID, attr, floatType); in processConstant()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | GPUOpsLowering.cpp | 260 if (auto floatType = arg.getType().dyn_cast<FloatType>()) { in matchAndRewrite() local 261 if (!floatType.isF64()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | SPIRVConversion.cpp | 286 if (auto floatType = type.dyn_cast<FloatType>()) { local 508 addConversion([this](FloatType floatType) -> Optional<Type> { in SPIRVTypeConverter() argument 509 if (auto scalarType = floatType.dyn_cast<spirv::ScalarType>()) in SPIRVTypeConverter()
|
| /llvm-project-15.0.7/clang/utils/ABITest/ |
| H A D | ABITestGen.py | 522 floatType = BuiltinType('float',4) 524 sbtg = FixedTypeGenerator([charType, intType, floatType, doubleType]) 554 'f32' : floatType,
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/ |
| H A D | SPIRVToLLVM.cpp | 101 auto floatType = vecType.getElementType().cast<FloatType>(); in createFPConstant() local 105 rewriter.getFloatAttr(floatType, value))); in createFPConstant() 107 auto floatType = srcType.cast<FloatType>(); in createFPConstant() local 109 loc, dstType, rewriter.getFloatAttr(floatType, value)); in createFPConstant()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/ |
| H A D | ConvertVectorToLLVM.cpp | 401 auto floatType = getElementTypeOrSelf(lhs.getType()).cast<FloatType>(); in createMinMaxF() local 413 builder.getFloatAttr(floatType, in createMinMaxF() 414 APFloat::getQNaN(floatType.getFloatSemantics()))); in createMinMaxF()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.cpp | 491 if (auto floatType = type.dyn_cast<FloatType>()) { in classof() local 492 return isValid(floatType); in classof()
|
| H A D | SPIRVOps.cpp | 1910 if (auto floatType = type.dyn_cast<FloatType>()) { in getZero() local 1912 loc, type, builder.getFloatAttr(floatType, 0.0)); in getZero() 1943 if (auto floatType = type.dyn_cast<FloatType>()) { in getOne() local 1945 loc, type, builder.getFloatAttr(floatType, 1.0)); in getOne()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/ |
| H A D | Serializer.cpp | 402 if (auto floatType = type.dyn_cast<FloatType>()) { in prepareBasicType() local 404 operands.push_back(floatType.getWidth()); in prepareBasicType()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | IntrinsicCall.cpp | 3027 mlir::FloatType floatType = floatVal.getType().dyn_cast<mlir::FloatType>(); in genIeeeIsFinite() local 3028 int floatBits = floatType.getWidth(); in genIeeeIsFinite() 3030 floatType.isa<mlir::Float80Type>() ? 128 : floatBits); in genIeeeIsFinite() 3034 if (floatType.isa<mlir::Float32Type>()) in genIeeeIsFinite() 3036 else if (floatType.isa<mlir::Float64Type>()) in genIeeeIsFinite()
|