/freebsd/contrib/llvm-project/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 | OpenACCClause.cpp | 62 Expr *ConditionExpr, in Create() 69 SourceLocation LParenLoc, Expr *ConditionExpr, in OpenACCIfClause() 82 Expr *ConditionExpr, in Create() 91 Expr *ConditionExpr, SourceLocation EndLoc) in OpenACCSelfClause() 118 Expr *IntExpr, in OpenACCNumWorkersClause() 129 SourceLocation LParenLoc, Expr *IntExpr, in Create() 139 Expr *IntExpr, in OpenACCVectorLengthClause() 150 SourceLocation LParenLoc, Expr *IntExpr, in Create() 159 SourceLocation LParenLoc, Expr *IntExpr, in OpenACCAsyncClause() 171 Expr *IntExpr, in Create() [all …]
|
H A D | OpenMPClause.cpp | 343 OMPOrderedClause *OMPOrderedClause::Create(const ASTContext &C, Expr *Num, in Create() 348 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in Create() 360 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in CreateEmpty() 370 Expr *NumIterations) { in setLoopNumIterations() 372 getTrailingObjects<Expr *>()[NumLoop] = NumIterations; in setLoopNumIterations() 375 ArrayRef<Expr *> OMPOrderedClause::getLoopNumIterations() const { in getLoopNumIterations() 376 return llvm::ArrayRef(getTrailingObjects<Expr *>(), NumberOfLoops); in getLoopNumIterations() 379 void OMPOrderedClause::setLoopCounter(unsigned NumLoop, Expr *Counter) { in setLoopCounter() 381 getTrailingObjects<Expr *>()[NumberOfLoops + NumLoop] = Counter; in setLoopCounter() 384 Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) { in getLoopCounter() [all …]
|
/freebsd/contrib/llvm-project/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 …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
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() 34 template <typename... FnTys> Expr *IgnoreExprNodes(Expr *E, FnTys &&... Fns) { in IgnoreExprNodes() 35 Expr *LastE = nullptr; in IgnoreExprNodes() 44 const Expr *IgnoreExprNodes(const Expr *E, FnTys &&...Fns) { in IgnoreExprNodes() 45 return IgnoreExprNodes(const_cast<Expr *>(E), std::forward<FnTys>(Fns)...); in IgnoreExprNodes() 48 inline Expr *IgnoreImplicitCastsSingleStep(Expr *E) { in IgnoreImplicitCastsSingleStep() 58 inline Expr *IgnoreImplicitCastsExtraSingleStep(Expr *E) { in IgnoreImplicitCastsExtraSingleStep() 62 Expr *SubE = IgnoreImplicitCastsSingleStep(E); in IgnoreImplicitCastsExtraSingleStep() 75 inline Expr *IgnoreCastsSingleStep(Expr *E) { in IgnoreCastsSingleStep() [all …]
|
H A D | Expr.h | 80 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 | ExprOpenMP.h | 23 : public Expr, 24 private llvm::TrailingObjects<OMPArrayShapingExpr, Expr *, SourceRange> { 34 OMPArrayShapingExpr(QualType ExprTy, Expr *Op, SourceLocation L, 35 SourceLocation R, ArrayRef<Expr *> Dims); 39 : Expr(OMPArrayShapingExprClass, Shell), NumDims(NumDims) {} in OMPArrayShapingExpr() 42 void setDimensions(ArrayRef<Expr *> Dims); 45 void setBase(Expr *Op) { getTrailingObjects<Expr *>()[NumDims] = Op; } in setBase() 50 unsigned numTrailingObjects(OverloadToken<Expr *>) const { in numTrailingObjects() argument 61 Expr *Op, SourceLocation L, 62 SourceLocation R, ArrayRef<Expr *> Dims, [all …]
|
H A D | OpenACCClause.h | 316 Expr *ConditionExpr = nullptr; 320 SourceLocation LParenLoc, Expr *ConditionExpr, in OpenACCClauseWithCondition() 329 const Expr *getConditionExpr() const { return ConditionExpr; } in getConditionExpr() 330 Expr *getConditionExpr() { return ConditionExpr; } in getConditionExpr() 352 Expr *ConditionExpr, SourceLocation EndLoc); 359 SourceLocation LParenLoc, Expr *ConditionExpr, 366 Expr *ConditionExpr, SourceLocation EndLoc); 374 Expr *ConditionExpr, SourceLocation EndLoc); 379 MutableArrayRef<Expr *> Exprs; 388 void setExprs(MutableArrayRef<Expr *> NewExprs) { in setExprs() [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; 183 Expr *Combiner = nullptr; 185 Expr *Initializer = nullptr; [all …]
|
H A D | StmtOpenMP.h | 650 void setTaskReductionRefExpr(Expr *E) { Data->getChildren()[0] = E; } in setTaskReductionRefExpr() 669 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, Expr *TaskRedRef, 681 Expr *getTaskReductionRefExpr() { in getTaskReductionRefExpr() 682 return cast_or_null<Expr>(Data->getChildren()[0]); in getTaskReductionRefExpr() 684 const Expr *getTaskReductionRefExpr() const { in getTaskReductionRefExpr() 725 Expr *LB; 728 Expr *UB; 731 Expr *EUB; 735 Expr *Init; 738 Expr *Cond; [all …]
|
/freebsd/contrib/llvm-project/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 in ResolvePartial() 77 ResolveFullPath(StringRef Expr,llvm::SmallVectorImpl<char> & Output) ResolveFullPath() argument [all...] |
/freebsd/contrib/llvm-project/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 …]
|
/freebsd/contrib/llvm-project/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 …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 82 ExprResult Sema::ActOnNoexceptSpec(Expr *NoexceptExpr, in ActOnNoexceptSpec() 908 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility() 996 CanThrowResult Sema::canCalleeThrow(Sema &S, const Expr *E, const Decl *D, in canCalleeThrow() 1056 if (const Expr *Init = VD->getInit()) in canVarDeclThrow() 1116 case Expr::ConstantExprClass: in canThrow() 1119 case Expr::CXXThrowExprClass: in canThrow() 1123 case Expr::CXXDynamicCastExprClass: { in canThrow() 1136 case Expr::CXXTypeidExprClass: in canThrow() 1145 case Expr::CallExprClass: in canThrow() 1146 case Expr::CXXMemberCallExprClass: 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 | SemaAMDGPU.cpp | 33 Expr *ArgExpr = TheCall->getArg(SizeIdx); in CheckAMDGCNBuiltinFunctionCall() 72 Expr::EvalResult ArgResult; in CheckAMDGCNBuiltinFunctionCall() 102 Expr::EvalResult ArgResult1; in CheckAMDGCNBuiltinFunctionCall() 112 checkAMDGPUFlatWorkGroupSizeArguments(Sema &S, Expr *MinExpr, Expr *MaxExpr, in checkAMDGPUFlatWorkGroupSizeArguments() 143 Expr *MinExpr, Expr *MaxExpr) { in CreateAMDGPUFlatWorkGroupSizeAttr() 155 Expr *MinExpr, Expr *MaxExpr) { in addAMDGPUFlatWorkGroupSizeAttr() 162 Expr *MinExpr = AL.getArgAsExpr(0); in handleAMDGPUFlatWorkGroupSizeAttr() 163 Expr *MaxExpr = AL.getArgAsExpr(1); in handleAMDGPUFlatWorkGroupSizeAttr() 168 static bool checkAMDGPUWavesPerEUArguments(Sema &S, Expr *MinExpr, in checkAMDGPUWavesPerEUArguments() 169 Expr *MaxExpr, in checkAMDGPUWavesPerEUArguments() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMMCExpr.h | 35 const MCExpr *Expr; variable 37 explicit ARMMCExpr(VariantKind Kind, const MCExpr *Expr) in ARMMCExpr() argument 38 : Kind(Kind), Expr(Expr) {} in ARMMCExpr() 44 static const ARMMCExpr *create(VariantKind Kind, const MCExpr *Expr, 47 static const ARMMCExpr *createUpper16(const MCExpr *Expr, MCContext &Ctx) { in createUpper16() argument 48 return create(VK_ARM_HI16, Expr, Ctx); in createUpper16() 51 static const ARMMCExpr *createLower16(const MCExpr *Expr, MCContext &Ctx) { in createLower16() argument 52 return create(VK_ARM_LO16, Expr, Ctx); in createLower16() 55 static const ARMMCExpr *createUpper8_15(const MCExpr *Expr, MCContext &Ctx) { in createUpper8_15() argument 56 return create(VK_ARM_HI_8_15, Expr, Ctx); in createUpper8_15() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaAMDGPU.h | 32 CreateAMDGPUFlatWorkGroupSizeAttr(const AttributeCommonInfo &CI, Expr *Min, 33 Expr *Max); 38 Expr *Min, Expr *Max); 42 CreateAMDGPUWavesPerEUAttr(const AttributeCommonInfo &CI, Expr *Min, 43 Expr *Max); 48 Expr *Min, Expr *Max); 52 CreateAMDGPUMaxNumWorkGroupsAttr(const AttributeCommonInfo &CI, Expr *XExpr, 53 Expr *YExpr, Expr *ZExpr); 58 Expr *XExpr, Expr *YExpr, Expr *ZExpr);
|
H A D | SemaOpenMP.h | 115 VerifyPositiveIntegerConstantInClause(Expr *Op, OpenMPClauseKind CKind, 125 SourceLocation RParenLoc, Expr *ExecConfig); 193 Expr *Op); 225 ArrayRef<Expr *> VarList); 228 ArrayRef<Expr *> VarList); 231 ArrayRef<Expr *> VarList, 268 void ActOnOpenMPDeclareReductionCombinerEnd(Decl *D, Expr *Combiner); 273 void ActOnOpenMPDeclareReductionInitializerEnd(Decl *D, Expr *Initializer, 289 Expr *MapperVarRef, ArrayRef<OMPClause *> Clauses, 315 std::optional<Expr *> Indirect; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldChecker.cpp | 57 bool evaluate(StringRef Expr) const { in evaluate() 59 Expr = Expr.trim(); in evaluate() 60 size_t EQIdx = Expr.find('='); in evaluate() 65 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate() 71 return handleError(Expr, LHSResult); in evaluate() 73 return handleError(Expr, unexpectedToken(RemainingExpr, LHSExpr, "")); in evaluate() 76 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() 81 return handleError(Expr, RHSResult); in evaluate() 83 return handleError(Expr, unexpectedToken(RemainingExpr, RHSExpr, "")); in evaluate() 86 Checker.ErrStream << "Expression '" << Expr << "' is false: " in evaluate() [all …]
|
/freebsd/contrib/llvm-project/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, Asm, 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMMCInstLower.cpp | 44 const MCExpr *Expr = in GetSymbolRef() local 52 Expr = in GetSymbolRef() 54 Expr = ARMMCExpr::createLower16(Expr, OutContext); in GetSymbolRef() 57 Expr = in GetSymbolRef() 59 Expr = ARMMCExpr::createUpper16(Expr, OutContext); in GetSymbolRef() 62 Expr = MCSymbolRefExpr::create(Symbol, SymbolVariant, OutContext); in GetSymbolRef() 63 Expr = ARMMCExpr::createLower0_7(Expr, OutContext); in GetSymbolRef() 66 Expr = MCSymbolRefExpr::create(Symbol, SymbolVariant, OutContext); in GetSymbolRef() 67 Expr = ARMMCExpr::createLower8_15(Expr, OutContext); in GetSymbolRef() 70 Expr = MCSymbolRefExpr::create(Symbol, SymbolVariant, OutContext); in GetSymbolRef() [all …]
|
/freebsd/contrib/llvm-project/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 …]
|