Home
last modified time | relevance | path

Searched refs:MaybeExpr (Results 1 – 14 of 14) sorted by relevance

/external/llvm-project/flang/include/flang/Semantics/
Dexpression.h104 using MaybeExpr = std::optional<Expr<SomeType>>;
156 MaybeExpr Analyze(const parser::Expr &);
157 MaybeExpr Analyze(const parser::Variable &);
158 MaybeExpr Analyze(const parser::Designator &);
159 MaybeExpr Analyze(const parser::DataStmtValue &);
161 template <typename A> MaybeExpr Analyze(const common::Indirection<A> &x) { in Analyze()
164 template <typename A> MaybeExpr Analyze(const std::optional<A> &x) { in Analyze()
173 template <typename A> MaybeExpr Analyze(const parser::Scalar<A> &x) { in Analyze()
185 template <typename A> MaybeExpr Analyze(const parser::Constant<A> &x) { in Analyze()
202 template <typename A> MaybeExpr Analyze(const parser::Integer<A> &x) { in Analyze()
[all …]
Dsymbol.h70 MaybeExpr bindName() const { return bindName_; } in bindName()
71 void set_bindName(MaybeExpr &&expr) { bindName_ = std::move(expr); } in set_bindName()
83 const MaybeExpr &stmtFunction() const { return stmtFunction_; } in stmtFunction()
88 MaybeExpr bindName_;
92 MaybeExpr stmtFunction_;
129 MaybeExpr bindName() const { return bindName_; } in bindName()
130 void set_bindName(MaybeExpr &&expr) { bindName_ = std::move(expr); } in set_bindName()
136 MaybeExpr bindName_;
150 const MaybeExpr &expr() const { return expr_; } in expr()
155 MaybeExpr expr_;
[all …]
Dtype.h43 using MaybeExpr = std::optional<SomeExpr>; variable
/external/llvm-project/flang/lib/Semantics/
Dexpression.cpp32 using MaybeExpr = typedef
137 MaybeExpr TryDefinedOp(
140 MaybeExpr TryDefinedOp(E opr, parser::MessageFixedText &&msg) { in TryDefinedOp()
151 MaybeExpr TryDefinedOp(
153 MaybeExpr TryBoundOp(const Symbol &, int passIndex);
155 MaybeExpr AnalyzeExprOrWholeAssumedSizeArray(const parser::Expr &);
179 MaybeExpr ExpressionAnalyzer::Designate(DataRef &&ref) { in Designate()
207 MaybeExpr ExpressionAnalyzer::CompleteSubscripts(ArrayRef &&ref) { in CompleteSubscripts()
254 MaybeExpr ExpressionAnalyzer::ApplySubscripts( in ApplySubscripts()
268 [&](auto &&) -> MaybeExpr { in ApplySubscripts()
[all …]
Dcheck-nullify.cpp44 if (MaybeExpr checked{analyzer.Analyze(structureComponent)}) { in Leave()
Dcheck-deallocate.cpp38 if (MaybeExpr checked{analyzer.Analyze(structureComponent)}) { in Leave()
Dmod-file.cpp54 static void PutInit(llvm::raw_ostream &, const Symbol &, const MaybeExpr &);
58 const MaybeExpr & = std::nullopt, std::string before = ","s,
570 llvm::raw_ostream &os, const Symbol &symbol, const MaybeExpr &init) { in PutInit()
601 MaybeExpr bindName; in PutEntity()
616 const MaybeExpr &bindName, std::string before, std::string after) { in PutAttrs()
Dresolve-names-utils.h55 if (MaybeExpr maybeExpr{ in EvaluateIntExpr()
Dresolve-names-utils.cpp319 if (MaybeExpr maybeExpr{AnalyzeExpr(context_, x.v)}) { in GetBound()
597 MaybeExpr expr{ in CheckArrayBound()
621 MaybeExpr expr{ in CheckSubstringBound()
Dcheck-data.cpp176 if (MaybeExpr expr{exprAnalyzer_.Analyze(*designator)}) { in Leave()
Dtype.cpp243 if (MaybeExpr & init{object->init()}) { in Instantiate()
342 if (MaybeExpr & init{details->init()}) { in InstantiateComponent()
Dresolve-names.cpp181 template <typename T> MaybeExpr EvaluateExpr(const T &expr) { in EvaluateExpr()
186 MaybeExpr EvaluateNonPointerInitializer( in EvaluateNonPointerInitializer()
305 MaybeExpr bindName_; // from BIND(C, NAME="...")
1068 Selector(const SourceName &source, MaybeExpr &&expr) in Selector()
1072 MaybeExpr expr;
5326 const MaybeExpr *pexpr{&details.expr()}; in SetTypeFromAssociation()
5743 if (MaybeExpr expr{EvaluateExpr(target)}) { in PointerInitialization()
5797 if (MaybeExpr value{EvaluateExpr(expr)}) { in NonPointerInitialization()
5800 } else if (MaybeExpr folded{EvaluateNonPointerInitializer( in NonPointerInitialization()
6548 if (const MaybeExpr & init{origDetails.init()}) { in FinishDerivedTypeInstantiation()
[all …]
Druntime-type-info.cpp518 dtObject.get<ObjectEntityDetails>().set_init(MaybeExpr{ in DescribeType()
855 MaybeExpr which; in DescribeSpecialProc()
Dcheck-declarations.cpp1669 MaybeExpr bindName1{details1.bindName()}; in Check()
1670 MaybeExpr bindName2{details2.bindName()}; in Check()