Home
last modified time | relevance | path

Searched refs:ShapeSpec (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/flang/include/flang/Semantics/
H A Dtype.h176 class ShapeSpec {
187 static ShapeSpec MakeAssumedShape() { in MakeAssumedShape()
195 static ShapeSpec MakeDeferred() { in MakeDeferred()
199 static ShapeSpec MakeImplied() { return ShapeSpec(Bound{1}, Bound::Star()); } in MakeImplied()
201 static ShapeSpec MakeImplied(Bound &&lb) { in MakeImplied()
205 static ShapeSpec MakeAssumedRank() { in MakeAssumedRank()
209 ShapeSpec(const ShapeSpec &) = default;
210 ShapeSpec(ShapeSpec &&) = default;
211 ShapeSpec &operator=(const ShapeSpec &) = default;
212 ShapeSpec &operator=(ShapeSpec &&) = default;
[all …]
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DBoxAnalyzer.h130 llvm::SmallVectorImpl<const Fortran::semantics::ShapeSpec *> &&bounds) in DynamicBound()
136 return llvm::all_of(bounds, [](const Fortran::semantics::ShapeSpec *p) { in lboundAllOnes()
144 llvm::SmallVector<const Fortran::semantics::ShapeSpec *> bounds;
151 llvm::SmallVectorImpl<const Fortran::semantics::ShapeSpec *> &&bounds) in DynamicArray()
193 llvm::SmallVectorImpl<const Fortran::semantics::ShapeSpec *> &&bounds) in DynamicArrayStaticChar()
206 llvm::SmallVectorImpl<const Fortran::semantics::ShapeSpec *> &&bounds) in DynamicArrayDynamicChar()
210 llvm::SmallVectorImpl<const Fortran::semantics::ShapeSpec *> &&bounds) in DynamicArrayDynamicChar()
372 llvm::ArrayRef<const Fortran::semantics::ShapeSpec *> dynamicBound() const { in dynamicBound()
373 using A = llvm::ArrayRef<const Fortran::semantics::ShapeSpec *>; in dynamicBound()
388 llvm::SmallVector<const Fortran::semantics::ShapeSpec *> bounds; in analyze()
[all …]
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dresolve-names-utils.cpp308 arraySpec_.push_back(ShapeSpec::MakeAssumedShape(GetBound(x.v))); in Analyze()
321 arraySpec_.push_back(ShapeSpec::MakeAssumedRank()); in Analyze()
327 arraySpec_.push_back(ShapeSpec::MakeExplicit(GetBound(lb), GetBound(ub))); in MakeExplicit()
331 arraySpec_.push_back(ShapeSpec::MakeImplied(GetBound(lb))); in MakeImplied()
335 arraySpec_.push_back(ShapeSpec::MakeDeferred()); in MakeDeferred()
382 for (const ShapeSpec &spec : symbol.get<ObjectEntityDetails>().shape()) { in AddToSet()
H A Dtype.cpp425 for (ShapeSpec &dim : details->shape()) { in InstantiateComponent()
433 for (ShapeSpec &dim : details->coshape()) { in InstantiateComponent()
620 llvm::raw_ostream &operator<<(llvm::raw_ostream &o, const ShapeSpec &x) { in operator <<()
H A Dmod-file.cpp53 static void PutShapeSpec(llvm::raw_ostream &, const ShapeSpec &);
627 void PutShapeSpec(llvm::raw_ostream &os, const ShapeSpec &x) { in PutShapeSpec()
1155 for (const ShapeSpec &spec : details.shape()) { in DoSymbol()
1159 for (const ShapeSpec &spec : details.coshape()) { in DoSymbol()
H A Druntime-type-info.cpp277 arraySpec.push_back(ShapeSpec::MakeExplicit(Bound{0}, Bound{elements - 1})); in SaveNumericPointerTarget()
311 arraySpec.push_back(ShapeSpec::MakeExplicit(Bound{0}, Bound{n - 1})); in SaveDerivedPointerTarget()
H A Ddata-to-inits.cpp766 arraySpec.emplace_back(ShapeSpec::MakeExplicit(Bound{ in CombineEquivalencedInitialization()
H A Dtools.cpp1506 result.emplace_back(ShapeSpec::MakeExplicit(Bound{extent})); in ToArraySpec()
H A Dcheck-declarations.cpp42 void Check(const ShapeSpec &spec) { in Check()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dshape.cpp253 const semantics::ShapeSpec &shapeSpec{details->shape()[dimension_]}; in GetLowerBound()
404 const semantics::ShapeSpec &shapeSpec) { in GetNonNegativeExtent()
566 FoldingContext *context, const semantics::ShapeSpec &shapeSpec) { in GetExplicitUBOUND()
589 const semantics::ShapeSpec &shapeSpec{details->shape()[dimension]}; in GetUBOUND()
H A Dtype.cpp40 for (const ShapeSpec &shapeSpec : details.shape()) { in IsDescriptor()
H A Dtools.cpp1337 for (const ShapeSpec &dim : object->shape()) { in IsAutomatic()
/llvm-project-15.0.7/flang/lib/Lower/
H A DConvertType.cpp277 for (const Fortran::semantics::ShapeSpec &bounds : objDetails->shape()) in componentHasNonDefaultLowerBounds()
H A DPFTBuilder.cpp1453 for (const semantics::ShapeSpec &subs : details->shape()) { in analyze()
1458 for (const semantics::ShapeSpec &subs : details->coshape()) { in analyze()
1822 for (const Fortran::semantics::ShapeSpec &shapeSpec : in visitSymbol()
H A DCallInterface.cpp237 getExtentExpr(const Fortran::semantics::ShapeSpec &shapeSpec) { in getExtentExpr()
256 for (const Fortran::semantics::ShapeSpec &shapeSpec : in walkResultExtents()
H A DConvertVariable.cpp1129 for (const Fortran::semantics::ShapeSpec *spec : box.dynamicBound()) { in lowerExplicitLowerBounds()