Home
last modified time | relevance | path

Searched refs:Real (Results 1 – 25 of 126) sorted by relevance

123456

/llvm-project-15.0.7/flang/include/flang/Runtime/
H A Dnumeric.h23 CppTypeFor<TypeCategory::Real, 4>);
25 CppTypeFor<TypeCategory::Real, 4>);
27 CppTypeFor<TypeCategory::Real, 4>);
195 CppTypeFor<TypeCategory::Real, 4>, CppTypeFor<TypeCategory::Real, 4>,
198 CppTypeFor<TypeCategory::Real, 8>, CppTypeFor<TypeCategory::Real, 8>,
202 CppTypeFor<TypeCategory::Real, 10>, CppTypeFor<TypeCategory::Real, 10>,
207 CppTypeFor<TypeCategory::Real, 16>, CppTypeFor<TypeCategory::Real, 16>,
230 CppTypeFor<TypeCategory::Real, 4>, CppTypeFor<TypeCategory::Real, 4>,
233 CppTypeFor<TypeCategory::Real, 8>, CppTypeFor<TypeCategory::Real, 8>,
237 CppTypeFor<TypeCategory::Real, 10>, CppTypeFor<TypeCategory::Real, 10>,
[all …]
H A Dcpp-type.h41 template <> struct CppTypeForHelper<TypeCategory::Real, 4> {
44 template <> struct CppTypeForHelper<TypeCategory::Real, 8> {
48 template <> struct CppTypeForHelper<TypeCategory::Real, 10> {
58 template <> struct CppTypeForHelper<TypeCategory::Real, 16> {
64 using type = std::complex<CppTypeFor<TypeCategory::Real, KIND>>;
/llvm-project-15.0.7/flang/unittests/Runtime/
H A DNumeric.cpp17 template <int KIND> using Real = CppTypeFor<TypeCategory::Real, KIND>; typedef
63 EXPECT_EQ(RTNAME(ModReal4)(Real<4>{8.0}, Real<4>(5.0)), 3.0); in TEST()
64 EXPECT_EQ(RTNAME(ModReal4)(Real<4>{-8.0}, Real<4>(5.0)), -3.0); in TEST()
65 EXPECT_EQ(RTNAME(ModReal8)(Real<8>{8.0}, Real<8>(-5.0)), 3.0); in TEST()
66 EXPECT_EQ(RTNAME(ModReal8)(Real<8>{-8.0}, Real<8>(-5.0)), -3.0); in TEST()
74 EXPECT_EQ(RTNAME(ModuloReal4)(Real<4>{8.0}, Real<4>(5.0)), 3.0); in TEST()
75 EXPECT_EQ(RTNAME(ModuloReal4)(Real<4>{-8.0}, Real<4>(5.0)), 2.0); in TEST()
76 EXPECT_EQ(RTNAME(ModuloReal8)(Real<8>{8.0}, Real<8>(-5.0)), -2.0); in TEST()
84 Real<4>{3.0} + std::ldexp(Real<4>{1.0}, -22)); in TEST()
86 Real<8>{1.0} + std::ldexp(Real<8>{1.0}, -52)); in TEST()
[all …]
H A DMiscIntrinsic.cpp26 mold.Establish(TypeCategory::Real, 4, nullptr, 0); in TEST()
29 EXPECT_EQ(result.type().raw(), (TypeCode{TypeCategory::Real, 4}.raw())); in TEST()
37 auto source{MakeArray<TypeCategory::Real, 4>( in TEST()
57 auto source{MakeArray<TypeCategory::Real, 4>( in TEST()
79 mold.Establish(TypeCategory::Real, 4, nullptr, 0, nullptr); in TEST()
84 EXPECT_EQ(result.type().raw(), (TypeCode{TypeCategory::Real, 4}.raw())); in TEST()
/llvm-project-15.0.7/flang/runtime/
H A Dnumeric.cpp261 CppTypeFor<TypeCategory::Real, 4> x) { in RTNAME()
265 CppTypeFor<TypeCategory::Real, 4> x) { in RTNAME()
269 CppTypeFor<TypeCategory::Real, 4> x) { in RTNAME()
565 CppTypeFor<TypeCategory::Real, 4> x, CppTypeFor<TypeCategory::Real, 4> p, in RTNAME()
570 CppTypeFor<TypeCategory::Real, 8> x, CppTypeFor<TypeCategory::Real, 8> p, in RTNAME()
576 CppTypeFor<TypeCategory::Real, 10> x, CppTypeFor<TypeCategory::Real, 10> p, in RTNAME()
582 CppTypeFor<TypeCategory::Real, 16> x, CppTypeFor<TypeCategory::Real, 16> p, in RTNAME()
621 CppTypeFor<TypeCategory::Real, 4> x, CppTypeFor<TypeCategory::Real, 4> p, in RTNAME()
626 CppTypeFor<TypeCategory::Real, 8> x, CppTypeFor<TypeCategory::Real, 8> p, in RTNAME()
632 CppTypeFor<TypeCategory::Real, 10> x, CppTypeFor<TypeCategory::Real, 10> p, in RTNAME()
[all …]
H A Dproduct.cpp97 CppTypeFor<TypeCategory::Real, 4> RTNAME(ProductReal4)(const Descriptor &x, in RTNAME()
99 return GetTotalReduction<TypeCategory::Real, 4>(x, source, line, dim, mask, in RTNAME()
100 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Real, 8>>{x}, in RTNAME()
103 CppTypeFor<TypeCategory::Real, 8> RTNAME(ProductReal8)(const Descriptor &x, in RTNAME()
105 return GetTotalReduction<TypeCategory::Real, 8>(x, source, line, dim, mask, in RTNAME()
106 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Real, 8>>{x}, in RTNAME()
110 CppTypeFor<TypeCategory::Real, 10> RTNAME(ProductReal10)(const Descriptor &x, in RTNAME()
113 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Real, 10>>{x}, in RTNAME()
120 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Real, 16>>{x}, in RTNAME()
129 mask, ComplexProductAccumulator<CppTypeFor<TypeCategory::Real, 8>>{x}, in RTNAME()
[all …]
H A Dtools.h138 case TypeCategory::Real: in ApplyType()
151 if constexpr (HasCppTypeFor<TypeCategory::Real, 10>) { in ApplyType()
156 if constexpr (HasCppTypeFor<TypeCategory::Real, 16>) { in ApplyType()
175 if constexpr (HasCppTypeFor<TypeCategory::Real, 10>) { in ApplyType()
253 if constexpr (HasCppTypeFor<TypeCategory::Real, 10>) { in ApplyFloatingPointKind()
258 if constexpr (HasCppTypeFor<TypeCategory::Real, 16>) { in ApplyFloatingPointKind()
305 case TypeCategory::Real: in GetResultType()
312 case TypeCategory::Real: in GetResultType()
315 return std::make_pair(TypeCategory::Real, xKind); in GetResultType()
316 case TypeCategory::Real: in GetResultType()
[all …]
H A Dtype-code.cpp34 case TypeCategory::Real: in TypeCode()
127 return std::make_pair(TypeCategory::Real, 2); in GetCategoryAndKind()
129 return std::make_pair(TypeCategory::Real, 3); in GetCategoryAndKind()
131 return std::make_pair(TypeCategory::Real, 4); in GetCategoryAndKind()
133 return std::make_pair(TypeCategory::Real, 8); in GetCategoryAndKind()
135 return std::make_pair(TypeCategory::Real, 10); in GetCategoryAndKind()
137 return std::make_pair(TypeCategory::Real, 16); in GetCategoryAndKind()
139 return std::make_pair(TypeCategory::Real, 16); in GetCategoryAndKind()
H A Dextrema.cpp166 case TypeCategory::Real: in TypedMaxOrMinLoc()
267 case TypeCategory::Real: in TypedPartialMaxOrMinLoc()
404 case TypeCategory::Real: in NumericMaxOrMin()
507 return TotalNumericMaxOrMin<TypeCategory::Real, 4, true>( in RTNAME()
617 using Type = CppTypeFor<TypeCategory::Real, KIND>;
629 using AccumType = CppTypeFor<TypeCategory::Real,
675 return GetTotalReduction<TypeCategory::Real, 4>( in RTNAME()
680 return GetTotalReduction<TypeCategory::Real, 8>( in RTNAME()
686 return GetTotalReduction<TypeCategory::Real, 10>( in RTNAME()
693 return GetTotalReduction<TypeCategory::Real, 16>( in RTNAME()
[all …]
H A Drandom.cpp111 RUNTIME_CHECK(terminator, typeCode && typeCode->first == TypeCategory::Real); in RTNAME()
116 Generate<CppTypeFor<TypeCategory::Real, 4>, 24>(harvest); in RTNAME()
119 Generate<CppTypeFor<TypeCategory::Real, 8>, 53>(harvest); in RTNAME()
122 if constexpr (HasCppTypeFor<TypeCategory::Real, 10>) { in RTNAME()
124 Generate<CppTypeFor<TypeCategory::Real, 10>, 64>(harvest); in RTNAME()
130 if constexpr (HasCppTypeFor<TypeCategory::Real, 16>) { in RTNAME()
132 Generate<CppTypeFor<TypeCategory::Real, 16>, 113>(harvest); in RTNAME()
H A Dsum.cpp123 CppTypeFor<TypeCategory::Real, 4> RTNAME(SumReal4)(const Descriptor &x, in RTNAME()
125 return GetTotalReduction<TypeCategory::Real, 4>( in RTNAME()
128 CppTypeFor<TypeCategory::Real, 8> RTNAME(SumReal8)(const Descriptor &x, in RTNAME()
130 return GetTotalReduction<TypeCategory::Real, 8>( in RTNAME()
134 CppTypeFor<TypeCategory::Real, 10> RTNAME(SumReal10)(const Descriptor &x, in RTNAME()
136 return GetTotalReduction<TypeCategory::Real, 10>( in RTNAME()
141 CppTypeFor<TypeCategory::Real, 16> RTNAME(SumReal16)(const Descriptor &x, in RTNAME()
143 return GetTotalReduction<TypeCategory::Real, 16>( in RTNAME()
/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dreal.h57 constexpr Real(const Real &) = default;
58 constexpr Real(Real &&) = default;
60 constexpr Real &operator=(const Real &) = default;
61 constexpr Real &operator=(Real &&) = default;
110 ValueWithRealFlags<Real> Add(const Real &,
116 ValueWithRealFlags<Real> Multiply(const Real &,
118 ValueWithRealFlags<Real> Divide(const Real &,
127 ValueWithRealFlags<Real> HYPOT(const Real &,
130 ValueWithRealFlags<Real> DIM(const Real &,
134 ValueWithRealFlags<Real> MOD(const Real &,
[all …]
H A Dcomplex.h103 extern template class Complex<Real<Integer<16>, 11>>;
104 extern template class Complex<Real<Integer<16>, 8>>;
105 extern template class Complex<Real<Integer<32>, 24>>;
106 extern template class Complex<Real<Integer<64>, 53>>;
107 extern template class Complex<Real<Integer<80>, 64>>;
108 extern template class Complex<Real<Integer<128>, 113>>;
H A Dtype.h56 using LargestReal = Type<TypeCategory::Real, 16>;
67 case TypeCategory::Real: in IsValidKindOfIntrinsicType()
266 class Type<TypeCategory::Real, KIND>
267 : public TypeBase<TypeCategory::Real, KIND> {
271 using Scalar = value::Real<value::Integer<bits>, precision>;
279 using Part = Type<TypeCategory::Real, KIND>;
338 using RealTypes = CategoryTypes<TypeCategory::Real>;
373 SomeKind<TypeCategory::Real>, SomeKind<TypeCategory::Complex>>;
375 SomeKind<TypeCategory::Real>, SomeKind<TypeCategory::Complex>,
419 using SomeReal = SomeKind<TypeCategory::Real>;
[all …]
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dreal.cpp57 ValueWithRealFlags<Real<W, P>> Real<W, P>::Add( in Add()
137 ValueWithRealFlags<Real<W, P>> Real<W, P>::Multiply( in Multiply()
197 ValueWithRealFlags<Real<W, P>> Real<W, P>::Divide( in Divide()
375 ValueWithRealFlags<Real<W, P>> Real<W, P>::HYPOT( in HYPOT()
390 Real one; in HYPOT()
406 ValueWithRealFlags<Real<W, P>> Real<W, P>::MOD( in MOD()
429 ValueWithRealFlags<Real<W, P>> Real<W, P>::MODULO( in MODULO()
451 ValueWithRealFlags<Real<W, P>> Real<W, P>::DIM( in DIM()
466 ValueWithRealFlags<Real<W, P>> Real<W, P>::ToWholeNumber( in ToWholeNumber()
633 ValueWithRealFlags<Real<W, P>> Real<W, P>::Read( in Read()
[all …]
H A Dcomplex.cpp100 template class Complex<Real<Integer<16>, 11>>;
101 template class Complex<Real<Integer<16>, 8>>;
102 template class Complex<Real<Integer<32>, 24>>;
103 template class Complex<Real<Integer<64>, 53>>;
104 template class Complex<Real<Integer<80>, 64>>;
105 template class Complex<Real<Integer<128>, 113>>;
H A Dhost.h91 } else if constexpr (std::is_same_v<FTN_T, Type<TypeCategory::Real, 10>>) { in CastFortranToHost()
133 Type<TypeCategory::Real, common::RealKindForPrecision(24)>> {
142 Type<TypeCategory::Real, common::RealKindForPrecision(53)>> {
151 Type<TypeCategory::Real, common::RealKindForPrecision(64)>> {
161 Type<TypeCategory::Real, common::RealKindForPrecision(113)>> {
170 using RealT = Fortran::evaluate::Type<TypeCategory::Real, KIND>;
H A Dtype.cpp146 case TypeCategory::Real: in MeasureSizeInBytes()
407 case TypeCategory::Real: in ResultTypeForMultiply()
414 case TypeCategory::Real: in ResultTypeForMultiply()
418 case TypeCategory::Real: in ResultTypeForMultiply()
419 return DynamicType{TypeCategory::Real, std::max(kind_, that.kind_)}; in ResultTypeForMultiply()
430 case TypeCategory::Real: in ResultTypeForMultiply()
502 case TypeCategory::Real: in ComparisonType()
508 case TypeCategory::Real: in ComparisonType()
512 case TypeCategory::Real: in ComparisonType()
522 case TypeCategory::Real: in ComparisonType()
/llvm-project-15.0.7/lld/utils/
H A Dlink.yaml12 type: Real
15 type: Real
18 type: Real
21 type: Real
24 type: Real
27 type: Real
30 type: Real
33 type: Real
36 type: Real
39 type: Real
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcomplex-conversion.cpp5 void func(float Real, _Complex float Complex) { in func() argument
6Real += Complex; // expected-error {{assigning to 'float' from incompatible type '_Complex float'}} in func()
7 Real += (float)Complex; in func()
9Real = Complex; // expected-error {{implicit conversion from '_Complex float' to 'float' is not pe… in func()
10 Real = (float)Complex; in func()
/llvm-project-15.0.7/flang/lib/Decimal/
H A Dbig-radix-floating-point.h44 using Real = BinaryFloatingPointNumber<PREC>;
61 -Real::exponentBias - Real::binaryPrecision};
73 Real, enum FortranRounding = RoundNearest);
348 using Raw = typename Real::RawType; in RemoveLeastOrderZeroDigits()
349 constexpr Raw SignBit() const { return Raw{isNegative_} << (Real::bits - 1); } in RemoveLeastOrderZeroDigits()
351 return (Raw{Real::maxExponent} << Real::significandBits) | SignBit(); in RemoveLeastOrderZeroDigits()
354 return (Raw{Real::maxExponent} << Real::significandBits) | in RemoveLeastOrderZeroDigits()
355 (Raw{1} << (Real::significandBits - 2)); in RemoveLeastOrderZeroDigits()
H A Ddecimal-to-binary.cpp135 expo = 10 * Real::decimalRange; in ParseNumber()
321 return {Real{SignBit()}}; in ConvertToBinary()
328 static constexpr int crazy{2 * Real::decimalRange + log10Radix}; in ConvertToBinary()
330 return {Real{SignBit()}, Inexact}; in ConvertToBinary()
332 return {Real{Infinity()}, Overflow}; in ConvertToBinary()
421 return {Real{NaN()}, Invalid}; in ConvertToBinary()
430 return {Real{NaN()}}; in ConvertToBinary()
449 return {Real{Infinity()}}; in ConvertToBinary()
452 return {Real{NaN()}, Invalid}; in ConvertToBinary()
/llvm-project-15.0.7/polly/test/ScopInfo/
H A Dmultidim_fold_constant_dim.ll4 ; double Real;
11 ; A[i][j].Real += A[i][j].Img;
67 %Real = getelementptr inbounds %struct.com, %struct.com* %arrayidx6, i64 0, i32 0
68 %tmp4 = load double, double* %Real, align 8
70 store double %add, double* %Real, align 8
113 %Real = getelementptr inbounds %struct.com2, %struct.com2* %arrayidx5, i64 0, i32 0
114 …%arrayidx6 = getelementptr inbounds [20000000000 x double], [20000000000 x double]* %Real, i64 0, …
116 …%arrayidx10 = getelementptr inbounds [20000000000 x double], [20000000000 x double]* %Real, i64 0,…
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DComplex.h29 enum class Part { Real = 0, Imag = 1 }; enumerator
45 return isImagPart ? extract<Part::Imag>(cplx) : extract<Part::Real>(cplx); in extractComplexPart()
50 return {extract<Part::Real>(cplx), extract<Part::Imag>(cplx)}; in extractParts()
56 : insert<Part::Real>(cplx, part); in insertComplexPart()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dqualified-names-diag.cpp13 typedef float Real; typedef
19 vector<Real> v2; in test()

123456