| /llvm-project-15.0.7/flang/include/flang/Runtime/ |
| H A D | numeric.h | 177 CppTypeFor<TypeCategory::Integer, 1>, CppTypeFor<TypeCategory::Integer, 1>, 180 CppTypeFor<TypeCategory::Integer, 2>, CppTypeFor<TypeCategory::Integer, 2>, 183 CppTypeFor<TypeCategory::Integer, 4>, CppTypeFor<TypeCategory::Integer, 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 D | cpp-type.h | 28 using CppTypeFor = typename CppTypeForHelper<CAT, KIND>::type; variable 64 using type = std::complex<CppTypeFor<TypeCategory::Real, KIND>>;
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | numeric.cpp | 261 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 D | product.cpp | 57 CppTypeFor<TypeCategory::Integer, 1> RTNAME(ProductInteger1)( in RTNAME() 61 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Integer, 4>>{x}, in RTNAME() 64 CppTypeFor<TypeCategory::Integer, 2> RTNAME(ProductInteger2)( in RTNAME() 68 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Integer, 4>>{x}, in RTNAME() 71 CppTypeFor<TypeCategory::Integer, 4> RTNAME(ProductInteger4)( in RTNAME() 78 CppTypeFor<TypeCategory::Integer, 8> RTNAME(ProductInteger8)( in RTNAME() 86 CppTypeFor<TypeCategory::Integer, 16> RTNAME(ProductInteger16)( in RTNAME() 100 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Real, 8>>{x}, in RTNAME() 106 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Real, 8>>{x}, in RTNAME() 113 NonComplexProductAccumulator<CppTypeFor<TypeCategory::Real, 10>>{x}, in RTNAME() [all …]
|
| H A D | reduction.cpp | 77 CppTypeFor<TypeCategory::Integer, 1> RTNAME(IAll1)(const Descriptor &x, in RTNAME() 82 CppTypeFor<TypeCategory::Integer, 2> RTNAME(IAll2)(const Descriptor &x, in RTNAME() 87 CppTypeFor<TypeCategory::Integer, 4> RTNAME(IAll4)(const Descriptor &x, in RTNAME() 92 CppTypeFor<TypeCategory::Integer, 8> RTNAME(IAll8)(const Descriptor &x, in RTNAME() 115 CppTypeFor<TypeCategory::Integer, 1> RTNAME(IAny1)(const Descriptor &x, in RTNAME() 156 IntegerXorAccumulator<CppTypeFor<TypeCategory::Integer, 4>>{x}, in RTNAME() 162 IntegerXorAccumulator<CppTypeFor<TypeCategory::Integer, 4>>{x}, in RTNAME() 168 IntegerXorAccumulator<CppTypeFor<TypeCategory::Integer, 4>>{x}, in RTNAME() 174 IntegerXorAccumulator<CppTypeFor<TypeCategory::Integer, 8>>{x}, in RTNAME() 270 using CppType = CppTypeFor<TypeCategory::Logical, KIND>; in operator ()() [all …]
|
| H A D | sum.cpp | 93 CppTypeFor<TypeCategory::Integer, 1> RTNAME(SumInteger1)(const Descriptor &x, in RTNAME() 96 IntegerSumAccumulator<CppTypeFor<TypeCategory::Integer, 4>>{x}, "SUM"); in RTNAME() 117 mask, IntegerSumAccumulator<CppTypeFor<TypeCategory::Integer, 16>>{x}, in RTNAME() 123 CppTypeFor<TypeCategory::Real, 4> RTNAME(SumReal4)(const Descriptor &x, in RTNAME() 128 CppTypeFor<TypeCategory::Real, 8> RTNAME(SumReal8)(const Descriptor &x, in RTNAME() 134 CppTypeFor<TypeCategory::Real, 10> RTNAME(SumReal10)(const Descriptor &x, in RTNAME() 141 CppTypeFor<TypeCategory::Real, 16> RTNAME(SumReal16)(const Descriptor &x, in RTNAME() 148 void RTNAME(CppSumComplex4)(CppTypeFor<TypeCategory::Complex, 4> &result, in RTNAME() 154 void RTNAME(CppSumComplex8)(CppTypeFor<TypeCategory::Complex, 8> &result, in RTNAME() 161 void RTNAME(CppSumComplex10)(CppTypeFor<TypeCategory::Complex, 10> &result, in RTNAME() [all …]
|
| H A D | random.cpp | 116 Generate<CppTypeFor<TypeCategory::Real, 4>, 24>(harvest); in RTNAME() 119 Generate<CppTypeFor<TypeCategory::Real, 8>, 53>(harvest); in RTNAME() 124 Generate<CppTypeFor<TypeCategory::Real, 10>, 64>(harvest); in RTNAME() 132 Generate<CppTypeFor<TypeCategory::Real, 16>, 113>(harvest); in RTNAME() 150 *size.OffsetElement<CppTypeFor<TypeCategory::Integer, 4>>() = 1; in RTNAME() 153 *size.OffsetElement<CppTypeFor<TypeCategory::Integer, 8>>() = 1; in RTNAME() 172 seed = *put.OffsetElement<CppTypeFor<TypeCategory::Integer, 4>>(); in RTNAME() 175 seed = *put.OffsetElement<CppTypeFor<TypeCategory::Integer, 8>>(); in RTNAME() 211 *got.OffsetElement<CppTypeFor<TypeCategory::Integer, 4>>() = seed; in RTNAME() 214 *got.OffsetElement<CppTypeFor<TypeCategory::Integer, 8>>() = seed; in RTNAME()
|
| H A D | extrema.cpp | 120 using CppType = CppTypeFor<CAT, KIND>; in DoMaxOrMinLoc() 202 using CppType = CppTypeFor<CAT, KIND>; in DoPartialMaxOrMinLocDirection() 301 using Type = CppTypeFor<CAT, KIND>; 311 using Type = CppTypeFor<TypeCategory::Integer, 16>; 320 using Type = CppTypeFor<CAT, KIND>; 359 using Type = CppTypeFor<CAT, KIND>; in DoMaxMinNorm2() 416 using Type = CppTypeFor<TypeCategory::Character, KIND>; 496 CppTypeFor<TypeCategory::Integer, 16> RTNAME(MaxvalInteger16)( in RTNAME() 556 CppTypeFor<TypeCategory::Integer, 16> RTNAME(MinvalInteger16)( in RTNAME() 617 using Type = CppTypeFor<TypeCategory::Real, KIND>; [all …]
|
| H A D | tools.h | 62 *result.ZeroBasedIndexedElement<Fortran::runtime::CppTypeFor< in operator() 81 return *reinterpret_cast<const CppTypeFor<TypeCategory::Integer, 1> *>(p); in GetInt64() 83 return *reinterpret_cast<const CppTypeFor<TypeCategory::Integer, 2> *>(p); in GetInt64() 85 return *reinterpret_cast<const CppTypeFor<TypeCategory::Integer, 4> *>(p); in GetInt64() 87 return *reinterpret_cast<const CppTypeFor<TypeCategory::Integer, 8> *>(p); in GetInt64() 97 reinterpret_cast<CppTypeFor<TypeCategory::Integer, 1> &>(x) = value; in SetInteger() 98 return value == reinterpret_cast<CppTypeFor<TypeCategory::Integer, 1> &>(x); in SetInteger() 100 reinterpret_cast<CppTypeFor<TypeCategory::Integer, 2> &>(x) = value; in SetInteger() 103 reinterpret_cast<CppTypeFor<TypeCategory::Integer, 4> &>(x) = value; in SetInteger() 106 reinterpret_cast<CppTypeFor<TypeCategory::Integer, 8> &>(x) = value; in SetInteger() [all …]
|
| H A D | matmul.cpp | 73 inline void MatrixTimesMatrix(CppTypeFor<RCAT, RKIND> *RESTRICT product, in MatrixTimesMatrix() 76 using ResultType = CppTypeFor<RCAT, RKIND>; in MatrixTimesMatrix() 107 inline void MatrixTimesVector(CppTypeFor<RCAT, RKIND> *RESTRICT product, in MatrixTimesVector() 110 using ResultType = CppTypeFor<RCAT, RKIND>; in MatrixTimesVector() 136 inline void VectorTimesMatrix(CppTypeFor<RCAT, RKIND> *RESTRICT product, in VectorTimesMatrix() 139 using ResultType = CppTypeFor<RCAT, RKIND>; in VectorTimesMatrix() 192 CppTypeFor<RCAT == TypeCategory::Logical ? TypeCategory::Integer : RCAT, in DoMatmul() 315 resultType->second, CppTypeFor<XCAT, XKIND>, in operator ()() 316 CppTypeFor<YCAT, YKIND>>(result, x, y, terminator); in operator ()()
|
| H A D | findloc.cpp | 22 using Type1 = CppTypeFor<CAT1, KIND1>; 23 using Type2 = CppTypeFor<CAT2, KIND2>; 32 using Type1 = CppTypeFor<TypeCategory::Complex, KIND1>; 33 using Type2 = CppTypeFor<TypeCategory::Complex, KIND2>; 44 using Type1 = CppTypeFor<TypeCategory::Complex, KIND1>; 45 using Type2 = CppTypeFor<CAT2, KIND2>; 55 using Type1 = CppTypeFor<CAT1, KIND1>; 56 using Type2 = CppTypeFor<TypeCategory::Complex, KIND2>; 65 using Type = CppTypeFor<TypeCategory::Character, KIND>;
|
| H A D | dot-product.cpp | 53 static inline CppTypeFor<RCAT, RKIND> DoDotProduct( in DoDotProduct() 55 using Result = CppTypeFor<RCAT, RKIND>; in DoDotProduct() 108 using Result = CppTypeFor<RCAT, RKIND>; 117 return DoDotProduct<RCAT, RKIND, CppTypeFor<XCAT, XKIND>, in operator ()() 118 CppTypeFor<YCAT, YKIND>>(x, y, terminator); in operator ()() 190 CppTypeFor<TypeCategory::Real, 16> RTNAME(DotProductReal16)( in RTNAME()
|
| H A D | time-intrinsic.cpp | 188 *result.ZeroBasedIndexedElement<Fortran::runtime::CppTypeFor< in operator ()() 190 -std::numeric_limits<Fortran::runtime::CppTypeFor< in operator ()() 232 Fortran::runtime::CppTypeFor<Fortran::common::TypeCategory::Integer, KIND> 239 Fortran::runtime::CppTypeFor<Fortran::common::TypeCategory::Integer, KIND> 244 return -std::numeric_limits<Fortran::runtime::CppTypeFor< in GetGmtOffset() 251 *result.ZeroBasedIndexedElement<Fortran::runtime::CppTypeFor< in operator ()()
|
| H A D | reduction-templates.h | 78 inline CppTypeFor<CAT, KIND> GetTotalReduction(const Descriptor &x, in GetTotalReduction() 83 using CppType = CppTypeFor<CAT, KIND>; in GetTotalReduction() 202 using CppType = CppTypeFor<CAT, KIND>; in PartialReduction() 239 ACCUM<CppTypeFor<TypeCategory::Integer, Intermediate>>; in operator() 264 using Accumulator = ACCUM<CppTypeFor<TypeCategory::Real, Intermediate>>; in operator() 307 result.OffsetElement<CppTypeFor<TypeCategory::Integer, KIND>>()); in operator()
|
| H A D | character.cpp | 236 LenTrim<CppTypeFor<TypeCategory::Integer, 1>, CHAR>( in LenTrimKind() 240 LenTrim<CppTypeFor<TypeCategory::Integer, 2>, CHAR>( in LenTrimKind() 244 LenTrim<CppTypeFor<TypeCategory::Integer, 4>, CHAR>( in LenTrimKind() 248 LenTrim<CppTypeFor<TypeCategory::Integer, 8>, CHAR>( in LenTrimKind() 252 LenTrim<CppTypeFor<TypeCategory::Integer, 16>, CHAR>( in LenTrimKind() 437 GeneralCharFunc<CppTypeFor<TypeCategory::Integer, 1>, CHAR, FUNC>( in GeneralCharFuncKind() 441 GeneralCharFunc<CppTypeFor<TypeCategory::Integer, 2>, CHAR, FUNC>( in GeneralCharFuncKind() 445 GeneralCharFunc<CppTypeFor<TypeCategory::Integer, 4>, CHAR, FUNC>( in GeneralCharFuncKind() 449 GeneralCharFunc<CppTypeFor<TypeCategory::Integer, 8>, CHAR, FUNC>( in GeneralCharFuncKind() 453 GeneralCharFunc<CppTypeFor<TypeCategory::Integer, 16>, CHAR, FUNC>( in GeneralCharFuncKind()
|
| H A D | descriptor-io.h | 51 using IntType = CppTypeFor<TypeCategory::Integer, KIND>; in FormattedIntegerIO() 206 using IntType = CppTypeFor<TypeCategory::Integer, KIND>; in FormattedLogicalIO()
|
| H A D | command.cpp | 135 return value <= std::numeric_limits<Fortran::runtime::CppTypeFor< in operator ()()
|
| /llvm-project-15.0.7/flang/unittests/Runtime/ |
| H A D | Numeric.cpp | 16 template <int KIND> using Int = CppTypeFor<TypeCategory::Integer, KIND>; 17 template <int KIND> using Real = CppTypeFor<TypeCategory::Real, KIND>;
|