| /llvm-project-15.0.7/libc/spec/ |
| H A D | stdc.td | 351 … FunctionSpec<"copysignf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>, 363 FunctionSpec<"fdimf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>, 371 FunctionSpec<"fminf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>, 375 FunctionSpec<"fmaxf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>, 379 …FunctionSpec<"fmaf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>, ArgSpec<Float… 383 FunctionSpec<"fmodf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>, 390 FunctionSpec<"hypotf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>, 406 FunctionSpec<"logf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>, 426 … FunctionSpec<"remainderf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>, 430 …FunctionSpec<"remquof", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>, ArgSpec<In… [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | BuiltinTypes.h | 29 class FloatType; variable 39 class FloatType : public Type { 45 static FloatType getF16(MLIRContext *ctx); 46 static FloatType getF32(MLIRContext *ctx); 47 static FloatType getF64(MLIRContext *ctx); 384 inline FloatType FloatType::getBF16(MLIRContext *ctx) { in getBF16() 388 inline FloatType FloatType::getF16(MLIRContext *ctx) { in getF16() 392 inline FloatType FloatType::getF32(MLIRContext *ctx) { in getF32() 396 inline FloatType FloatType::getF64(MLIRContext *ctx) { in getF64() 400 inline FloatType FloatType::getF80(MLIRContext *ctx) { in getF80() [all …]
|
| H A D | Builders.h | 24 class FloatType; variable 62 FloatType getBF16Type(); 63 FloatType getF16Type(); 64 FloatType getF32Type(); 65 FloatType getF64Type(); 66 FloatType getF80Type(); 67 FloatType getF128Type();
|
| /llvm-project-15.0.7/mlir/unittests/IR/ |
| H A D | AttributeTest.cpp | 120 FloatType floatTy = FloatType::getF32(&context); in TEST() 128 FloatType floatTy = FloatType::getF64(&context); in TEST() 136 FloatType floatTy = FloatType::getF32(&context); in TEST() 144 FloatType floatTy = FloatType::getBF16(&context); in TEST() 170 ComplexType complexType = ComplexType::get(FloatType::getF32(&context)); in TEST() 184 ComplexType complexType = ComplexType::get(FloatType::getF32(&context)); in TEST() 212 FloatType floatTy = FloatType::getF32(&context); in TEST()
|
| H A D | ShapedTypeTest.cpp | 26 Type f32 = FloatType::getF32(&context); in TEST() 73 Type f32 = FloatType::getF32(&context); in TEST() 113 Type f32 = FloatType::getF32(&context); in TEST()
|
| /llvm-project-15.0.7/libc/test/src/math/exhaustive/ |
| H A D | exhaustive_test.cpp | 22 template <typename T, typename FloatType> 23 void LlvmLibcExhaustiveTest<T, FloatType>::test_full_range( in test_full_range() 66 << static_cast<FloatType>(__llvm_libc::fputil::FPBits<FloatType>( in test_full_range() 69 << static_cast<FloatType>( in test_full_range() 70 __llvm_libc::fputil::FPBits<FloatType>(range_end)) in test_full_range()
|
| H A D | exhaustive_test.h | 20 template <typename T, typename FloatType = float> 25 T, typename __llvm_libc::fputil::FPBits<FloatType>::UIntType>,
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/ |
| H A D | mlir-support.cpp | 16 mlir::Type FloatType = mlir::Float32Type::get(&Context); variable 17 mlir::Type MemRefType = mlir::MemRefType::get({4, 5}, FloatType); 19 mlir::Type VectorType = mlir::VectorType::get({1, 2}, FloatType); 21 mlir::TupleType::get(&Context, mlir::TypeRange({IndexType, FloatType})); 24 mlir::detail::OutOfLineOpResult Result(FloatType, 42); 35 mlir::Attribute FloatAttr = mlir::FloatAttr::get(FloatType, 1.0);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | IncorrectRoundingsCheck.cpp | 38 auto FloatType = expr(hasType(realFloatingPointType())); in registerMatchers() local 44 implicitCastExpr(FloatType, has(ignoringParenImpCasts(FloatHalf)))); in registerMatchers() 48 auto OneSideHalf = anyOf(allOf(hasLHS(FloatOrCastHalf), hasRHS(FloatType)), in registerMatchers() 49 allOf(hasRHS(FloatOrCastHalf), hasLHS(FloatType))); in registerMatchers()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | Types.cpp | 78 return isSignlessInteger() || isa<IndexType, FloatType>(); in isSignlessIntOrIndexOrFloat() 82 return isSignlessInteger() || isa<FloatType>(); in isSignlessIntOrFloat() 87 bool Type::isIntOrFloat() const { return isa<IntegerType, FloatType>(); } in isIntOrFloat() 95 return cast<FloatType>().getWidth(); in getIntOrFloatBitWidth()
|
| H A D | Builders.cpp | 36 FloatType Builder::getBF16Type() { return FloatType::getBF16(context); } in getBF16Type() 38 FloatType Builder::getF16Type() { return FloatType::getF16(context); } in getF16Type() 40 FloatType Builder::getF32Type() { return FloatType::getF32(context); } in getF32Type() 42 FloatType Builder::getF64Type() { return FloatType::getF64(context); } in getF64Type() 44 FloatType Builder::getF80Type() { return FloatType::getF80(context); } in getF80Type() 46 FloatType Builder::getF128Type() { return FloatType::getF128(context); } in getF128Type() 265 if (type.isa<FloatType>()) in getZeroAttr()
|
| H A D | BuiltinAttributes.cpp | 287 if (!type.isa<FloatType>()) in verify() 605 if (auto floatEltTy = eltTy.dyn_cast<FloatType>()) { in operator *() 1000 if (eltType.isa<FloatType>()) in get() 1076 assert(type.getElementType().isa<FloatType>()); in get() 1085 assert(complex.getElementType().isa<FloatType>()); in get() 1151 return type.isa<FloatType>(); in isValidIntOrFloat() 1227 auto elementType = getElementType().cast<FloatType>(); in getFloatValues() 1260 return {eltTy.cast<FloatType>().getFloatSemantics(), in complex_float_value_end() 1600 auto eltType = getElementType().cast<FloatType>(); in getZeroAPFloat() 1615 if (eltType.isa<FloatType>()) in getZeroAttr() [all …]
|
| H A D | BuiltinTypes.cpp | 93 unsigned FloatType::getWidth() { in getWidth() 108 const llvm::fltSemantics &FloatType::getFloatSemantics() { in getFloatSemantics() 124 FloatType FloatType::scaleElementBitwidth(unsigned scale) { in scaleElementBitwidth() 126 return FloatType(); in scaleElementBitwidth() 130 return FloatType::getF32(ctx); in scaleElementBitwidth() 132 return FloatType::getF64(ctx); in scaleElementBitwidth() 136 return FloatType::getF64(ctx); in scaleElementBitwidth() 137 return FloatType(); in scaleElementBitwidth() 140 unsigned FloatType::getFPMantissaWidth() { in getFPMantissaWidth() 254 if (auto et = getElementType().dyn_cast<FloatType>()) in scaleElementBitwidth() [all …]
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/ |
| H A D | Numeric.cpp | 30 auto fltTy = mlir::FloatType::getF80(ctx); in getTypeModel() 41 auto fltTy = mlir::FloatType::getF80(ctx); in getTypeModel() 53 auto fltTy = mlir::FloatType::getF128(ctx); in getTypeModel() 64 auto fltTy = mlir::FloatType::getF128(ctx); in getTypeModel() 76 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() 87 auto ty = mlir::FloatType::getF128(ctx); in getTypeModel() 98 auto fltTy = mlir::FloatType::getF80(ctx); in getTypeModel() 122 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() 133 auto ty = mlir::FloatType::getF128(ctx); in getTypeModel() 192 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() [all …]
|
| H A D | Reduction.cpp | 25 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() 41 auto ty = mlir::FloatType::getF128(ctx); in getTypeModel() 74 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() 90 auto ty = mlir::FloatType::getF128(ctx); in getTypeModel() 123 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() 139 auto ty = mlir::FloatType::getF128(ctx); in getTypeModel() 173 auto ty = mlir::ComplexType::get(mlir::FloatType::getF80(ctx)); in getTypeModel() 209 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() 225 auto ty = mlir::FloatType::getF128(ctx); in getTypeModel() 292 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() [all …]
|
| /llvm-project-15.0.7/libc/src/__support/FPUtil/ |
| H A D | FloatProperties.h | 173 template <typename BitsType> struct FloatType; 175 template <> struct FloatType<uint32_t> { 181 template <> struct FloatType<uint64_t> { 188 using FloatTypeT = typename FloatType<BitsType>::Type;
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalg.cpp | 52 if (isa<tosa::AbsOp>(op) && elementTy.isa<FloatType>()) in createLinalgBodyCalculationForElementwiseOp() 65 if (isa<tosa::AddOp>(op) && elementTy.isa<FloatType>()) in createLinalgBodyCalculationForElementwiseOp() 72 if (isa<tosa::SubOp>(op) && elementTy.isa<FloatType>()) in createLinalgBodyCalculationForElementwiseOp() 79 if (isa<tosa::MulOp>(op) && elementTy.isa<FloatType>()) { in createLinalgBodyCalculationForElementwiseOp() 283 if (isa<tosa::PowOp>(op) && elementTy.isa<FloatType>()) in createLinalgBodyCalculationForElementwiseOp() 291 if (isa<tosa::LogOp>(op) && elementTy.isa<FloatType>()) in createLinalgBodyCalculationForElementwiseOp() 459 if (srcTy.isa<FloatType>() && dstTy.isa<FloatType>() && bitExtend) in createLinalgBodyCalculationForElementwiseOp() 462 if (srcTy.isa<FloatType>() && dstTy.isa<FloatType>() && !bitExtend) in createLinalgBodyCalculationForElementwiseOp() 494 if (srcTy.isa<FloatType>() && dstTy.isInteger(1)) { in createLinalgBodyCalculationForElementwiseOp() 1856 if (elementTy.isa<FloatType>()) { in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/mlir/unittests/Dialect/Quant/ |
| H A D | QuantizationUtilsTest.cpp | 37 return FloatAttr::get(FloatType::getF32(ctx), value); in getTestFloatAttr() 43 auto eleType = FloatType::getF32(ctx); in getTestElementsAttr() 55 auto eleType = FloatType::getF32(ctx); in getTestSparseElementsAttr() 72 FloatType::getF32(ctx), /*scale=*/1.0, in getTestQuantizedType()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/ |
| H A D | TypeParser.cpp | 95 static FloatType parseExpressedTypeAndRange(DialectAsmParser &parser, in parseExpressedTypeAndRange() 98 FloatType type; in parseExpressedTypeAndRange() 123 FloatType expressedType; in parseAnyType() 197 FloatType expressedType; in parseUniformType() 299 FloatType expressedType; in parseCalibratedType()
|
| H A D | QuantOps.cpp | 104 if (!layerStatsType.getElementType().isa<FloatType>()) { in verify() 122 if (!axisStatsType.getElementType().isa<FloatType>()) { in verify()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | ArithmeticOps.cpp | 173 return constOp.getType().isa<FloatType>(); in classof() 1009 return checkWidthChangeCast<std::less, FloatType>(inputs, outputs); in areCastCompatible() 1013 return verifyTruncateOp<FloatType>(*this); in verify() 1054 return checkIntFloatCast<IntegerType, FloatType>(inputs, outputs); in areCastCompatible() 1066 FloatType floatTy = resEleType.cast<FloatType>(); in fold() 1080 return checkIntFloatCast<IntegerType, FloatType>(inputs, outputs); in areCastCompatible() 1092 FloatType floatTy = resEleType.cast<FloatType>(); in fold() 1105 return checkIntFloatCast<FloatType, IntegerType>(inputs, outputs); in areCastCompatible() 1131 return checkIntFloatCast<FloatType, IntegerType>(inputs, outputs); in areCastCompatible() 1223 if (auto resFloatType = resType.dyn_cast<FloatType>()) in fold() [all …]
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | ConvertType.cpp | 35 return mlir::FloatType::getF16(context); in genRealType() 37 return mlir::FloatType::getBF16(context); in genRealType() 39 return mlir::FloatType::getF32(context); in genRealType() 41 return mlir::FloatType::getF64(context); in genRealType() 43 return mlir::FloatType::getF80(context); in genRealType() 45 return mlir::FloatType::getF128(context); in genRealType()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | DataLayoutInterfaces.cpp | 54 if (type.isa<IntegerType, FloatType>()) in getDefaultTypeSizeInBits() 124 getFloatTypeABIAlignment(FloatType fltType, const DataLayout &dataLayout, in getFloatTypeABIAlignment() 140 if (auto fltType = type.dyn_cast<FloatType>()) in getDefaultABIAlignment() 177 getFloatTypePreferredAlignment(FloatType fltType, const DataLayout &dataLayout, in getFloatTypePreferredAlignment() 193 if (auto fltType = type.dyn_cast<FloatType>()) in getDefaultPreferredAlignment() 499 if (sampleType.isa<IntegerType, FloatType>()) { in verifyDataLayoutSpec()
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/ |
| H A D | CanonicalizationPatterns.td | 32 " ($0.getType().isa<mlir::FloatType>() && " 33 " $1.getType().isa<mlir::FloatType>() && " 34 " $2.getType().isa<mlir::FloatType>())) && "
|
| /llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 1366 template <typename FloatType> 1395 Impl(FloatType expected, bool nan_eq_nan, FloatType max_abs_error) 1481 const FloatType expected_; 1484 const FloatType max_abs_error_; 1495 operator Matcher<FloatType>() const { 1505 operator Matcher<FloatType&>() const { 1511 const FloatType expected_; 1514 const FloatType max_abs_error_; 1524 template <typename FloatType> 1583 FloatType max_abs_error_; [all …]
|