/external/clang/include/clang/Basic/ |
D | StmtNodes.td | 52 def Expr : Stmt<1>; 53 def PredefinedExpr : DStmt<Expr>; 54 def DeclRefExpr : DStmt<Expr>; 55 def IntegerLiteral : DStmt<Expr>; 56 def FloatingLiteral : DStmt<Expr>; 57 def ImaginaryLiteral : DStmt<Expr>; 58 def StringLiteral : DStmt<Expr>; 59 def CharacterLiteral : DStmt<Expr>; 60 def ParenExpr : DStmt<Expr>; 61 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 …]
|
D | Stmt.cpp | 344 const Expr *AsmStmt::getOutputExpr(unsigned i) const { in getOutputExpr() 360 const Expr *AsmStmt::getInputExpr(unsigned i) const { in getInputExpr() 395 Expr *GCCAsmStmt::getOutputExpr(unsigned i) { in getOutputExpr() 396 return cast<Expr>(Exprs[i]); in getOutputExpr() 406 Expr *GCCAsmStmt::getInputExpr(unsigned i) { in getInputExpr() 407 return cast<Expr>(Exprs[i + NumOutputs]); in getInputExpr() 409 void GCCAsmStmt::setInputExpr(unsigned i, Expr *E) { in setInputExpr() 667 Expr *MSAsmStmt::getOutputExpr(unsigned i) { in getOutputExpr() 668 return cast<Expr>(Exprs[i]); in getOutputExpr() 671 Expr *MSAsmStmt::getInputExpr(unsigned i) { in getInputExpr() [all …]
|
D | Expr.cpp | 39 const CXXRecordDecl *Expr::getBestDynamicClassType() const { in getBestDynamicClassType() 40 const Expr *E = ignoreParenBaseCasts(); in getBestDynamicClassType() 54 const Expr *Expr::skipRValueSubobjectAdjustments( in skipRValueSubobjectAdjustments() 55 SmallVectorImpl<const Expr *> &CommaLHSs, in skipRValueSubobjectAdjustments() 57 const Expr *E = this; in skipRValueSubobjectAdjustments() 112 bool Expr::isKnownToHaveBooleanValue() const { in isKnownToHaveBooleanValue() 113 const Expr *E = IgnoreParens(); in isKnownToHaveBooleanValue() 177 SourceLocation getExprLocImpl(const Expr *expr, in getExprLocImpl() 187 SourceLocation getExprLocImpl(const Expr *expr, in getExprLocImpl() 188 SourceLocation (Expr::*v)() const) { in getExprLocImpl() [all …]
|
/external/clang/include/clang/AST/ |
D | OpenMPClause.h | 79 MutableArrayRef<Expr *> getVarRefs() { in getVarRefs() 80 return MutableArrayRef<Expr *>( in getVarRefs() 81 reinterpret_cast<Expr **>( in getVarRefs() 83 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>())), in getVarRefs() 88 void setVarRefs(ArrayRef<Expr *> VL) { in setVarRefs() 93 reinterpret_cast<Expr **>( in setVarRefs() 95 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>()))); in setVarRefs() 111 typedef MutableArrayRef<Expr *>::iterator varlist_iterator; 112 typedef ArrayRef<const Expr *>::iterator varlist_const_iterator; 137 ArrayRef<const Expr *> getVarRefs() const { in getVarRefs() [all …]
|
D | Expr.h | 72 Expr *RHS; 93 SubobjectAdjustment(const MemberPointerType *MPT, Expr *RHS) in SubobjectAdjustment() 104 class Expr : public Stmt { 108 Expr(StmtClass SC, QualType T, ExprValueKind VK, ExprObjectKind OK, in Expr() function 122 explicit Expr(StmtClass SC, EmptyShell) : Stmt(SC) { } in Expr() function 233 bool isUnusedResultAWarning(const Expr *&WarnExpr, SourceLocation &Loc, 332 friend class Expr; 446 return const_cast<Expr*>(this)->getSourceBitField(); in getSourceBitField() 516 static bool isPotentialConstantExprUnevaluated(Expr *E, 526 const Expr **Culprit = nullptr) const; [all …]
|
D | StmtOpenMP.h | 314 MutableArrayRef<Expr *> getCounters() { in getCounters() 315 Expr **Storage = reinterpret_cast<Expr **>( in getCounters() 317 return MutableArrayRef<Expr *>(Storage, CollapsedNum); in getCounters() 321 MutableArrayRef<Expr *> getUpdates() { in getUpdates() 322 Expr **Storage = reinterpret_cast<Expr **>( in getUpdates() 325 return MutableArrayRef<Expr *>(Storage, CollapsedNum); in getUpdates() 329 MutableArrayRef<Expr *> getFinals() { in getFinals() 330 Expr **Storage = reinterpret_cast<Expr **>( in getFinals() 333 return MutableArrayRef<Expr *>(Storage, CollapsedNum); in getFinals() 370 void setIterationVariable(Expr *IV) { in setIterationVariable() [all …]
|
D | ExprObjC.h | 29 class ObjCStringLiteral : public Expr { 34 : Expr(ObjCStringLiteralClass, T, VK_RValue, OK_Ordinary, false, false, in ObjCStringLiteral() 38 : Expr(ObjCStringLiteralClass, Empty) {} in ObjCStringLiteral() 60 class ObjCBoolLiteralExpr : public Expr { 65 Expr(ObjCBoolLiteralExprClass, Ty, VK_RValue, OK_Ordinary, false, false, in ObjCBoolLiteralExpr() 69 : Expr(ObjCBoolLiteralExprClass, Empty) { } in ObjCBoolLiteralExpr() 92 class ObjCBoxedExpr : public Expr { 97 ObjCBoxedExpr(Expr *E, QualType T, ObjCMethodDecl *method, in ObjCBoxedExpr() 99 : Expr(ObjCBoxedExprClass, T, VK_RValue, OK_Ordinary, in ObjCBoxedExpr() 104 : Expr(ObjCBoxedExprClass, Empty) {} in ObjCBoxedExpr() [all …]
|
D | ExprCXX.h | 66 CXXOperatorCallExpr(ASTContext& C, OverloadedOperatorKind Op, Expr *fn, in CXXOperatorCallExpr() 67 ArrayRef<Expr*> args, QualType t, ExprValueKind VK, in CXXOperatorCallExpr() 126 CXXMemberCallExpr(ASTContext &C, Expr *fn, ArrayRef<Expr*> args, in CXXMemberCallExpr() 136 Expr *getImplicitObjectArgument() const; 160 CUDAKernelCallExpr(ASTContext &C, Expr *fn, CallExpr *Config, in CUDAKernelCallExpr() 161 ArrayRef<Expr*> args, QualType t, ExprValueKind VK, in CUDAKernelCallExpr() 195 CastKind kind, Expr *op, unsigned PathSize, in CXXNamedCastExpr() 239 CXXStaticCastExpr(QualType ty, ExprValueKind vk, CastKind kind, Expr *op, in CXXStaticCastExpr() 251 ExprValueKind VK, CastKind K, Expr *Op, 271 Expr *op, unsigned pathSize, TypeSourceInfo *writtenTy, in CXXDynamicCastExpr() [all …]
|
D | DeclOpenMP.h | 22 class Expr; variable 45 ArrayRef<const Expr *> getVars() const { in getVars() 46 return llvm::makeArrayRef(reinterpret_cast<const Expr * const *>(this + 1), in getVars() 50 MutableArrayRef<Expr *> getVars() { in getVars() 51 return MutableArrayRef<Expr *>( in getVars() 52 reinterpret_cast<Expr **>(this + 1), in getVars() 56 void setVars(ArrayRef<Expr *> VL); 61 ArrayRef<Expr *> VL); 65 typedef MutableArrayRef<Expr *>::iterator varlist_iterator; 66 typedef ArrayRef<const Expr *>::iterator varlist_const_iterator;
|
/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/clang/lib/Sema/ |
D | SemaExceptionSpec.cpp | 772 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility() 840 static CanThrowResult canSubExprsThrow(Sema &S, const Expr *CE) { in canSubExprsThrow() 841 Expr *E = const_cast<Expr*>(CE); in canSubExprsThrow() 843 for (Expr::child_range I = E->children(); I && R != CT_Can; ++I) in canSubExprsThrow() 844 R = mergeCanThrow(R, S.canThrow(cast<Expr>(*I))); in canSubExprsThrow() 848 static CanThrowResult canCalleeThrow(Sema &S, const Expr *E, const Decl *D) { in canCalleeThrow() 900 Expr *Op = DC->getExprOperand(); in canTypeidThrow() 917 CanThrowResult Sema::canThrow(const Expr *E) { in canThrow() 922 case Expr::CXXThrowExprClass: in canThrow() 926 case Expr::CXXDynamicCastExprClass: { in canThrow() [all …]
|
D | SemaFixItUtils.cpp | 51 bool ConversionFixItGenerator::tryToFixConversion(const Expr *FullExpr, in tryToFixConversion() 66 const Expr* Expr = FullExpr->IgnoreImpCasts(); in tryToFixConversion() local 69 if (isa<ArraySubscriptExpr>(Expr) || in tryToFixConversion() 70 isa<CallExpr>(Expr) || in tryToFixConversion() 71 isa<DeclRefExpr>(Expr) || in tryToFixConversion() 72 isa<CastExpr>(Expr) || in tryToFixConversion() 73 isa<CXXNewExpr>(Expr) || in tryToFixConversion() 74 isa<CXXConstructExpr>(Expr) || in tryToFixConversion() 75 isa<CXXDeleteExpr>(Expr) || in tryToFixConversion() 76 isa<CXXNoexceptExpr>(Expr) || in tryToFixConversion() [all …]
|
D | SemaPseudoObject.cpp | 53 Expr *rebuild(Expr *e) { in rebuild() 84 SmallVector<Expr*, 8> assocs(numAssocs); in rebuild() 88 Expr *assoc = gse->getAssocExpr(i); in rebuild() 108 Expr *LHS = ce->getLHS(), *RHS = ce->getRHS(); in rebuild() 109 Expr *&rebuiltExpr = ce->isConditionTrue() ? LHS : RHS; in rebuild() 129 Expr *NewBase; 130 ObjCPropertyRefRebuilder(Sema &S, Expr *newBase) in ObjCPropertyRefRebuilder() 134 Expr *rebuildSpecific(ObjCPropertyRefExpr *refExpr) { in rebuildSpecific() 156 Expr *NewBase; 157 Expr *NewKeyExpr; [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldChecker.cpp | 34 bool evaluate(StringRef Expr) const { in evaluate() 36 Expr = Expr.trim(); in evaluate() 37 size_t EQIdx = Expr.find('='); in evaluate() 42 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate() 48 return handleError(Expr, LHSResult); in evaluate() 50 return handleError(Expr, unexpectedToken(RemainingExpr, LHSExpr, "")); in evaluate() 53 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() 58 return handleError(Expr, RHSResult); in evaluate() 60 return handleError(Expr, unexpectedToken(RemainingExpr, RHSExpr, "")); in evaluate() 63 Checker.ErrStream << "Expression '" << Expr << "' is false: " in evaluate() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolutionExpressions.h | 655 const SCEV *visitTruncateExpr(const SCEVTruncateExpr *Expr) { in visitTruncateExpr() 656 const SCEV *Operand = visit(Expr->getOperand()); in visitTruncateExpr() 657 return SE.getTruncateExpr(Operand, Expr->getType()); in visitTruncateExpr() 660 const SCEV *visitZeroExtendExpr(const SCEVZeroExtendExpr *Expr) { in visitZeroExtendExpr() 661 const SCEV *Operand = visit(Expr->getOperand()); in visitZeroExtendExpr() 662 return SE.getZeroExtendExpr(Operand, Expr->getType()); in visitZeroExtendExpr() 665 const SCEV *visitSignExtendExpr(const SCEVSignExtendExpr *Expr) { in visitSignExtendExpr() 666 const SCEV *Operand = visit(Expr->getOperand()); in visitSignExtendExpr() 667 return SE.getSignExtendExpr(Operand, Expr->getType()); in visitSignExtendExpr() 670 const SCEV *visitAddExpr(const SCEVAddExpr *Expr) { in visitAddExpr() [all …]
|
/external/clang/lib/Analysis/ |
D | BodyFarm.cpp | 51 BinaryOperator *makeAssignment(const Expr *LHS, const Expr *RHS, QualType Ty); 54 BinaryOperator *makeComparison(const Expr *LHS, const Expr *RHS, 64 UnaryOperator *makeDereference(const Expr *Arg, QualType Ty); 67 Expr *makeIntegralCast(const Expr *Arg, QualType Ty); 70 ImplicitCastExpr *makeIntegralCastToBoolean(const Expr *Arg); 73 ImplicitCastExpr *makeLvalueToRvalue(const Expr *Arg, QualType Ty); 79 ObjCIvarRefExpr *makeObjCIvarRef(const Expr *Base, const ObjCIvarDecl *IVar); 82 ReturnStmt *makeReturn(const Expr *RetVal); 89 BinaryOperator *ASTMaker::makeAssignment(const Expr *LHS, const Expr *RHS, in makeAssignment() 91 return new (C) BinaryOperator(const_cast<Expr*>(LHS), const_cast<Expr*>(RHS), in makeAssignment() [all …]
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ELFRelocationInfo.cpp | 42 const MCExpr *Expr = nullptr; in createExprForRelocation() local 79 Expr = MCSymbolRefExpr::Create(Sym, Ctx); in createExprForRelocation() 88 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOT, Ctx); in createExprForRelocation() 93 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_PLT, Ctx); in createExprForRelocation() 98 Expr = MCSymbolRefExpr::Create(Sym, Ctx); in createExprForRelocation() 104 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTPCREL, Ctx); in createExprForRelocation() 108 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTOFF, Ctx); in createExprForRelocation() 116 Expr = MCConstantExpr::Create(SymSize, Ctx); in createExprForRelocation() 119 Expr = MCSymbolRefExpr::Create(Sym, Ctx); in createExprForRelocation() 122 if (Expr && hasAddend && Addend != 0) in createExprForRelocation() [all …]
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMCExpr.h | 34 const MCExpr *Expr; variable 39 explicit PPCMCExpr(VariantKind Kind, const MCExpr *Expr, bool IsDarwin) in PPCMCExpr() argument 40 : Kind(Kind), Expr(Expr), IsDarwin(IsDarwin) {} in PPCMCExpr() 46 static const PPCMCExpr *Create(VariantKind Kind, const MCExpr *Expr, 49 static const PPCMCExpr *CreateLo(const MCExpr *Expr, in CreateLo() argument 51 return Create(VK_PPC_LO, Expr, isDarwin, Ctx); in CreateLo() 54 static const PPCMCExpr *CreateHi(const MCExpr *Expr, in CreateHi() argument 56 return Create(VK_PPC_HI, Expr, isDarwin, Ctx); in CreateHi() 59 static const PPCMCExpr *CreateHa(const MCExpr *Expr, in CreateHa() argument 61 return Create(VK_PPC_HA, Expr, isDarwin, Ctx); in CreateHa() [all …]
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMMCExpr.h | 27 const MCExpr *Expr; variable 29 explicit ARMMCExpr(VariantKind Kind, const MCExpr *Expr) in ARMMCExpr() argument 30 : Kind(Kind), Expr(Expr) {} in ARMMCExpr() 36 static const ARMMCExpr *Create(VariantKind Kind, const MCExpr *Expr, 39 static const ARMMCExpr *CreateUpper16(const MCExpr *Expr, MCContext &Ctx) { in CreateUpper16() argument 40 return Create(VK_ARM_HI16, Expr, Ctx); in CreateUpper16() 43 static const ARMMCExpr *CreateLower16(const MCExpr *Expr, MCContext &Ctx) { in CreateLower16() argument 44 return Create(VK_ARM_LO16, Expr, Ctx); in CreateLower16() 55 const MCExpr *getSubExpr() const { return Expr; } in getSubExpr()
|
/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 67 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteObjCRedundantCallWithLiteral() 110 const Expr *Receiver, in maybeAdjustInterfaceForSubscriptingCheck() 160 const Expr *Rec = Msg->getInstanceReceiver(); in canRewriteToSubscriptSyntax() 172 static bool subscriptOperatorNeedsParens(const Expr *FullExpr); 174 static void maybePutParensOnReceiver(const Expr *Receiver, Commit &commit) { in maybePutParensOnReceiver() 185 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToSubscriptGetCommon() 233 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToArraySubscriptSet() 267 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToDictionarySubscriptSet() 376 static void objectifyExpr(const Expr *E, Commit &commit); 412 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral() [all …]
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 108 class Expr; variable 374 llvm::SmallPtrSet<Expr*, 2> MaybeODRUseExprs; 759 llvm::SmallPtrSet<Expr*, 2> SavedMaybeODRUseExprs; 925 bool isSelfExpr(Expr *RExpr); 926 bool isSelfExpr(Expr *RExpr, const ObjCMethodDecl *Method); 1136 Expr *ArraySize, unsigned Quals, 1138 QualType BuildExtVectorType(QualType T, Expr *ArraySize, 1194 CanThrowResult canThrow(const Expr *E); 1250 static SourceRange getPrintable(const Expr *E) { return E->getSourceRange(); } in getPrintable() 1302 bool RequireCompleteExprType(Expr *E, TypeDiagnoser &Diagnoser); [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CStringSyntaxChecker.cpp | 39 inline bool sameDecl(const Expr *A1, const Expr *A2) { in sameDecl() 47 inline bool isSizeof(const Expr *E, const Expr *WithArg) { in isSizeof() 56 inline bool isStrlen(const Expr *E, const Expr *WithArg) { in isStrlen() 68 inline bool isOne(const Expr *E) { in isOne() 74 inline StringRef getPrintableName(const Expr *E) { in getPrintableName() 106 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern() 107 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern() 108 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern() 115 const Expr *L = BE->getLHS(); in containsBadStrncatPattern() 116 const Expr *R = BE->getRHS(); in containsBadStrncatPattern() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SDNodeDbgValue.h | 48 MDNode *Expr; variable 56 SDDbgValue(MDNode *Var, MDNode *Expr, SDNode *N, unsigned R, bool indir, in SDDbgValue() argument 58 : Var(Var), Expr(Expr), IsIndirect(indir), Offset(off), DL(dl), Order(O), in SDDbgValue() 66 SDDbgValue(MDNode *Var, MDNode *Expr, const Value *C, uint64_t off, in SDDbgValue() argument 68 : Var(Var), Expr(Expr), IsIndirect(false), Offset(off), DL(dl), Order(O), in SDDbgValue() 75 SDDbgValue(MDNode *Var, MDNode *Expr, unsigned FI, uint64_t off, DebugLoc dl, in SDDbgValue() argument 77 : Var(Var), Expr(Expr), IsIndirect(false), Offset(off), DL(dl), Order(O), in SDDbgValue() 90 MDNode *getExpression() const { return Expr; } in getExpression()
|
/external/llvm/lib/Target/ARM/ |
D | ARMMCInstLower.cpp | 29 const MCExpr *Expr; in GetSymbolRef() local 33 Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_None, in GetSymbolRef() 40 Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_None, in GetSymbolRef() 42 Expr = ARMMCExpr::CreateLower16(Expr, OutContext); in GetSymbolRef() 45 Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_None, in GetSymbolRef() 47 Expr = ARMMCExpr::CreateUpper16(Expr, OutContext); in GetSymbolRef() 54 Expr = MCSymbolRefExpr::Create(Symbol, MCSymbolRefExpr::VK_PLT, in GetSymbolRef() 60 Expr = MCBinaryExpr::CreateAdd(Expr, in GetSymbolRef() 64 return MCOperand::CreateExpr(Expr); in GetSymbolRef()
|