| /llvm-project-15.0.7/flang/runtime/ |
| H A D | transformational.cpp | 60 SubscriptValue GetShift(const SubscriptValue resultAt[]) const { in GetShift() 82 SubscriptValue lb_[maxRank]; 84 SubscriptValue shiftCount_{}; 150 SubscriptValue extent[maxRank]; in RTNAME() 207 SubscriptValue extent[maxRank]; in RTNAME() 323 SubscriptValue trues{0}; in RTNAME() 338 SubscriptValue extent{trues}; in RTNAME() 379 SubscriptValue vectorAt{ in RTNAME() 534 SubscriptValue extent[2]{ in RTNAME() 538 SubscriptValue matrixLB[2]; in RTNAME() [all …]
|
| H A D | matmul.cpp | 39 void Accumulate(const SubscriptValue xAt[], const SubscriptValue yAt[]) { in Accumulate() 74 SubscriptValue rows, SubscriptValue cols, const XT *RESTRICT x, in MatrixTimesMatrix() 79 for (SubscriptValue k{0}; k < n; ++k) { in MatrixTimesMatrix() 108 SubscriptValue rows, SubscriptValue n, const XT *RESTRICT x, in MatrixTimesVector() 112 for (SubscriptValue k{0}; k < n; ++k) { in MatrixTimesVector() 137 SubscriptValue n, SubscriptValue cols, const XT *RESTRICT x, in VectorTimesMatrix() 141 for (SubscriptValue k{0}; k < n; ++k) { in VectorTimesMatrix() 164 SubscriptValue extent[2]{ in DoMatmul() 250 SubscriptValue xAt[2], yAt[2], resAt[2]; in DoMatmul() 272 SubscriptValue x1{xAt[1]}, y0{yAt[0]}; in DoMatmul() [all …]
|
| H A D | descriptor.cpp | 29 int rank, const SubscriptValue *extent, ISO::CFI_attribute_t attribute, in Establish() 61 const SubscriptValue *extent, ISO::CFI_attribute_t attribute, in Establish() 68 int rank, const SubscriptValue *extent, ISO::CFI_attribute_t attribute, in Establish() 75 const SubscriptValue *extent, ISO::CFI_attribute_t attribute) { in Establish() 85 void *p, int rank, const SubscriptValue *extent, in Create() 102 SubscriptValue characters, void *p, int rank, const SubscriptValue *extent, in Create() 109 void *p, int rank, const SubscriptValue *extent, in Create() 167 SubscriptValue *subscript, const int *permutation) const { in DecrementSubscripts() 180 const SubscriptValue *subscript, const int *permutation) const { in ZeroBasedElementNumber() 193 const SubscriptValue *lower, const SubscriptValue *upper, in EstablishPointerSection() [all …]
|
| H A D | reduction-templates.h | 50 SubscriptValue xAt[maxRank]; in DoTotalReduction() 54 SubscriptValue maskAt[maxRank]; in DoTotalReduction() 100 inline void GetExpandedSubscripts(SubscriptValue at[], in GetExpandedSubscripts() 102 const SubscriptValue from[]) { in GetExpandedSubscripts() 117 SubscriptValue xAt[maxRank]; in ReduceDimToScalar() 120 SubscriptValue at{dim.LowerBound()}; in ReduceDimToScalar() 138 SubscriptValue xAt[maxRank], maskAt[maxRank]; in ReduceDimMaskToScalar() 142 SubscriptValue xPos{xDim.LowerBound()}; in ReduceDimMaskToScalar() 144 SubscriptValue maskPos{maskDim.LowerBound()}; in ReduceDimMaskToScalar() 173 SubscriptValue resultExtent[maxRank]; in CreatePartialReductionResult() [all …]
|
| H A D | dot-product.cpp | 30 void AccumulateIndexed(SubscriptValue xAt, SubscriptValue yAt) { in AccumulateIndexed() 57 SubscriptValue n{x.GetDimension(0).Extent()}; in DoDotProduct() 58 if (SubscriptValue yN{y.GetDimension(0).Extent()}; yN != n) { in DoDotProduct() 84 for (SubscriptValue j{0}; j < n; ++j) { in DoDotProduct() 89 for (SubscriptValue j{0}; j < n; ++j) { in DoDotProduct() 98 SubscriptValue xAt{x.GetDimension(0).LowerBound()}; in DoDotProduct() 99 SubscriptValue yAt{y.GetDimension(0).LowerBound()}; in DoDotProduct() 101 for (SubscriptValue j{0}; j < n; ++j) { in DoDotProduct()
|
| H A D | reduction.cpp | 32 template <typename A> bool AccumulateAt(const SubscriptValue at[]) { in AccumulateAt() 49 template <typename A> bool AccumulateAt(const SubscriptValue at[]) { in AccumulateAt() 66 template <typename A> bool AccumulateAt(const SubscriptValue at[]) { in AccumulateAt() 216 bool AccumulateAt(const SubscriptValue at[]) { in AccumulateAt() 233 SubscriptValue xAt[maxRank]; in GetTotalLogicalReduction() 245 SubscriptValue subscripts[]) -> typename ACCUMULATOR::Type { in ReduceLogicalDimToScalar() 247 SubscriptValue xAt[maxRank]; in ReduceLogicalDimToScalar() 250 SubscriptValue at{dim.LowerBound()}; in ReduceLogicalDimToScalar() 267 SubscriptValue at[maxRank]; in operator ()() 298 bool AccumulateAt(const SubscriptValue at[]) { in AccumulateAt() [all …]
|
| H A D | namelist.cpp | 109 static std::optional<SubscriptValue> GetSubscriptValue(IoStatementState &io) { in GetSubscriptValue() 110 std::optional<SubscriptValue> value; in GetSubscriptValue() 120 SubscriptValue was{value.value_or(0)}; in GetSubscriptValue() 121 overflow |= was >= std::numeric_limits<SubscriptValue>::max() / 10; in GetSubscriptValue() 147 SubscriptValue lower[maxRank], upper[maxRank], stride[maxRank]; in HandleSubscripts() 155 SubscriptValue dimLower{0}, dimUpper{0}, dimStride{0}; in HandleSubscripts() 161 dim.ByteStride() / std::max<SubscriptValue>(contiguousStride, 1); in HandleSubscripts() 251 SubscriptValue chars{static_cast<SubscriptValue>(desc.ElementBytes()) / kind}; in HandleSubstring() 255 std::optional<SubscriptValue> lower, upper; in HandleSubstring()
|
| H A D | character.cpp | 87 SubscriptValue elements{1}; in Compare() 152 SubscriptValue ub[maxRank], stringAt[maxRank]; in AdjustLRHelper() 153 SubscriptValue elements{1}; in AdjustLRHelper() 208 SubscriptValue ub[maxRank], stringAt[maxRank]; in LenTrim() 209 SubscriptValue elements{1}; in LenTrim() 383 SubscriptValue elements{1}; in GeneralCharFunc() 488 SubscriptValue ub[maxRank], xAt[maxRank]; in MaxMinHelper() 489 SubscriptValue elements{1}; in MaxMinHelper() 571 SubscriptValue ub[maxRank], fromAt[maxRank]; in RTNAME() 572 SubscriptValue elements{1}; in RTNAME() [all …]
|
| H A D | allocatable.cpp | 28 SubscriptValue length, int kind, int rank, int corank) { in RTNAME() 49 SubscriptValue lower, SubscriptValue upper) { in RTNAME() 56 Descriptor &descriptor, int which, SubscriptValue x) { in RTNAME()
|
| H A D | findloc.cpp | 24 bool operator()(const Descriptor &array, const SubscriptValue at[], in operator ()() 34 bool operator()(const Descriptor &array, const SubscriptValue at[], in operator ()() 46 bool operator()(const Descriptor &array, const SubscriptValue at[], in operator ()() 57 bool operator()(const Descriptor &array, const SubscriptValue at[], in operator ()() 66 bool operator()(const Descriptor &array, const SubscriptValue at[], in operator ()() 76 bool operator()(const Descriptor &array, const SubscriptValue at[], in operator ()() 106 template <typename IGNORED> bool AccumulateAt(const SubscriptValue at[]) { in AccumulateAt() 122 SubscriptValue location_[maxRank]; 205 SubscriptValue extent[1]{rank}; in RTNAME()
|
| H A D | descriptor-io.h | 30 const SubscriptValue subscripts[]) { in ExtractElement() 49 SubscriptValue subscripts[maxRank]; in FormattedIntegerIO() 82 SubscriptValue subscripts[maxRank]; in FormattedRealIO() 115 SubscriptValue subscripts[maxRank]; in FormattedComplexIO() 163 SubscriptValue subscripts[maxRank]; in FormattedCharacterIO() 203 SubscriptValue subscripts[maxRank]; in FormattedLogicalIO() 247 const SubscriptValue origSubscripts[], Terminator &terminator) { in DefaultFormattedComponentIO() 292 SubscriptValue subscripts[maxRank]; in FormattedDerivedTypeIO() 296 SubscriptValue at[maxRank]; in FormattedDerivedTypeIO() 339 SubscriptValue subscripts[maxRank]; in UnformattedDescriptorIO()
|
| H A D | pointer.cpp | 27 void RTNAME(PointerNullifyCharacter)(Descriptor &pointer, SubscriptValue length, in RTNAME() 41 SubscriptValue lower, SubscriptValue upper) { in RTNAME() 50 Descriptor &pointer, int which, SubscriptValue x) { in RTNAME() 94 SubscriptValue byteStride{/*captured from first dimension*/}; in RTNAME()
|
| H A D | copy.cpp | 18 void CopyElement(const Descriptor &to, const SubscriptValue toAt[], in CopyElement() 19 const Descriptor &from, const SubscriptValue fromAt[], in CopyElement() 55 SubscriptValue toAt[maxRank], fromAt[maxRank]; in CopyArray()
|
| H A D | copy.h | 21 void CopyElement(const Descriptor &to, const SubscriptValue toAt[], 22 const Descriptor &from, const SubscriptValue fromAt[], Terminator &);
|
| H A D | assign.cpp | 44 std::size_t toElements, SubscriptValue toAt[], SubscriptValue fromAt[]) { in DoElementalDefinedAssignment() 124 auto stride{static_cast<SubscriptValue>(to.ElementBytes())}; in Assign() 139 SubscriptValue toAt[maxRank]; in Assign() 144 SubscriptValue fromAt[maxRank]; in Assign()
|
| H A D | inquiry.cpp | 35 SubscriptValue extent[1]{array.rank()}; in RTNAME() 52 for (SubscriptValue i{0}; i < array.rank(); ++i) { in RTNAME()
|
| H A D | derived.cpp | 58 SubscriptValue extent[maxRank]; in Initialize() 188 SubscriptValue extent[maxRank]; in Finalize() 191 SubscriptValue lb{bounds[2 * dim].GetValue(&descriptor).value_or(0)}; in Finalize() 192 SubscriptValue ub{ in Finalize()
|
| /llvm-project-15.0.7/flang/include/flang/Runtime/ |
| H A D | descriptor.h | 38 using SubscriptValue = ISO::CFI_index_t; variable 52 Dimension &SetBounds(SubscriptValue lower, SubscriptValue upper) { in SetBounds() 73 Dimension &SetExtent(SubscriptValue extent) { in SetExtent() 157 const SubscriptValue *extent = nullptr, 170 const SubscriptValue *extent = nullptr, 178 const SubscriptValue *extent = nullptr, 182 const SubscriptValue *extent = nullptr, 233 SubscriptValue at[maxRank]; in ZeroBasedIndexedElement() 369 const SubscriptValue *lower = nullptr, 370 const SubscriptValue *upper = nullptr, [all …]
|
| H A D | allocatable.h | 31 void RTNAME(AllocatableInitCharacter)(Descriptor &, SubscriptValue length = 0, 54 Descriptor &, int zeroBasedDim, SubscriptValue lower, SubscriptValue upper); 58 SubscriptValue lower, SubscriptValue upper = 0); 64 Descriptor &, int which, SubscriptValue); 72 int which /* 0 for CHARACTER length */, SubscriptValue other,
|
| H A D | pointer.h | 26 void RTNAME(PointerNullifyCharacter)(Descriptor &, SubscriptValue length = 0, 34 Descriptor &, int zeroBasedDim, SubscriptValue lower, SubscriptValue upper); 36 SubscriptValue lower, SubscriptValue upper = 0); 41 void RTNAME(PointerSetDerivedLength)(Descriptor &, int which, SubscriptValue); 73 int which /* 0 for CHARACTER length */, SubscriptValue other,
|
| /llvm-project-15.0.7/flang/unittests/Evaluate/ |
| H A D | reshape.cpp | 10 static const SubscriptValue sourceExtent[]{2, 3, 4}; in main() 32 static const SubscriptValue shapeExtent{2}; in main() 46 static const SubscriptValue padExtent[]{2, 2, 3}; in main() 59 static const SubscriptValue orderExtent[]{2}; in main() 80 SubscriptValue ss[2]{1 + (j % 8), 1 + (j / 8)}; in main()
|
| /llvm-project-15.0.7/flang/unittests/Runtime/ |
| H A D | ListInputTest.cpp | 45 SubscriptValue extent[]{numInputBuffers}; in TEST() 80 SubscriptValue extent[]{numBuffers}; in TEST() 117 SubscriptValue extent[]{numBuffers}; in TEST() 141 SubscriptValue extent[]{numBuffers}; in TEST() 164 SubscriptValue extent[]{numBuffers}; in TEST_P()
|
| H A D | Reduction.cpp | 496 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(0), 1); in TEST() 497 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(1), 1); in TEST() 506 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(0), 2); in TEST() 507 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(1), 1); in TEST() 517 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(0), 2); in TEST() 518 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(1), 3); in TEST() 528 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(0), 0); in TEST() 529 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(1), 0); in TEST() 541 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(0), 1); in TEST() 542 EXPECT_EQ(*res.ZeroBasedIndexedElement<SubscriptValue>(1), 2); in TEST() [all …]
|
| H A D | Random.cpp | 22 SubscriptValue extent[1]{n}; in TEST() 52 SubscriptValue extent[1]{1}; in TEST()
|
| H A D | MiscIntrinsic.cpp | 40 SubscriptValue extent[1]{1}; in TEST() 60 SubscriptValue extent[1]{1}; in TEST()
|