Home
last modified time | relevance | path

Searched refs:ExtentExpr (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/flang/lib/Evaluate/
Dshape.cpp48 result.emplace_back(MaybeExtentExpr{ExtentExpr{extent}}); in AsShape()
53 std::optional<Shape> AsShape(FoldingContext &context, ExtentExpr &&arrayExpr) { in AsShape()
62 if (auto *expr{std::get_if<ExtentExpr>(&value.u)}) { in AsShape()
75 std::optional<ExtentExpr> AsExtentArrayExpr(const Shape &shape) { in AsExtentArrayExpr()
84 return ExtentExpr{ArrayConstructor<ExtentType>{std::move(values)}}; in AsExtentArrayExpr()
124 static ExtentExpr ComputeTripCount(FoldingContext &context, ExtentExpr &&lower, in ComputeTripCount()
125 ExtentExpr &&upper, ExtentExpr &&stride) { in ComputeTripCount()
126 ExtentExpr strideCopy{common::Clone(stride)}; in ComputeTripCount()
127 ExtentExpr span{ in ComputeTripCount()
130 ExtentExpr extent{ in ComputeTripCount()
[all …]
Dfold-designator.cpp108 triplet.lower().value_or(ExtentExpr{lower})))}; in FoldDesignator()
110 triplet.upper().value_or(ExtentExpr{upper})))}; in FoldDesignator()
237 subscripts.emplace_back(ExtentExpr{(*lower)[dim] + remainder}); in OffsetToArrayRef()
241 subscripts.emplace_back(ExtentExpr{(*lower)[rank - 1] + at}); in OffsetToArrayRef()
Dfold-integer.cpp107 ubounds.back() = ExtentExpr{-1}; in UBOUND()
583 ExtentExpr product{1}; in FoldIntrinsicFunction()
/external/llvm-project/flang/include/flang/Evaluate/
Dshape.h33 using ExtentExpr = Expr<ExtentType>; variable
34 using MaybeExtentExpr = std::optional<ExtentExpr>;
42 std::optional<Shape> AsShape(FoldingContext &, ExtentExpr &&);
44 std::optional<ExtentExpr> AsExtentArrayExpr(const Shape &);
61 ExtentExpr GetLowerBound(FoldingContext &, const NamedEntity &, int dimension);
65 FoldingContext &, ExtentExpr &&lower, MaybeExtentExpr &&extent);
73 ExtentExpr CountTrips(FoldingContext &, ExtentExpr &&lower, ExtentExpr &&upper,
74 ExtentExpr &&stride);
75 ExtentExpr CountTrips(FoldingContext &, const ExtentExpr &lower,
76 const ExtentExpr &upper, const ExtentExpr &stride);
[all …]
/external/llvm-project/flang/lib/Semantics/
Dpointer-assignment.cpp328 evaluate::ExtentExpr lhsSizeExpr{1}; in CheckPointerBounds()
332 evaluate::ExtentExpr{1}); in CheckPointerBounds()
Druntime-type-info.cpp227 return evaluate::AsGenericExpr(evaluate::ExtentExpr{n}); in IntToExpr()