| /openbsd-src/gnu/llvm/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() 95 const Expr *E, in ClassifyExprValueKind() 108 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { in ClassifyInternal() 115 #define STMT(Kind, Base) case Expr::Kind##Class: in ClassifyInternal() 121 case Expr::ObjCIsaExprClass: in ClassifyInternal() [all …]
|
| H A D | OpenMPClause.cpp | 340 OMPOrderedClause *OMPOrderedClause::Create(const ASTContext &C, Expr *Num, in Create() 345 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in Create() 357 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in CreateEmpty() 367 Expr *NumIterations) { in setLoopNumIterations() 369 getTrailingObjects<Expr *>()[NumLoop] = NumIterations; in setLoopNumIterations() 372 ArrayRef<Expr *> OMPOrderedClause::getLoopNumIterations() const { in getLoopNumIterations() 373 return llvm::ArrayRef(getTrailingObjects<Expr *>(), NumberOfLoops); in getLoopNumIterations() 376 void OMPOrderedClause::setLoopCounter(unsigned NumLoop, Expr *Counter) { in setLoopCounter() 378 getTrailingObjects<Expr *>()[NumberOfLoops + NumLoop] = Counter; in setLoopCounter() 381 Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) { in getLoopCounter() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 58 def Expr : StmtNode<ValueStmt, 1>; 59 def PredefinedExpr : StmtNode<Expr>; 60 def SYCLUniqueStableNameExpr : StmtNode<Expr>; 61 def DeclRefExpr : StmtNode<Expr>; 62 def IntegerLiteral : StmtNode<Expr>; 63 def FixedPointLiteral : StmtNode<Expr>; 64 def FloatingLiteral : StmtNode<Expr>; 65 def ImaginaryLiteral : StmtNode<Expr>; 66 def StringLiteral : StmtNode<Expr>; 67 def CharacterLiteral : StmtNode<Expr>; [all …]
|
| /openbsd-src/gnu/llvm/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 | 79 Expr *RHS; 100 SubobjectAdjustment(const MemberPointerType *MPT, Expr *RHS) in SubobjectAdjustment() 110 class Expr : public ValueStmt { 114 Expr() = delete; 115 Expr(const Expr&) = delete; 116 Expr(Expr &&) = delete; 117 Expr &operator=(const Expr&) = delete; 118 Expr &operator=(Expr&&) = delete; 121 Expr(StmtClass SC, QualType T, ExprValueKind VK, ExprObjectKind OK) in Expr() function 131 explicit Expr(StmtClass SC, EmptyShell) : ValueStmt(SC) { } in Expr() function [all …]
|
| H A D | ExprCXX.h | 92 CXXOperatorCallExpr(OverloadedOperatorKind OpKind, Expr *Fn, 93 ArrayRef<Expr *> Args, QualType Ty, ExprValueKind VK, 101 Create(const ASTContext &Ctx, OverloadedOperatorKind OpKind, Expr *Fn, 102 ArrayRef<Expr *> Args, QualType Ty, ExprValueKind VK, 180 CXXMemberCallExpr(Expr *Fn, ArrayRef<Expr *> Args, QualType Ty, 187 static CXXMemberCallExpr *Create(const ASTContext &Ctx, Expr *Fn, 188 ArrayRef<Expr *> Args, QualType Ty, 199 Expr *getImplicitObjectArgument() const; 239 CUDAKernelCallExpr(Expr *Fn, CallExpr *Config, ArrayRef<Expr *> Args, 246 static CUDAKernelCallExpr *Create(const ASTContext &Ctx, Expr *Fn, [all …]
|
| H A D | ExprObjC.h | 51 class ObjCStringLiteral : public Expr { 57 : Expr(ObjCStringLiteralClass, T, VK_PRValue, OK_Ordinary), String(SL), in ObjCStringLiteral() 62 : Expr(ObjCStringLiteralClass, Empty) {} in ObjCStringLiteral() 87 class ObjCBoolLiteralExpr : public Expr { 93 : Expr(ObjCBoolLiteralExprClass, Ty, VK_PRValue, OK_Ordinary), Value(val), in ObjCBoolLiteralExpr() 98 : Expr(ObjCBoolLiteralExprClass, Empty) {} in ObjCBoolLiteralExpr() 127 class ObjCBoxedExpr : public Expr { 135 ObjCBoxedExpr(Expr *E, QualType T, ObjCMethodDecl *method, SourceRange R) in ObjCBoxedExpr() 136 : Expr(ObjCBoxedExprClass, T, VK_PRValue, OK_Ordinary), SubExpr(E), in ObjCBoxedExpr() 141 : Expr(ObjCBoxedExprClass, Empty) {} in ObjCBoxedExpr() [all …]
|
| H A D | OpenMPClause.h | 237 Expr *PostUpdate = nullptr; 245 void setPostUpdateExpr(Expr *S) { PostUpdate = S; } in setPostUpdateExpr() 249 const Expr *getPostUpdateExpr() const { return PostUpdate; } in getPostUpdateExpr() 252 Expr *getPostUpdateExpr() { return PostUpdate; } in getPostUpdateExpr() 297 MutableArrayRef<Expr *> getVarRefs() { in getVarRefs() 298 return MutableArrayRef<Expr *>( in getVarRefs() 299 static_cast<T *>(this)->template getTrailingObjects<Expr *>(), NumVars); in getVarRefs() 303 void setVarRefs(ArrayRef<Expr *> VL) { in setVarRefs() 307 static_cast<T *>(this)->template getTrailingObjects<Expr *>()); in setVarRefs() 311 using varlist_iterator = MutableArrayRef<Expr *>::iterator; [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 …]
|
| H A D | StmtOpenMP.h | 635 void setTaskReductionRefExpr(Expr *E) { Data->getChildren()[0] = E; } in setTaskReductionRefExpr() 654 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, Expr *TaskRedRef, 666 Expr *getTaskReductionRefExpr() { in getTaskReductionRefExpr() 667 return cast_or_null<Expr>(Data->getChildren()[0]); in getTaskReductionRefExpr() 669 const Expr *getTaskReductionRefExpr() const { in getTaskReductionRefExpr() 710 Expr *LB; 713 Expr *UB; 716 Expr *EUB; 720 Expr *Init; 723 Expr *Cond; [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Utility/ |
| H A 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/TableGen/ |
| H A D | SetTheory.cpp | 39 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 41 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply() 47 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 49 if (Expr->arg_size() < 2) in apply() 51 Expr->getAsString()); in apply() 53 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply() 54 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply() 63 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, in apply() 65 if (Expr->arg_size() != 2) in apply() 67 Expr->getAsString()); in apply() [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.robertl/ |
| H A D | eb43.C | 12 template <class T> class Expr 15 Expr(){}; in Expr() function 16 Expr(const T&){}; in Expr() function 20 inline bool compare(const Expr<T> a, const Expr<T> b){ return true; }; in compare() 26 static_cast<bool (*)(const Expr<int>,const Expr<int>)>(compare) ); in main() 29 pointer_to_binary_function<const Expr<int>, const Expr<int>, bool> > in main() 32 ptr_fun<const Expr<int>, const Expr<int>, bool> (compare) ); in main() 36 pointer_to_binary_function<const Expr<int>, const Expr<int>, bool>(compare) ); in main() 38 pointer_to_binary_function<const Expr<int>, const Expr<int>, bool>(compare<int>) ); in main() 40 pointer_to_binary_function<const Expr<int>, const Expr<int>, bool>(compare<>) ); in main()
|
| /openbsd-src/gnu/llvm/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() 26 CE->getArg(0)->getSourceRange() == Expr->getSourceRange()) 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() 45 if (const auto *Op = dyn_cast<CXXOperatorCallExpr>(Expr)) in mayEverNeedParens() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldChecker.cpp | 37 bool evaluate(StringRef Expr) const { in evaluate() 39 Expr = Expr.trim(); in evaluate() 40 size_t EQIdx = Expr.find('='); in evaluate() 45 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate() 51 return handleError(Expr, LHSResult); in evaluate() 53 return handleError(Expr, unexpectedToken(RemainingExpr, LHSExpr, "")); in evaluate() 56 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() 61 return handleError(Expr, RHSResult); in evaluate() 63 return handleError(Expr, unexpectedToken(RemainingExpr, RHSExpr, "")); in evaluate() 66 Checker.ErrStream << "Expression '" << Expr << "' is false: " in evaluate() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaExceptionSpec.cpp | 82 ExprResult Sema::ActOnNoexceptSpec(Expr *NoexceptExpr, in ActOnNoexceptSpec() 921 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility() 1008 CanThrowResult Sema::canCalleeThrow(Sema &S, const Expr *E, const Decl *D, in canCalleeThrow() 1068 if (const Expr *Init = VD->getInit()) in canVarDeclThrow() 1108 Expr *Op = DC->getExprOperand(); in canTypeidThrow() 1130 case Expr::ConstantExprClass: in canThrow() 1133 case Expr::CXXThrowExprClass: in canThrow() 1137 case Expr::CXXDynamicCastExprClass: { in canThrow() 1150 case Expr::CXXTypeidExprClass: in canThrow() 1158 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 …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.h | 44 class Expr; variable 94 SmallVector<const Expr *, 4> PrivateVars; 95 SmallVector<const Expr *, 4> PrivateCopies; 96 SmallVector<const Expr *, 4> FirstprivateVars; 97 SmallVector<const Expr *, 4> FirstprivateCopies; 98 SmallVector<const Expr *, 4> FirstprivateInits; 99 SmallVector<const Expr *, 4> LastprivateVars; 100 SmallVector<const Expr *, 4> LastprivateCopies; 101 SmallVector<const Expr *, 4> ReductionVars; 102 SmallVector<const Expr *, 4> ReductionOrigs; [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonMCExpr.cpp | 23 HexagonMCExpr *HexagonMCExpr::create(MCExpr const *Expr, MCContext &Ctx) { in create() argument 24 return new (Ctx) HexagonMCExpr(Expr); in create() 30 return Expr->evaluateAsRelocatable(Res, Layout, Fixup); in evaluateAsRelocatableImpl() 34 Streamer.visitUsedExpr(*Expr); in visitUsedExpr() 38 return Expr->findAssociatedFragment(); in findAssociatedFragment() 41 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { in fixELFSymbolsInTLSFixupsImpl() argument 42 switch (Expr->getKind()) { in fixELFSymbolsInTLSFixupsImpl() 50 const MCBinaryExpr *be = cast<MCBinaryExpr>(Expr); in fixELFSymbolsInTLSFixupsImpl() 56 const MCSymbolRefExpr &symRef = *cast<MCSymbolRefExpr>(Expr); in fixELFSymbolsInTLSFixupsImpl() 73 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm); in fixELFSymbolsInTLSFixupsImpl() [all …]
|
| /openbsd-src/gnu/llvm/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); 45 using MutationFinder = const Stmt *(ExprMutationAnalyzer::*)(const Expr *); 46 using ResultMap = llvm::DenseMap<const Expr *, const Stmt *>; 48 const Stmt *findMutationMemoized(const Expr *Exp, 53 bool isUnevaluated(const Expr *Exp); 62 const Stmt *findDirectMutation(const Expr *Exp); 63 const Stmt *findMemberMutation(const Expr *Exp); [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Tooling/Transformer/ |
| H A D | SourceCodeBuilders.h | 28 const Expr *reallyIgnoreImplicit(const Expr &E); 33 bool mayEverNeedParens(const Expr &E); 39 inline bool needParensBeforeDotOrArrow(const Expr &E) { in needParensBeforeDotOrArrow() 45 bool needParensAfterUnaryOperator(const Expr &E); 62 std::optional<std::string> buildParens(const Expr &E, 67 std::optional<std::string> buildDereference(const Expr &E, 72 std::optional<std::string> buildAddressOf(const Expr &E, 83 std::optional<std::string> buildDot(const Expr &E, const ASTContext &Context); 93 std::optional<std::string> buildArrow(const Expr &E, const ASTContext &Context); 114 buildAccess(const Expr &E, ASTContext &Context,
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | ScalarEvolutionExpressions.h | 763 const SCEV *visitPtrToIntExpr(const SCEVPtrToIntExpr *Expr) { in visitPtrToIntExpr() argument 764 const SCEV *Operand = ((SC *)this)->visit(Expr->getOperand()); in visitPtrToIntExpr() 765 return Operand == Expr->getOperand() in visitPtrToIntExpr() 766 ? Expr in visitPtrToIntExpr() 767 : SE.getPtrToIntExpr(Operand, Expr->getType()); in visitPtrToIntExpr() 770 const SCEV *visitTruncateExpr(const SCEVTruncateExpr *Expr) { in visitTruncateExpr() argument 771 const SCEV *Operand = ((SC *)this)->visit(Expr->getOperand()); in visitTruncateExpr() 772 return Operand == Expr->getOperand() in visitTruncateExpr() 773 ? Expr in visitTruncateExpr() 774 : SE.getTruncateExpr(Operand, Expr->getType()); in visitTruncateExpr() [all …]
|