/llvm-project/mlir/lib/Conversion/MathToLLVM/ |
H A D | MathToLLVM.cpp | 123 auto floatType = cast<FloatType>(getElementTypeOrSelf(resultType)); in matchAndRewrite() local 124 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite() 153 mlir::VectorType::get({numElements.getKnownMinValue()}, floatType, in matchAndRewrite() 181 auto floatType = cast<FloatType>(getElementTypeOrSelf(resultType)); in matchAndRewrite() local 182 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite() 212 mlir::VectorType::get({numElements.getKnownMinValue()}, floatType, in matchAndRewrite() 241 auto floatType = cast<FloatType>(getElementTypeOrSelf(resultType)); in matchAndRewrite() local 242 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite() 271 mlir::VectorType::get({numElements.getKnownMinValue()}, floatType, in matchAndRewrite()
|
/llvm-project/mlir/lib/AsmParser/ |
H A D | AttributeParser.cpp | 424 if (auto floatType = dyn_cast<FloatType>(type)) { in parseDecOrHexAttr() local 427 floatType.getFloatSemantics()))) in parseDecOrHexAttr() 429 return FloatAttr::get(floatType, *result); in parseDecOrHexAttr() 911 auto floatType = cast<FloatType>(type); parseFloatElement() local
|
/llvm-project/mlir/lib/Dialect/Linalg/Transforms/ |
H A D | DecomposeLinalgOps.cpp | 140 auto floatType = cast<FloatType>(elementType); in getZero() local 142 loc, APFloat::getZero(floatType.getFloatSemantics()), floatType); in getZero()
|
/llvm-project/mlir/lib/Conversion/MathToSPIRV/ |
H A D | MathToSPIRV.cpp | 135 FloatType floatType; in matchAndRewrite() local 137 floatType = scalarType; in matchAndRewrite() 139 floatType = cast<FloatType>(vectorType.getElementType()); in matchAndRewrite() 145 int bitwidth = floatType.getWidth(); in matchAndRewrite() 325 if (auto floatType = dyn_cast<FloatType>(type)) { in matchAndRewrite() 327 loc, type, rewriter.getFloatAttr(floatType, value)); in matchAndRewrite()
|
/llvm-project/mlir/lib/Conversion/GPUToNVVM/ |
H A D | WmmaOpsToNvvm.cpp | 303 auto floatType = cast<FloatType>(getElementTypeOrSelf(lhs.getType())); in createMinMaxF() local 315 builder.getFloatAttr(floatType, in createMinMaxF() 316 APFloat::getQNaN(floatType.getFloatSemantics()))); in createMinMaxF()
|
/llvm-project/mlir/lib/Dialect/Math/Transforms/ |
H A D | ExpandPatterns.cpp | 112 auto floatType = op.getOperand().getType(); in convertTanhOp() local 114 Value zero = createFloatConst(loc, floatType, 0.0, rewriter); in convertTanhOp() 115 Value one = createFloatConst(loc, floatType, 1.0, rewriter); in convertTanhOp() 116 Value negTwo = createFloatConst(loc, floatType, -2.0, rewriter); in convertTanhOp() 122 rewriter.create<arith::UIToFPOp>(loc, floatType, isNegative); in convertTanhOp()
|
/llvm-project/mlir/lib/Target/SPIRV/Deserialization/ |
H A D | Deserializer.cpp | 1347 if (auto floatType = dyn_cast<FloatType>(resultType)) { in processConstant() 1348 auto bitwidth = floatType.getWidth(); in processConstant() 1354 if (floatType.isF64()) { in processConstant() 1363 } else if (floatType.isF32()) { in processConstant() 1365 } else if (floatType.isF16()) { in processConstant() 1370 auto attr = opBuilder.getFloatAttr(floatType, value); 1376 constantMap.try_emplace(resultID, attr, floatType); in processConstantBool() 1332 if (auto floatType = dyn_cast<FloatType>(resultType)) { processConstant() local
|
/llvm-project/clang/utils/ABITest/ |
H A D | ABITestGen.py | 861 floatType = BuiltinType("float", 4) 863 sbtg = FixedTypeGenerator([charType, intType, floatType, doubleType]) 898 "f32": floatType,
|
/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/ |
H A D | SPIRVConversion.cpp | 283 if (auto floatType = dyn_cast<FloatType>(type)) { in convertSubByteIntegerType() 1441 addConversion([this](FloatType floatType) -> std::optional<Type> { 1442 if (auto scalarType = dyn_cast<spirv::ScalarType>(floatType)) 250 if (auto floatType = dyn_cast<FloatType>(type)) { global() local 715 __anonb08dc71c0402(FloatType floatType) SPIRVTypeConverter() argument
|
/llvm-project/mlir/lib/Dialect/EmitC/IR/ |
H A D | EmitC.cpp | 117 if (auto floatType = llvm::dyn_cast<FloatType>(type)) { in isSupportedFloatType() local 118 switch (floatType.getWidth()) { in isSupportedFloatType()
|
/llvm-project/mlir/lib/Dialect/SPIRV/IR/ |
H A D | SPIRVOps.cpp | 675 if (auto floatType = llvm::dyn_cast<FloatType>(type)) { in getZero() local 677 loc, type, builder.getFloatAttr(floatType, 0.0)); in getZero() 708 if (auto floatType = llvm::dyn_cast<FloatType>(type)) { in getOne() local 710 loc, type, builder.getFloatAttr(floatType, 1.0)); in getOne()
|
H A D | SPIRVTypes.cpp | 498 if (auto floatType = llvm::dyn_cast<FloatType>(type)) { in getExtensions() 499 return isValid(floatType); in getExtensions() 573 if (auto floatType = llvm::dyn_cast<FloatType>(type)) { classof() local
|
/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/ |
H A D | SPIRVToLLVM.cpp | 114 auto floatType = cast<FloatType>(vecType.getElementType()); 118 rewriter.getFloatAttr(floatType, value))); in createFPConstant() local 120 auto floatType = cast<FloatType>(srcType); in createFPConstant() 122 loc, dstType, rewriter.getFloatAttr(floatType, value)); in createFPConstant() 124 auto floatType = cast<FloatType>(srcType); createFPConstant() local
|
/llvm-project/mlir/lib/Conversion/GPUCommon/ |
H A D | GPUOpsLowering.cpp | 457 if (auto floatType = dyn_cast<FloatType>(arg.getType())) { in matchAndRewrite() 458 if (!floatType.isF64()) in matchAndRewrite() 361 if (auto floatType = dyn_cast<FloatType>(arg.getType())) { matchAndRewrite() local
|
/llvm-project/mlir/lib/Conversion/VectorToLLVM/ |
H A D | ConvertVectorToLLVM.cpp | 495 auto floatType = cast<FloatType>(llvmType); in createReductionNeutralValue() 499 llvmType, llvm::APFloat::getQNaN(floatType.getFloatSemantics(), in createReductionNeutralValue() 507 auto floatType = cast<FloatType>(llvmType); in createReductionNeutralValue() 511 llvmType, llvm::APFloat::getQNaN(floatType.getFloatSemantics(), in createReductionNeutralValue() 493 auto floatType = cast<FloatType>(llvmType); createReductionNeutralValue() local 505 auto floatType = cast<FloatType>(llvmType); createReductionNeutralValue() local
|
/llvm-project/mlir/lib/Conversion/AMDGPUToROCDL/ |
H A D | AMDGPUToROCDL.cpp | 140 if (auto floatType = dyn_cast<FloatType>(wantedDataType)) in matchAndRewrite() 142 rewriter.getIntegerType(floatType.getWidth())); in matchAndRewrite() 107 if (auto floatType = dyn_cast<FloatType>(wantedDataType)) matchAndRewrite() local
|
/llvm-project/mlir/lib/Target/SPIRV/Serialization/ |
H A D | Serializer.cpp | 523 if (auto floatType = dyn_cast<FloatType>(type)) { in prepareBasicType() 525 operands.push_back(floatType.getWidth()); in prepareBasicType() 460 if (auto floatType = dyn_cast<FloatType>(type)) { prepareBasicType() local
|
/llvm-project/mlir/lib/Target/LLVMIR/ |
H A D | ModuleImport.cpp | 817 FloatType floatType = in getConstantAsAttr() 821 if (!floatType) { in getConstantAsAttr() 826 return builder.getFloatAttr(floatType, constFloat->getValueAPF()); in getConstantAsAttr() 737 FloatType floatType = getScalarConstantAsAttr() local
|
/llvm-project/mlir/lib/Dialect/Tosa/IR/ |
H A D | TosaCanonicalizations.cpp | 1195 if (auto floatType = llvm::dyn_cast<FloatType>(inputAttr.getElementType())) { 1081 if (auto floatType = llvm::dyn_cast<FloatType>(inputAttr.getElementType())) { fold() local
|