| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A 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 …]
|
| H A D | OpenMPClause.cpp | 323 OMPOrderedClause *OMPOrderedClause::Create(const ASTContext &C, Expr *Num, in Create() 328 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in Create() 340 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in CreateEmpty() 350 Expr *NumIterations) { in setLoopNumIterations() 352 getTrailingObjects<Expr *>()[NumLoop] = NumIterations; in setLoopNumIterations() 355 ArrayRef<Expr *> OMPOrderedClause::getLoopNumIterations() const { in getLoopNumIterations() 356 return llvm::makeArrayRef(getTrailingObjects<Expr *>(), NumberOfLoops); in getLoopNumIterations() 359 void OMPOrderedClause::setLoopCounter(unsigned NumLoop, Expr *Counter) { in setLoopCounter() 361 getTrailingObjects<Expr *>()[NumberOfLoops + NumLoop] = Counter; in setLoopCounter() 364 Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) { in getLoopCounter() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A 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 …]
|
| H A 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 IgnoreExprNodes(const_cast<Expr *>(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 …]
|
| H A 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 …]
|
| H A D | ExprCXX.h | 93 CXXOperatorCallExpr(OverloadedOperatorKind OpKind, Expr *Fn, 94 ArrayRef<Expr *> Args, QualType Ty, ExprValueKind VK, 102 Create(const ASTContext &Ctx, OverloadedOperatorKind OpKind, Expr *Fn, 103 ArrayRef<Expr *> Args, QualType Ty, ExprValueKind VK, 181 CXXMemberCallExpr(Expr *Fn, ArrayRef<Expr *> Args, QualType Ty, 188 static CXXMemberCallExpr *Create(const ASTContext &Ctx, Expr *Fn, 189 ArrayRef<Expr *> Args, QualType Ty, 200 Expr *getImplicitObjectArgument() const; 240 CUDAKernelCallExpr(Expr *Fn, CallExpr *Config, ArrayRef<Expr *> Args, 247 static CUDAKernelCallExpr *Create(const ASTContext &Ctx, Expr *Fn, [all …]
|
| H A D | ExprObjC.h | 52 class ObjCStringLiteral : public Expr { 58 : Expr(ObjCStringLiteralClass, T, VK_RValue, OK_Ordinary), String(SL), in ObjCStringLiteral() 63 : Expr(ObjCStringLiteralClass, Empty) {} in ObjCStringLiteral() 88 class ObjCBoolLiteralExpr : public Expr { 94 : Expr(ObjCBoolLiteralExprClass, Ty, VK_RValue, OK_Ordinary), Value(val), in ObjCBoolLiteralExpr() 99 : Expr(ObjCBoolLiteralExprClass, Empty) {} in ObjCBoolLiteralExpr() 128 class ObjCBoxedExpr : public Expr { 136 ObjCBoxedExpr(Expr *E, QualType T, ObjCMethodDecl *method, SourceRange R) in ObjCBoxedExpr() 137 : Expr(ObjCBoxedExprClass, T, VK_RValue, OK_Ordinary), SubExpr(E), in ObjCBoxedExpr() 142 : Expr(ObjCBoxedExprClass, Empty) {} in ObjCBoxedExpr() [all …]
|
| H A D | OpenMPClause.h | 153 Expr *PostUpdate = nullptr; 161 void setPostUpdateExpr(Expr *S) { PostUpdate = S; } in setPostUpdateExpr() 165 const Expr *getPostUpdateExpr() const { return PostUpdate; } in getPostUpdateExpr() 168 Expr *getPostUpdateExpr() { return PostUpdate; } in getPostUpdateExpr() 213 MutableArrayRef<Expr *> getVarRefs() { in getVarRefs() 214 return MutableArrayRef<Expr *>( in getVarRefs() 215 static_cast<T *>(this)->template getTrailingObjects<Expr *>(), NumVars); in getVarRefs() 219 void setVarRefs(ArrayRef<Expr *> VL) { in setVarRefs() 223 static_cast<T *>(this)->template getTrailingObjects<Expr *>()); in setVarRefs() 227 using varlist_iterator = MutableArrayRef<Expr *>::iterator; [all …]
|
| H A D | StmtOpenMP.h | 629 void setTaskReductionRefExpr(Expr *E) { Data->getChildren()[0] = E; } in setTaskReductionRefExpr() 648 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, Expr *TaskRedRef, 660 Expr *getTaskReductionRefExpr() { in getTaskReductionRefExpr() 661 return cast_or_null<Expr>(Data->getChildren()[0]); in getTaskReductionRefExpr() 663 const Expr *getTaskReductionRefExpr() const { in getTaskReductionRefExpr() 704 Expr *LB; 707 Expr *UB; 710 Expr *EUB; 714 Expr *Init; 717 Expr *Cond; [all …]
|
| H A D | DeclOpenMP.h | 119 ArrayRef<const Expr *> getVars() const { in getVars() 120 auto **Storage = reinterpret_cast<Expr **>(Data->getChildren().data()); in getVars() 124 MutableArrayRef<Expr *> getVars() { in getVars() 125 auto **Storage = reinterpret_cast<Expr **>(Data->getChildren().data()); in getVars() 129 void setVars(ArrayRef<Expr *> VL); 134 ArrayRef<Expr *> VL); 138 typedef MutableArrayRef<Expr *>::iterator varlist_iterator; 139 typedef ArrayRef<const Expr *>::iterator varlist_const_iterator; 184 Expr *Combiner = nullptr; 186 Expr *Initializer = nullptr; [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldChecker.cpp | 36 bool evaluate(StringRef Expr) const { in evaluate() 38 Expr = Expr.trim(); in evaluate() 39 size_t EQIdx = Expr.find('='); in evaluate() 44 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate() 50 return handleError(Expr, LHSResult); in evaluate() 52 return handleError(Expr, unexpectedToken(RemainingExpr, LHSExpr, "")); in evaluate() 55 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() 60 return handleError(Expr, RHSResult); in evaluate() 62 return handleError(Expr, unexpectedToken(RemainingExpr, RHSExpr, "")); in evaluate() 65 Checker.ErrStream << "Expression '" << Expr << "' is false: " in evaluate() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaExceptionSpec.cpp | 82 Expr *NoexceptExpr, in ActOnNoexceptSpec() 915 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility() 1002 CanThrowResult Sema::canCalleeThrow(Sema &S, const Expr *E, const Decl *D, in canCalleeThrow() 1062 if (const Expr *Init = VD->getInit()) in canVarDeclThrow() 1102 Expr *Op = DC->getExprOperand(); in canTypeidThrow() 1124 case Expr::ConstantExprClass: in canThrow() 1127 case Expr::CXXThrowExprClass: in canThrow() 1131 case Expr::CXXDynamicCastExprClass: { in canThrow() 1144 case Expr::CXXTypeidExprClass: in canThrow() 1152 case Expr::CallExprClass: in canThrow() [all …]
|
| H A D | SemaFixItUtils.cpp | 50 bool ConversionFixItGenerator::tryToFixConversion(const Expr *FullExpr, in tryToFixConversion() 65 const Expr* Expr = FullExpr->IgnoreImpCasts(); in tryToFixConversion() local 68 if (isa<ArraySubscriptExpr>(Expr) || in tryToFixConversion() 69 isa<CallExpr>(Expr) || in tryToFixConversion() 70 isa<DeclRefExpr>(Expr) || in tryToFixConversion() 71 isa<CastExpr>(Expr) || in tryToFixConversion() 72 isa<CXXNewExpr>(Expr) || in tryToFixConversion() 73 isa<CXXConstructExpr>(Expr) || in tryToFixConversion() 74 isa<CXXDeleteExpr>(Expr) || in tryToFixConversion() 75 isa<CXXNoexceptExpr>(Expr) || in tryToFixConversion() [all …]
|
| H A D | SemaPseudoObject.cpp | 49 typedef llvm::function_ref<Expr *(Expr *, unsigned)> SpecificRebuilderRefTy; 55 Expr *rebuildObjCPropertyRefExpr(ObjCPropertyRefExpr *refExpr) { in rebuildObjCPropertyRefExpr() 73 Expr *rebuildObjCSubscriptRefExpr(ObjCSubscriptRefExpr *refExpr) { in rebuildObjCSubscriptRefExpr() 84 Expr *rebuildMSPropertyRefExpr(MSPropertyRefExpr *refExpr) { in rebuildMSPropertyRefExpr() 93 Expr *rebuildMSPropertySubscriptExpr(MSPropertySubscriptExpr *refExpr) { in rebuildMSPropertySubscriptExpr() 106 Expr *rebuild(Expr *e) { in rebuild() 141 SmallVector<Expr *, 8> assocExprs; in rebuild() 148 Expr *assocExpr = assoc.getAssociationExpr(); in rebuild() 164 Expr *LHS = ce->getLHS(), *RHS = ce->getRHS(); in rebuild() 165 Expr *&rebuiltExpr = ce->isConditionTrue() ? LHS : RHS; in rebuild() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | ScalarEvolutionExpressions.h | 733 const SCEV *visitPtrToIntExpr(const SCEVPtrToIntExpr *Expr) { in visitPtrToIntExpr() argument 734 const SCEV *Operand = ((SC *)this)->visit(Expr->getOperand()); in visitPtrToIntExpr() 735 return Operand == Expr->getOperand() in visitPtrToIntExpr() 736 ? Expr in visitPtrToIntExpr() 737 : SE.getPtrToIntExpr(Operand, Expr->getType()); in visitPtrToIntExpr() 740 const SCEV *visitTruncateExpr(const SCEVTruncateExpr *Expr) { in visitTruncateExpr() argument 741 const SCEV *Operand = ((SC*)this)->visit(Expr->getOperand()); in visitTruncateExpr() 742 return Operand == Expr->getOperand() in visitTruncateExpr() 743 ? Expr in visitTruncateExpr() 744 : SE.getTruncateExpr(Operand, Expr->getType()); in visitTruncateExpr() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/Analyses/ |
| H A D | ExprMutationAnalyzer.h | 28 bool isMutated(const Expr *Exp) { return findMutation(Exp) != nullptr; } in isMutated() 30 const Stmt *findMutation(const Expr *Exp); 33 bool isPointeeMutated(const Expr *Exp) { in isPointeeMutated() 39 const Stmt *findPointeeMutation(const Expr *Exp); 43 using MutationFinder = const Stmt *(ExprMutationAnalyzer::*)(const Expr *); 44 using ResultMap = llvm::DenseMap<const Expr *, const Stmt *>; 46 const Stmt *findMutationMemoized(const Expr *Exp, 51 bool isUnevaluated(const Expr *Exp); 60 const Stmt *findDirectMutation(const Expr *Exp); 61 const Stmt *findMemberMutation(const Expr *Exp); [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonMCExpr.cpp | 22 HexagonMCExpr *HexagonMCExpr::create(MCExpr const *Expr, MCContext &Ctx) { in create() argument 23 return new (Ctx) HexagonMCExpr(Expr); in create() 29 return Expr->evaluateAsRelocatable(Res, Layout, Fixup); in evaluateAsRelocatableImpl() 33 Streamer.visitUsedExpr(*Expr); in visitUsedExpr() 37 return Expr->findAssociatedFragment(); in findAssociatedFragment() 40 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { in fixELFSymbolsInTLSFixupsImpl() argument 41 switch (Expr->getKind()) { in fixELFSymbolsInTLSFixupsImpl() 49 const MCBinaryExpr *be = cast<MCBinaryExpr>(Expr); in fixELFSymbolsInTLSFixupsImpl() 55 const MCSymbolRefExpr &symRef = *cast<MCSymbolRefExpr>(Expr); in fixELFSymbolsInTLSFixupsImpl() 72 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm); in fixELFSymbolsInTLSFixupsImpl() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.h | 45 class Expr; variable 96 SmallVector<const Expr *, 4> PrivateVars; 97 SmallVector<const Expr *, 4> PrivateCopies; 98 SmallVector<const Expr *, 4> FirstprivateVars; 99 SmallVector<const Expr *, 4> FirstprivateCopies; 100 SmallVector<const Expr *, 4> FirstprivateInits; 101 SmallVector<const Expr *, 4> LastprivateVars; 102 SmallVector<const Expr *, 4> LastprivateCopies; 103 SmallVector<const Expr *, 4> ReductionVars; 104 SmallVector<const Expr *, 4> ReductionOrigs; [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 66 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteObjCRedundantCallWithLiteral() 109 const Expr *Receiver, in maybeAdjustInterfaceForSubscriptingCheck() 159 const Expr *Rec = Msg->getInstanceReceiver(); in canRewriteToSubscriptSyntax() 171 static bool subscriptOperatorNeedsParens(const Expr *FullExpr); 173 static void maybePutParensOnReceiver(const Expr *Receiver, Commit &commit) { in maybePutParensOnReceiver() 184 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToSubscriptGetCommon() 232 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToArraySubscriptSet() 266 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToDictionarySubscriptSet() 375 static void objectifyExpr(const Expr *E, Commit &commit); 411 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFExpression.h | 98 const DWARFExpression *Expr, const MCRegisterInfo *RegInfo, 108 const DWARFExpression *Expr; variable 111 iterator(const DWARFExpression *Expr, uint64_t Offset) in iterator() argument 112 : Expr(Expr), Offset(Offset) { in iterator() 114 Offset >= Expr->Data.getData().size() || in iterator() 115 !Op.extract(Expr->Data, Expr->AddressSize, Offset, Expr->Format); in iterator() 120 Offset = Op.isError() ? Expr->Data.getData().size() : Op.EndOffset; 122 Offset >= Expr->Data.getData().size() || 123 !Op.extract(Expr->Data, Expr->AddressSize, Offset, Expr->Format); 132 return iterator(Expr, Op.EndOffset + Add); in skipBytes() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCExpr.h | 35 const MCExpr *Expr; variable 39 explicit PPCMCExpr(VariantKind Kind, const MCExpr *Expr) in PPCMCExpr() argument 40 : Kind(Kind), Expr(Expr) {} in PPCMCExpr() 46 static const PPCMCExpr *create(VariantKind Kind, const MCExpr *Expr, 49 static const PPCMCExpr *createLo(const MCExpr *Expr, MCContext &Ctx) { in createLo() argument 50 return create(VK_PPC_LO, Expr, Ctx); in createLo() 53 static const PPCMCExpr *createHi(const MCExpr *Expr, MCContext &Ctx) { in createHi() argument 54 return create(VK_PPC_HI, Expr, Ctx); in createHi() 57 static const PPCMCExpr *createHa(const MCExpr *Expr, MCContext &Ctx) { in createHa() argument 58 return create(VK_PPC_HA, Expr, Ctx); in createHa() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| H A D | Sema.h | 127 class Expr; variable 318 void enterBinary(Sema &S, SourceLocation Tok, Expr *LHS, tok::TokenKind Op); 319 void enterMemAccess(Sema &S, SourceLocation Tok, Expr *Base); 320 void enterSubscript(Sema &S, SourceLocation Tok, Expr *LHS); 774 using MaybeODRUseExprSet = llvm::SetVector<Expr *, SmallVector<Expr *, 4>, 775 llvm::SmallPtrSet<Expr *, 4>>; 1268 llvm::SmallPtrSet<const Expr *, 8> PossibleDerefs; 1273 SmallVector<Expr*, 2> VolatileAssignmentLHSs; 1486 bool isSelfExpr(Expr *RExpr); 1487 bool isSelfExpr(Expr *RExpr, const ObjCMethodDecl *Method); [all …]
|