| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | expr-parsers.cpp | 118 std::function<Expr(Expr &&)> power{[&result](Expr &&right) { in Parse() 141 std::function<Expr(Expr &&)> divide{[&result](Expr &&right) { in Parse() 175 std::function<Expr(Expr &&)> add{[&result](Expr &&right) { in Parse() 205 std::function<Expr(Expr &&)> concat{[&result](Expr &&right) { in Parse() 231 std::function<Expr(Expr &&)> lt{[&result](Expr &&right) { in Parse() 234 std::function<Expr(Expr &&)> le{[&result](Expr &&right) { in Parse() 237 std::function<Expr(Expr &&)> eq{[&result](Expr &&right) { in Parse() 240 std::function<Expr(Expr &&)> ne{[&result](Expr &&right) { in Parse() 243 std::function<Expr(Expr &&)> ge{[&result](Expr &&right) { in Parse() 246 std::function<Expr(Expr &&)> gt{[&result](Expr &&right) { in Parse() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprClassification.cpp | 24 using Cl = Expr::Classification; 121 case Expr::ObjCIsaExprClass: in ClassifyInternal() 138 case Expr::TypoExprClass: in ClassifyInternal() 162 case Expr::CXXNewExprClass: in ClassifyInternal() 177 case Expr::BlockExprClass: in ClassifyInternal() 195 case Expr::AsTypeExprClass: in ClassifyInternal() 197 case Expr::AtomicExprClass: in ClassifyInternal() 201 case Expr::NoInitExprClass: in ClassifyInternal() 300 case Expr::ParenExprClass: in ClassifyInternal() 318 case Expr::CallExprClass: in ClassifyInternal() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 61 def DeclRefExpr : StmtNode<Expr>; 68 def ParenExpr : StmtNode<Expr>; 76 def CallExpr : StmtNode<Expr>; 77 def MemberExpr : StmtNode<Expr>; 78 def CastExpr : StmtNode<Expr, 1>; 94 def NoInitExpr : StmtNode<Expr>; 98 def VAArgExpr : StmtNode<Expr>; 108 def AtomicExpr : StmtNode<Expr>; 112 def StmtExpr : StmtNode<Expr>; 113 def ChooseExpr : StmtNode<Expr>; [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NarrowingConversionsCheck.h | 35 const Expr &Rhs); 38 const Expr &Rhs); 44 const Expr &Lhs, const Expr &Rhs, 49 const Expr &Rhs); 52 const Expr &Rhs); 56 const Expr &Rhs); 59 const Expr &Lhs, const Expr &Rhs); 63 const Expr &Rhs); 75 const Expr &Rhs); 82 const Expr &Lhs, const Expr &Rhs); [all …]
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ExprOpenMP.h | 64 OMPArraySectionExpr(Expr *Base, Expr *LowerBound, Expr *Length, Expr *Stride, in OMPArraySectionExpr() 85 Expr *getBase() { return cast<Expr>(SubExprs[BASE]); } in getBase() 86 const Expr *getBase() const { return cast<Expr>(SubExprs[BASE]); } in getBase() 94 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); } in getLowerBound() 102 Expr *getLength() { return cast_or_null<Expr>(SubExprs[LENGTH]); } in getLength() 103 const Expr *getLength() const { return cast_or_null<Expr>(SubExprs[LENGTH]); } in getLength() 108 Expr *getStride() { return cast_or_null<Expr>(SubExprs[STRIDE]); } in getStride() 147 : public Expr, 169 void setBase(Expr *Op) { getTrailingObjects<Expr *>()[NumDims] = Op; } in setBase() 214 Expr *getBase() { return getTrailingObjects<Expr *>()[NumDims]; } in getBase() [all …]
|
| H A D | IgnoreExpr.h | 23 inline Expr *IgnoreExprNodesImpl(Expr *E) { return E; } in IgnoreExprNodesImpl() 43 const Expr *IgnoreExprNodes(const Expr *E, FnTys &&...Fns) { in IgnoreExprNodes() 47 inline Expr *IgnoreImplicitCastsSingleStep(Expr *E) { in IgnoreImplicitCastsSingleStep() 57 inline Expr *IgnoreImplicitCastsExtraSingleStep(Expr *E) { in IgnoreImplicitCastsExtraSingleStep() 74 inline Expr *IgnoreCastsSingleStep(Expr *E) { in IgnoreCastsSingleStep() 90 inline Expr *IgnoreLValueCastsSingleStep(Expr *E) { in IgnoreLValueCastsSingleStep() 100 inline Expr *IgnoreBaseCastsSingleStep(Expr *E) { in IgnoreBaseCastsSingleStep() 110 inline Expr *IgnoreImplicitSingleStep(Expr *E) { in IgnoreImplicitSingleStep() 136 inline Expr *IgnoreImplicitAsWrittenSingleStep(Expr *E) { in IgnoreImplicitAsWrittenSingleStep() 143 inline Expr *IgnoreParensOnlySingleStep(Expr *E) { in IgnoreParensOnlySingleStep() [all …]
|
| H A D | Expr.h | 78 Expr *RHS; 114 Expr(const Expr&) = delete; 115 Expr(Expr &&) = delete; 116 Expr &operator=(const Expr&) = delete; 117 Expr &operator=(Expr&&) = delete; 1731 Expr *getSubExpr() { return cast<Expr>(Val); } in getSubExpr() 2728 MatrixSubscriptExpr(Expr *Base, Expr *RowIdx, Expr *ColumnIdx, QualType T, in MatrixSubscriptExpr() 3525 Expr *getSubExpr() { return cast<Expr>(Op); } in getSubExpr() 4221 Expr *cond, Expr *lhs, Expr *rhs, in BinaryConditionalOperator() 4530 ChooseExpr(SourceLocation BLoc, Expr *cond, Expr *lhs, Expr *rhs, QualType t, in ChooseExpr() [all …]
|
| H A D | ExprCXX.h | 181 CXXMemberCallExpr(Expr *Fn, ArrayRef<Expr *> Args, QualType Ty, 302 Expr *getSemanticForm() { return cast<Expr>(SemanticForm); } in getSemanticForm() 807 Expr *getSubExpr() { return static_cast<Expr*>(SubExpr); } in getSubExpr() 1022 Expr *getIdx() { return cast<Expr>(SubExprs[IDX_EXPR]); } in getIdx() 1435 Expr *getSubExpr() { return cast<Expr>(SubExpr); } in getSubExpr() 2456 Expr *getArgument() { return cast<Expr>(Argument); } in getArgument() 2577 Expr *getBase() const { return cast<Expr>(Base); } in getBase() 4708 Expr *Common, Expr *Ready, Expr *Suspend, Expr *Resume, in CoroutineSuspendExpr() 4722 Expr *Operand, Expr *Common) in CoroutineSuspendExpr() 4794 Expr *Ready, Expr *Suspend, Expr *Resume, [all …]
|
| H A D | ExprObjC.h | 144 Expr *getSubExpr() { return cast<Expr>(SubExpr); } in getSubExpr() 145 const Expr *getSubExpr() const { return cast<Expr>(SubExpr); } in getSubExpr() 221 Expr **getElements() { return getTrailingObjects<Expr *>(); } in getElements() 265 Expr *Key; 268 Expr *Value; 287 Expr *Key; 288 Expr *Value; 580 const Expr *getBase() const { return cast<Expr>(Base); } in getBase() 581 Expr *getBase() { return cast<Expr>(Base); } in getBase() 1507 Expr *getBase() const { return cast<Expr>(Base); } in getBase() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | LookupTest.cpp | 22 bool VisitCallExpr(CallExpr *Expr) { in VisitCallExpr() 24 OnCall(Expr); in VisitCallExpr() 60 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 66 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 72 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 78 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 85 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 91 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 97 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 102 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument [all …]
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | TildeExpressionResolver.cpp | 33 StringRef Expr, SmallVectorImpl<char> &Output) { in ResolveExact() argument 37 assert(Expr.empty() || Expr[0] == '~'); in ResolveExact() 39 return !fs::real_path(Expr, Output, true); in ResolveExact() 47 assert(Expr.empty() || Expr[0] == '~'); in ResolvePartial() 53 if (Expr.empty()) in ResolvePartial() 59 Expr = Expr.drop_front(); in ResolvePartial() 63 if (!ThisName.startswith(Expr)) in ResolvePartial() 78 if (!Expr.startswith("~")) { in ResolveFullPath() 79 Output.assign(Expr.begin(), Expr.end()); in ResolveFullPath() 88 Output.assign(Expr.begin(), Expr.end()); in ResolveFullPath() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Evaluate/ |
| H A D | tools.h | 116 template <typename T> Expr<T> AsExpr(Expr<T> &&x) { in AsExpr() 148 Expr<SomeType> Parenthesize(Expr<SomeType> &&); 476 Expr<TO> ConvertToType(Expr<SomeKind<FROMCAT>> &&x) { in ConvertToType() 606 Expr<SomeKind<CAT>> &&x, Expr<SomeKind<CAT>> &&y) { in AsSameKindExprs() 656 Expr<SPECIFIC> Combine(Expr<SPECIFIC> &&x, Expr<SPECIFIC> &&y) { in Combine() 744 Expr<Type<C, K>> operator-(Expr<Type<C, K>> &&x) { 749 Expr<Type<C, K>> operator+(Expr<Type<C, K>> &&x, Expr<Type<C, K>> &&y) { 754 Expr<Type<C, K>> operator-(Expr<Type<C, K>> &&x, Expr<Type<C, K>> &&y) { 759 Expr<Type<C, K>> operator*(Expr<Type<C, K>> &&x, Expr<Type<C, K>> &&y) { 764 Expr<Type<C, K>> operator/(Expr<Type<C, K>> &&x, Expr<Type<C, K>> &&y) { [all …]
|
| H A D | check-expression.h | 32 extern template bool IsConstantExpr(const Expr<SomeType> &); 33 extern template bool IsConstantExpr(const Expr<SomeInteger> &); 34 extern template bool IsConstantExpr(const Expr<SubscriptInteger> &); 42 extern template bool IsScopeInvariantExpr(const Expr<SomeType> &); 43 extern template bool IsScopeInvariantExpr(const Expr<SomeInteger> &); 50 extern template bool IsActuallyConstant(const Expr<SomeType> &); 51 extern template bool IsActuallyConstant(const Expr<SomeInteger> &); 63 bool IsInitialProcedureTarget(const Expr<SomeType> &); 70 Expr<SomeType> &&, FoldingContext &, 99 const Expr<SomeType> &, FoldingContext &); [all …]
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | IslExprBuilder.cpp | 188 isl_ast_expr_free(Expr); in createOpUnary() 230 isl_ast_expr_free(Expr); in createOpNAry() 342 isl_ast_expr_free(Expr); in createAccessAddress() 456 isl_ast_expr_free(Expr); in createOpBin() 483 isl_ast_expr_free(Expr); in createOpSelect() 543 isl_ast_expr_free(Expr); in createOpICmp() 590 isl_ast_expr_free(Expr); in createOpBoolean() 649 isl_ast_expr_free(Expr); in createOpBooleanConditional() 712 isl_ast_expr_free(Expr); in createOpAddressOf() 738 isl_ast_expr_free(Expr); in createId() [all …]
|
| /llvm-project-15.0.7/llvm/lib/TableGen/ |
| H A D | SetTheory.cpp | 41 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply() 49 if (Expr->arg_size() < 2) in apply() 51 Expr->getAsString()); in apply() 54 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply() 65 if (Expr->arg_size() != 2) in apply() 67 Expr->getAsString()); in apply() 84 if (Expr->arg_size() != 2) in apply() 86 Expr->getAsString()); in apply() 92 Expr->getAsString()); in apply() 103 Expr->getAsString()); in apply2() [all …]
|
| /llvm-project-15.0.7/polly/lib/Support/ |
| H A D | SCEVAffinator.cpp | 128 return visit(Expr); in getPwAff() 225 if (computeModuloForExpr(Expr)) in visit() 270 return visit(Expr->getOperand(0)); in visitPtrToIntExpr() 279 auto *Op = Expr->getOperand(); in visitTruncateExpr() 284 if (computeModuloForExpr(Expr)) in visitTruncateExpr() 352 auto *Op = Expr->getOperand(); in visitZeroExtendExpr() 370 return visit(Expr->getOperand()); in visitSignExtendExpr() 403 if (Expr->getStart()->isZero()) { in visitAddRecExpr() 428 Expr->getStepRecurrence(SE), Expr->getLoop(), Flags); in visitAddRecExpr() 481 auto *Dividend = Expr->getLHS(); in visitUDivExpr() [all …]
|
| H A D | SCEVValidator.cpp | 59 Parameters.insert(Expr); in ValidatorResult() 157 return visitZeroExtendOrTruncateExpr(Expr, Expr->getOperand()); in visitTruncateExpr() 161 return visitZeroExtendOrTruncateExpr(Expr, Expr->getOperand()); in visitZeroExtendExpr() 265 Expr->getStepRecurrence(SE), Expr->getLoop(), Expr->getNoWrapFlags()); in visitAddRecExpr() 430 if (!Expr->getType()->isIntegerTy() && !Expr->getType()->isPointerTy()) { in visitUnknown() 538 ST.visitAll(Expr); in findLoops() 580 ST.visitAll(Expr); in findValues() 588 ST.visitAll(Expr); in hasScalarDepsInsideRegion() 737 return Expr; in tryForwardThroughPHI() 746 return Expr; in tryForwardThroughPHI() [all …]
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | tools.cpp | 42 Expr<SomeType> Parenthesize(Expr<SomeType> &&expr) { in Parenthesize() 192 Expr<SomeReal> &&rx, Expr<SomeInteger> &&iy) { in MixedRealLeft() 377 [](Expr<SomeReal> &&rx, Expr<SomeReal> &&ry) { in NumericOperation() 382 [](Expr<SomeReal> &&rx, Expr<SomeInteger> &&iy) { in NumericOperation() 385 [](Expr<SomeInteger> &&ix, Expr<SomeReal> &&ry) { in NumericOperation() 404 [&](Expr<SomeComplex> &&zx, Expr<SomeReal> &&ry) { in NumericOperation() 412 [&](Expr<SomeReal> &&rx, Expr<SomeComplex> &&zy) { in NumericOperation() 503 Expr<SomeLogical> LogicalNegation(Expr<SomeLogical> &&x) { in LogicalNegation() 531 [&](Expr<SomeReal> &&rx, Expr<SomeInteger> &&iy) { in Relate() 535 [&](Expr<SomeInteger> &&ix, Expr<SomeReal> &&ry) { in Relate() [all …]
|
| H A D | fold-implementation.h | 1373 std::function<Expr<RESULT>(Expr<LEFT> &&, Expr<RIGHT> &&)> &&f, in MapOperation() 1414 std::function<Expr<RESULT>(Expr<LEFT> &&, Expr<RIGHT> &&)> &&f, in MapOperation() 1431 std::function<Expr<RESULT>(Expr<LEFT> &&, Expr<RIGHT> &&)> &&f, in MapOperation() 1476 std::function<Expr<RESULT>(Expr<OPERAND> &&)> &&f) 1495 std::function<Expr<RESULT>(Expr<OPERAND> &&)>{ 1504 std::function<Expr<RESULT>(Expr<LEFT> &&, Expr<RIGHT> &&)> &&f) 1552 std::function<Expr<RESULT>(Expr<LEFT> &&, Expr<RIGHT> &&)>{ 1553 [](Expr<LEFT> &&left, Expr<RIGHT> &&right) { 1736 const Expr<LEFT> &x, const Expr<RIGHT> &y) { in OperandsAreConstants() 1946 std::function<Expr<T>(Expr<T> &&, Expr<T> &&)>{[=](Expr<T> &&l, in FoldOperation() [all …]
|
| H A D | fold-logical.cpp | 41 return Expr<T>{std::move(ref)}; in FoldAllAny() 71 return gotConstant ? Expr<T>{false} : Expr<T>{std::move(funcRef)}; in FoldIntrinsicFunction() 151 return Expr<T>{*result}; in FoldIntrinsicFunction() 182 return Expr<T>{true}; in FoldIntrinsicFunction() 214 return Expr<T>{*result}; in FoldIntrinsicFunction() 229 return Expr<T>{true}; in FoldIntrinsicFunction() 241 std::function<Expr<LogicalResult>(Expr<T> &&, Expr<T> &&)>{ in FoldOperation() 242 [=](Expr<T> &&x, Expr<T> &&y) { in FoldOperation() 288 return Expr<Ty>{x}; in FoldOperation() 296 std::function<Expr<LOGICAL>(Expr<LOGICAL> &&, Expr<LOGICAL> &&)>{ in FoldOperation() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Transformer/ |
| H A D | SourceCodeBuilders.cpp | 22 const Expr *tooling::reallyIgnoreImplicit(const Expr &E) { in reallyIgnoreImplicit() 23 const Expr *Expr = E.IgnoreImplicit(); in reallyIgnoreImplicit() local 24 if (const auto *CE = dyn_cast<CXXConstructExpr>(Expr)) { in reallyIgnoreImplicit() 29 return Expr; in reallyIgnoreImplicit() 32 bool tooling::mayEverNeedParens(const Expr &E) { in mayEverNeedParens() 33 const Expr *Expr = reallyIgnoreImplicit(E); in mayEverNeedParens() local 36 if (isa<UnaryOperator>(Expr) || isa<BinaryOperator>(Expr) || in mayEverNeedParens() 37 isa<AbstractConditionalOperator>(Expr)) in mayEverNeedParens() 53 const Expr *Expr = reallyIgnoreImplicit(E); in needParensAfterUnaryOperator() local 54 if (isa<BinaryOperator>(Expr) || isa<AbstractConditionalOperator>(Expr)) in needParensAfterUnaryOperator() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldChecker.cpp | 39 Expr = Expr.trim(); in evaluate() 115 if (Expr.empty()) in getTokenForError() 119 if (isalpha(Expr[0])) in getTokenForError() 125 if (Expr.startswith("<<") || Expr.startswith(">>")) in getTokenForError() 156 if (Expr.empty()) in parseBinOpToken() 167 switch (Expr[0]) { in parseBinOpToken() 226 return std::make_pair(unexpectedToken(Expr, Expr, "expected '('"), ""); in evalDecodeOperand() 314 return std::make_pair(unexpectedToken(Expr, Expr, "expected '('"), ""); in evalNextPC() 575 if (Expr.empty()) in evalSimpleExpr() 582 else if (isalpha(Expr[0]) || Expr[0] == '_') in evalSimpleExpr() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExceptionSpec.cpp | 1157 case Expr::CallExprClass: in canThrow() 1272 case Expr::CoawaitExprClass: in canThrow() 1283 case Expr::MemberExprClass: in canThrow() 1286 case Expr::ParenExprClass: in canThrow() 1289 case Expr::StmtExprClass: in canThrow() 1291 case Expr::VAArgExprClass: in canThrow() 1354 case Expr::AsTypeExprClass: in canThrow() 1356 case Expr::BlockExprClass: in canThrow() 1372 case Expr::TypoExprClass: in canThrow() 1378 case Expr::AtomicExprClass: in canThrow() [all …]
|
| H A D | SemaFixItUtils.cpp | 65 const Expr* Expr = FullExpr->IgnoreImpCasts(); in tryToFixConversion() local 69 isa<CallExpr>(Expr) || in tryToFixConversion() 70 isa<DeclRefExpr>(Expr) || in tryToFixConversion() 71 isa<CastExpr>(Expr) || in tryToFixConversion() 72 isa<CXXNewExpr>(Expr) || in tryToFixConversion() 74 isa<CXXDeleteExpr>(Expr) || in tryToFixConversion() 78 isa<CXXThisExpr>(Expr) || in tryToFixConversion() 79 isa<CXXTypeidExpr>(Expr) || in tryToFixConversion() 84 isa<MemberExpr>(Expr) || in tryToFixConversion() 88 isa<UnaryOperator>(Expr)) in tryToFixConversion() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/ |
| H A D | Nodes.h | 25 class Expr; variable 244 Expr *rootOp; 336 Expr *resultExpr; 344 class Expr : public Stmt { 410 Expr *callable; 463 const Expr *parentExpr; 719 Expr *typeExpr; 794 Expr *typeExpr; 817 Expr *typeExpr; 961 Expr *value; [all …]
|