/external/llvm-project/flang/lib/Parser/ |
D | expr-parsers.cpp | 70 first(construct<Expr>(indirect(Parser<CharLiteralConstantSubstring>{})), 71 construct<Expr>(literalConstant), 72 construct<Expr>(construct<Expr::Parentheses>(parenthesized(expr))), 73 construct<Expr>(indirect(functionReference) / !"("_tok), 74 construct<Expr>(designator / !"("_tok), 75 construct<Expr>(Parser<StructureConstructor>{}), 76 construct<Expr>(Parser<ArrayConstructor>{}), 79 construct<Expr>(parenthesized( 80 construct<Expr::ComplexConstructor>(expr, "," >> expr)))), 81 extension<LanguageFeature::PercentLOC>(construct<Expr>("%LOC" >> [all …]
|
/external/llvm-project/clang/lib/AST/ |
D | ExprClassification.cpp | 24 using Cl = Expr::Classification; 26 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E); 32 const Expr *trueExpr, 33 const Expr *falseExpr); 34 static Cl::ModifiableType IsModifiable(ASTContext &Ctx, const Expr *E, 37 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const { in ClassifyImpl() 89 const Expr *E, in ClassifyExprValueKind() 102 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { in ClassifyInternal() 109 #define STMT(Kind, Base) case Expr::Kind##Class: in ClassifyInternal() 115 case Expr::ObjCIsaExprClass: in ClassifyInternal() [all …]
|
/external/clang/include/clang/Basic/ |
D | StmtNodes.td | 56 def Expr : Stmt<1>; 57 def PredefinedExpr : DStmt<Expr>; 58 def DeclRefExpr : DStmt<Expr>; 59 def IntegerLiteral : DStmt<Expr>; 60 def FloatingLiteral : DStmt<Expr>; 61 def ImaginaryLiteral : DStmt<Expr>; 62 def StringLiteral : DStmt<Expr>; 63 def CharacterLiteral : DStmt<Expr>; 64 def ParenExpr : DStmt<Expr>; 65 def UnaryOperator : DStmt<Expr>; [all …]
|
/external/clang/lib/AST/ |
D | ExprClassification.cpp | 24 typedef Expr::Classification Cl; 26 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E); 32 const Expr *trueExpr, 33 const Expr *falseExpr); 34 static Cl::ModifiableType IsModifiable(ASTContext &Ctx, const Expr *E, 37 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const { in ClassifyImpl() 89 const Expr *E, in ClassifyExprValueKind() 102 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { in ClassifyInternal() 109 #define STMT(Kind, Base) case Expr::Kind##Class: in ClassifyInternal() 115 case Expr::ObjCIsaExprClass: in ClassifyInternal() [all …]
|
/external/llvm-project/clang/include/clang/Basic/ |
D | StmtNodes.td | 58 def Expr : StmtNode<ValueStmt, 1>; 59 def PredefinedExpr : StmtNode<Expr>; 60 def DeclRefExpr : StmtNode<Expr>; 61 def IntegerLiteral : StmtNode<Expr>; 62 def FixedPointLiteral : StmtNode<Expr>; 63 def FloatingLiteral : StmtNode<Expr>; 64 def ImaginaryLiteral : StmtNode<Expr>; 65 def StringLiteral : StmtNode<Expr>; 66 def CharacterLiteral : StmtNode<Expr>; 67 def ParenExpr : StmtNode<Expr>; [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | NarrowingConversionsCheck.h | 34 void diagNarrowType(SourceLocation SourceLoc, const Expr &Lhs, 35 const Expr &Rhs); 37 void diagNarrowTypeToSignedInt(SourceLocation SourceLoc, const Expr &Lhs, 38 const Expr &Rhs); 40 void diagNarrowIntegerConstant(SourceLocation SourceLoc, const Expr &Lhs, 41 const Expr &Rhs, const llvm::APSInt &Value); 44 const Expr &Lhs, const Expr &Rhs, 48 void diagNarrowConstant(SourceLocation SourceLoc, const Expr &Lhs, 49 const Expr &Rhs); 51 void diagConstantCast(SourceLocation SourceLoc, const Expr &Lhs, [all …]
|
/external/llvm-project/clang/include/clang/AST/ |
D | ExprOpenMP.h | 56 class OMPArraySectionExpr : public Expr { 64 OMPArraySectionExpr(Expr *Base, Expr *LowerBound, Expr *Length, Expr *Stride, in OMPArraySectionExpr() 68 : Expr(OMPArraySectionExprClass, Type, VK, OK), in OMPArraySectionExpr() 80 : Expr(OMPArraySectionExprClass, Shell) {} in OMPArraySectionExpr() 85 Expr *getBase() { return cast<Expr>(SubExprs[BASE]); } in getBase() 86 const Expr *getBase() const { return cast<Expr>(SubExprs[BASE]); } in getBase() 88 void setBase(Expr *E) { SubExprs[BASE] = E; } in setBase() 91 static QualType getBaseOriginalType(const Expr *Base); 94 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); } in getLowerBound() 95 const Expr *getLowerBound() const { in getLowerBound() [all …]
|
D | IgnoreExpr.h | 23 inline Expr *IgnoreExprNodesImpl(Expr *E) { return E; } in IgnoreExprNodesImpl() 25 Expr *IgnoreExprNodesImpl(Expr *E, FnTy &&Fn, FnTys &&... Fns) { in IgnoreExprNodesImpl() 33 template <typename... FnTys> Expr *IgnoreExprNodes(Expr *E, FnTys &&... Fns) { in IgnoreExprNodes() 34 Expr *LastE = nullptr; in IgnoreExprNodes() 43 const Expr *IgnoreExprNodes(const Expr *E, FnTys &&...Fns) { in IgnoreExprNodes() 44 return const_cast<Expr *>(IgnoreExprNodes(E, std::forward<FnTys>(Fns)...)); in IgnoreExprNodes() 47 inline Expr *IgnoreImplicitCastsSingleStep(Expr *E) { in IgnoreImplicitCastsSingleStep() 57 inline Expr *IgnoreImplicitCastsExtraSingleStep(Expr *E) { in IgnoreImplicitCastsExtraSingleStep() 61 Expr *SubE = IgnoreImplicitCastsSingleStep(E); in IgnoreImplicitCastsExtraSingleStep() 74 inline Expr *IgnoreCastsSingleStep(Expr *E) { in IgnoreCastsSingleStep() [all …]
|
D | Expr.h | 78 Expr *RHS; 99 SubobjectAdjustment(const MemberPointerType *MPT, Expr *RHS) in SubobjectAdjustment() 109 class Expr : public ValueStmt { 113 Expr() = delete; 114 Expr(const Expr&) = delete; 115 Expr(Expr &&) = delete; 116 Expr &operator=(const Expr&) = delete; 117 Expr &operator=(Expr&&) = delete; 120 Expr(StmtClass SC, QualType T, ExprValueKind VK, ExprObjectKind OK) in Expr() function 130 explicit Expr(StmtClass SC, EmptyShell) : ValueStmt(SC) { } in Expr() function [all …]
|
/external/llvm-project/clang/unittests/Tooling/ |
D | LookupTest.cpp | 19 bool VisitCallExpr(CallExpr *Expr) { in VisitCallExpr() 21 OnCall(Expr); in VisitCallExpr() 42 auto replaceCallExpr = [&](const CallExpr *Expr, in TEST() 44 const auto *Callee = cast<DeclRefExpr>(Expr->getCallee()->IgnoreImplicit()); in TEST() 51 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 52 EXPECT_EQ("bar", replaceCallExpr(Expr, "::bar")); in TEST() 57 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 58 EXPECT_EQ("bar", replaceCallExpr(Expr, "::a::bar")); in TEST() 63 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 64 EXPECT_EQ("a::bar", replaceCallExpr(Expr, "::a::bar")); in TEST() [all …]
|
/external/clang/unittests/Tooling/ |
D | LookupTest.cpp | 19 bool VisitCallExpr(CallExpr *Expr) { in VisitCallExpr() 20 OnCall(Expr); in VisitCallExpr() 35 auto replaceCallExpr = [&](const CallExpr *Expr, in TEST() 37 const auto *Callee = cast<DeclRefExpr>(Expr->getCallee()->IgnoreImplicit()); in TEST() 44 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 45 EXPECT_EQ("bar", replaceCallExpr(Expr, "::bar")); in TEST() 50 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 51 EXPECT_EQ("bar", replaceCallExpr(Expr, "::a::bar")); in TEST() 56 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() argument 57 EXPECT_EQ("a::bar", replaceCallExpr(Expr, "::a::bar")); in TEST() [all …]
|
/external/llvm-project/flang/include/flang/Evaluate/ |
D | tools.h | 49 template <typename T> Result operator()(const Expr<T> &x) const { in operator() 85 template <typename T> bool IsAssumedRank(const Expr<T> &expr) { in IsAssumedRank() 95 template <typename A> common::IfNoLvalue<Expr<ResultType<A>>, A> AsExpr(A &&x) { in AsExpr() 96 return Expr<ResultType<A>>{std::move(x)}; in AsExpr() 99 template <typename T> Expr<T> AsExpr(Expr<T> &&x) { in AsExpr() 105 Expr<SomeKind<CATEGORY>> AsCategoryExpr(Expr<SomeKind<CATEGORY>> &&x) { in AsCategoryExpr() 110 common::IfNoLvalue<Expr<SomeType>, A> AsGenericExpr(A &&x) { in AsGenericExpr() 112 return Expr<SomeType>{std::move(x)}; in AsGenericExpr() 114 return Expr<SomeType>{AsCategoryExpr(std::move(x))}; in AsGenericExpr() 119 common::IfNoLvalue<Expr<SomeKind<ResultType<A>::category>>, A> AsCategoryExpr( in AsCategoryExpr() [all …]
|
/external/llvm-project/flang/lib/Evaluate/ |
D | tools.cpp | 22 Expr<SomeType> Parenthesize(Expr<SomeType> &&expr) { in Parenthesize() 27 std::is_same_v<T, Expr<SomeDerived>>) { in Parenthesize() 74 parser::ContextualMessages &messages, Expr<SomeType> &&x, in ConvertRealOperands() 75 Expr<SomeType> &&y, int defaultRealKind) { in ConvertRealOperands() 78 [&](Expr<SomeInteger> &&ix, in ConvertRealOperands() 79 Expr<SomeInteger> &&iy) -> ConvertRealOperandsResult { in ConvertRealOperands() 88 [&](Expr<SomeInteger> &&ix, in ConvertRealOperands() 89 Expr<SomeReal> &&ry) -> ConvertRealOperandsResult { in ConvertRealOperands() 93 [&](Expr<SomeReal> &&rx, in ConvertRealOperands() 94 Expr<SomeInteger> &&iy) -> ConvertRealOperandsResult { in ConvertRealOperands() [all …]
|
/external/llvm-project/lldb/source/Utility/ |
D | TildeExpressionResolver.cpp | 33 StringRef Expr, SmallVectorImpl<char> &Output) { in ResolveExact() argument 36 assert(!llvm::any_of(Expr, [](char c) { return path::is_separator(c); })); in ResolveExact() 37 assert(Expr.empty() || Expr[0] == '~'); in ResolveExact() 39 return !fs::real_path(Expr, Output, true); in ResolveExact() 42 bool StandardTildeExpressionResolver::ResolvePartial(StringRef Expr, in ResolvePartial() argument 46 assert(!llvm::any_of(Expr, [](char c) { return path::is_separator(c); })); in ResolvePartial() 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() [all …]
|
/external/apache-commons-bcel/src/examples/Mini/ |
D | Mini.bnf | 5 "FUN" Ident "=" Expr 7 Expr: 8 "(" Expr ")" 10 Expr AddOp Expr 12 Expr MultOp Expr 14 Expr CmpOp Expr 22 UnOp Expr 27 "IF" Expr "THEN" Expr ["ELSE" Expr] "FI" 30 Ident "(" [Expr ("," Expr)*] ")" 57 Expr: [all …]
|
/external/llvm-project/polly/lib/CodeGen/ |
D | IslExprBuilder.cpp | 73 bool IslExprBuilder::hasLargeInts(isl::ast_expr Expr) { in hasLargeInts() argument 74 enum isl_ast_expr_type Type = isl_ast_expr_get_type(Expr.get()); in hasLargeInts() 80 isl::val Val = Expr.get_val(); in hasLargeInts() 88 int NumArgs = isl_ast_expr_get_op_n_arg(Expr.get()); in hasLargeInts() 91 isl::ast_expr Operand = Expr.get_op_arg(i); in hasLargeInts() 173 Value *IslExprBuilder::createOpUnary(__isl_take isl_ast_expr *Expr) { in createOpUnary() argument 174 assert(isl_ast_expr_get_op_type(Expr) == isl_ast_op_minus && in createOpUnary() 178 Type *MaxType = getType(Expr); in createOpUnary() 182 V = create(isl_ast_expr_get_op_arg(Expr, 0)); in createOpUnary() 188 isl_ast_expr_free(Expr); in createOpUnary() [all …]
|
/external/clang/include/clang/AST/ |
D | Expr.h | 73 Expr *RHS; 94 SubobjectAdjustment(const MemberPointerType *MPT, Expr *RHS) in SubobjectAdjustment() 105 class Expr : public Stmt { 109 Expr(StmtClass SC, QualType T, ExprValueKind VK, ExprObjectKind OK, in Expr() function 123 explicit Expr(StmtClass SC, EmptyShell) : Stmt(SC) { } in Expr() function 230 bool isUnusedResultAWarning(const Expr *&WarnExpr, SourceLocation &Loc, 331 friend class Expr; 445 return const_cast<Expr*>(this)->getSourceBitField(); in getSourceBitField() 519 static bool isPotentialConstantExprUnevaluated(Expr *E, 529 const Expr **Culprit = nullptr) const; [all …]
|
D | ExprOpenMP.h | 45 class OMPArraySectionExpr : public Expr { 52 OMPArraySectionExpr(Expr *Base, Expr *LowerBound, Expr *Length, QualType Type, in OMPArraySectionExpr() 55 : Expr( in OMPArraySectionExpr() 77 : Expr(OMPArraySectionExprClass, Shell) {} in OMPArraySectionExpr() 82 Expr *getBase() { return cast<Expr>(SubExprs[BASE]); } in getBase() 83 const Expr *getBase() const { return cast<Expr>(SubExprs[BASE]); } in getBase() 85 void setBase(Expr *E) { SubExprs[BASE] = E; } in setBase() 88 static QualType getBaseOriginalType(const Expr *Base); 91 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); } in getLowerBound() 92 const Expr *getLowerBound() const { in getLowerBound() [all …]
|
/external/clang/lib/Sema/ |
D | SemaExceptionSpec.cpp | 803 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility() 871 static CanThrowResult canSubExprsThrow(Sema &S, const Expr *E) { in canSubExprsThrow() 874 R = mergeCanThrow(R, S.canThrow(cast<Expr>(SubStmt))); in canSubExprsThrow() 881 static CanThrowResult canCalleeThrow(Sema &S, const Expr *E, const Decl *D) { in canCalleeThrow() 933 Expr *Op = DC->getExprOperand(); in canTypeidThrow() 950 CanThrowResult Sema::canThrow(const Expr *E) { in canThrow() 955 case Expr::CXXThrowExprClass: in canThrow() 959 case Expr::CXXDynamicCastExprClass: { in canThrow() 968 case Expr::CXXTypeidExprClass: in canThrow() 976 case Expr::CallExprClass: in canThrow() [all …]
|
/external/llvm/lib/TableGen/ |
D | SetTheory.cpp | 30 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 32 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply() 38 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 40 if (Expr->arg_size() < 2) in apply() 42 Expr->getAsString()); in apply() 44 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply() 45 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply() 54 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 56 if (Expr->arg_size() != 2) in apply() 58 Expr->getAsString()); in apply() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/ |
D | SetTheory.cpp | 40 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 42 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply() 48 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 50 if (Expr->arg_size() < 2) in apply() 52 Expr->getAsString()); in apply() 54 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply() 55 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply() 64 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 66 if (Expr->arg_size() != 2) in apply() 68 Expr->getAsString()); in apply() [all …]
|
/external/llvm-project/llvm/lib/TableGen/ |
D | SetTheory.cpp | 40 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 42 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply() 48 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 50 if (Expr->arg_size() < 2) in apply() 52 Expr->getAsString()); in apply() 54 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply() 55 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply() 64 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 66 if (Expr->arg_size() != 2) in apply() 68 Expr->getAsString()); in apply() [all …]
|
/external/llvm-project/polly/lib/Support/ |
D | SCEVAffinator.cpp | 61 static SCEV::NoWrapFlags getNoWrapFlags(const SCEV *Expr) { in getNoWrapFlags() argument 62 if (auto *NAry = dyn_cast<SCEVNAryExpr>(Expr)) in getNoWrapFlags() 116 PWACtx SCEVAffinator::getPwAff(const SCEV *Expr, BasicBlock *BB, in getPwAff() argument 128 return visit(Expr); in getPwAff() 131 PWACtx SCEVAffinator::checkForWrapping(const SCEV *Expr, PWACtx PWAC) const { in checkForWrapping() argument 139 if (IgnoreIntegerWrapping || (getNoWrapFlags(Expr) & SCEV::FlagNSW)) in checkForWrapping() 142 isl::pw_aff PWAMod = addModuloSemantic(PWAC.first, Expr->getType()); in checkForWrapping() 187 bool SCEVAffinator::computeModuloForExpr(const SCEV *Expr) { in computeModuloForExpr() argument 188 unsigned Width = TD.getTypeSizeInBits(Expr->getType()); in computeModuloForExpr() 190 if (auto *NAry = dyn_cast<SCEVNAryExpr>(Expr)) in computeModuloForExpr() [all …]
|
D | SCEVValidator.cpp | 58 ValidatorResult(SCEVType::TYPE Type, const SCEV *Expr) : Type(Type) { in ValidatorResult() argument 59 Parameters.insert(Expr); in ValidatorResult() 149 class ValidatorResult visitZeroExtendOrTruncateExpr(const SCEV *Expr, in visitZeroExtendOrTruncateExpr() 161 return ValidatorResult(SCEVType::PARAM, Expr); in visitZeroExtendOrTruncateExpr() 164 class ValidatorResult visitPtrToIntExpr(const SCEVPtrToIntExpr *Expr) { in visitPtrToIntExpr() 165 return visit(Expr->getOperand()); in visitPtrToIntExpr() 168 class ValidatorResult visitTruncateExpr(const SCEVTruncateExpr *Expr) { in visitTruncateExpr() 169 return visitZeroExtendOrTruncateExpr(Expr, Expr->getOperand()); in visitTruncateExpr() 172 class ValidatorResult visitZeroExtendExpr(const SCEVZeroExtendExpr *Expr) { in visitZeroExtendExpr() 173 return visitZeroExtendOrTruncateExpr(Expr, Expr->getOperand()); in visitZeroExtendExpr() [all …]
|
/external/llvm-project/clang/lib/Tooling/Transformer/ |
D | SourceCodeBuilders.cpp | 20 const Expr *tooling::reallyIgnoreImplicit(const Expr &E) { in reallyIgnoreImplicit() 21 const Expr *Expr = E.IgnoreImplicit(); in reallyIgnoreImplicit() local 22 if (const auto *CE = dyn_cast<CXXConstructExpr>(Expr)) { in reallyIgnoreImplicit() 24 CE->getArg(0)->getSourceRange() == Expr->getSourceRange()) in reallyIgnoreImplicit() 27 return Expr; in reallyIgnoreImplicit() 30 bool tooling::mayEverNeedParens(const Expr &E) { in mayEverNeedParens() 31 const Expr *Expr = reallyIgnoreImplicit(E); in mayEverNeedParens() local 34 if (isa<UnaryOperator>(Expr) || isa<BinaryOperator>(Expr) || in mayEverNeedParens() 35 isa<AbstractConditionalOperator>(Expr)) in mayEverNeedParens() 43 if (const auto *Op = dyn_cast<CXXOperatorCallExpr>(Expr)) in mayEverNeedParens() [all …]
|