Home
last modified time | relevance | path

Searched refs:Expr (Results 1 – 25 of 780) sorted by relevance

12345678910>>...32

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprClassification.cpp24 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 DOpenACCClause.cpp73 Expr *ConditionExpr, in Create()
80 SourceLocation LParenLoc, Expr *ConditionExpr, in OpenACCIfClause()
93 Expr *ConditionExpr, in Create()
95 void *Mem = C.Allocate(OpenACCSelfClause::totalSizeToAlloc<Expr *>(1)); in Create()
103 ArrayRef<Expr *> VarList, in Create()
106 C.Allocate(OpenACCSelfClause::totalSizeToAlloc<Expr *>(VarList.size())); in Create()
112 ArrayRef<Expr *> VarList, in OpenACCSelfClause()
122 Expr *ConditionExpr, SourceLocation EndLoc) in OpenACCSelfClause()
151 Expr *IntExpr, in OpenACCNumWorkersClause()
163 ArrayRef<Expr *> IntExprs, in OpenACCGangClause()
[all …]
H A DOpenMPClause.cpp344 OMPOrderedClause *OMPOrderedClause::Create(const ASTContext &C, Expr *Num, in Create()
349 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in Create()
361 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * NumLoops)); in CreateEmpty()
371 Expr *NumIterations) { in setLoopNumIterations()
376 ArrayRef<Expr *> OMPOrderedClause::getLoopNumIterations() const { in getLoopNumIterations()
380 void OMPOrderedClause::setLoopCounter(unsigned NumLoop, Expr *Counter) { in setLoopCounter()
385 Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) { in getLoopCounter()
390 const Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) const { in getLoopCounter()
428 void OMPPrivateClause::setPrivateCopies(ArrayRef<Expr *> VL) { in setPrivateCopies()
437 ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL) { in Create()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td59 def Expr : StmtNode<ValueStmt, 1>;
60 def PredefinedExpr : StmtNode<Expr>;
61 def SYCLUniqueStableNameExpr : StmtNode<Expr>;
62 def DeclRefExpr : StmtNode<Expr>;
63 def IntegerLiteral : StmtNode<Expr>;
64 def FixedPointLiteral : StmtNode<Expr>;
65 def FloatingLiteral : StmtNode<Expr>;
66 def ImaginaryLiteral : StmtNode<Expr>;
67 def StringLiteral : StmtNode<Expr>;
68 def CharacterLiteral : StmtNode<Expr>;
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DIgnoreExpr.h23 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 DExpr.h80 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 DExprOpenMP.h23 : 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 DExprCXX.h94 CXXOperatorCallExpr(OverloadedOperatorKind OpKind, Expr *Fn,
95 ArrayRef<Expr *> Args, QualType Ty, ExprValueKind VK,
103 Create(const ASTContext &Ctx, OverloadedOperatorKind OpKind, Expr *Fn,
104 ArrayRef<Expr *> Args, QualType Ty, ExprValueKind VK,
182 CXXMemberCallExpr(Expr *Fn, ArrayRef<Expr *> Args, QualType Ty,
189 static CXXMemberCallExpr *Create(const ASTContext &Ctx, Expr *Fn,
190 ArrayRef<Expr *> Args, QualType Ty,
201 Expr *getImplicitObjectArgument() const;
241 CUDAKernelCallExpr(Expr *Fn, CallExpr *Config, ArrayRef<Expr *> Args,
248 static CUDAKernelCallExpr *Create(const ASTContext &Ctx, Expr *Fn,
[all …]
H A DExprObjC.h51 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 DOpenACCClause.h355 Expr *ConditionExpr = nullptr;
359 SourceLocation LParenLoc, Expr *ConditionExpr, in OpenACCClauseWithCondition()
368 const Expr *getConditionExpr() const { return ConditionExpr; } in getConditionExpr()
369 Expr *getConditionExpr() { return ConditionExpr; } in getConditionExpr()
391 Expr *ConditionExpr, SourceLocation EndLoc);
398 SourceLocation LParenLoc, Expr *ConditionExpr,
406 private llvm::TrailingObjects<OpenACCSelfClause, Expr *> {
417 Expr *ConditionExpr, SourceLocation EndLoc);
419 ArrayRef<Expr *> VarList, SourceLocation EndLoc);
423 ArrayRef<Expr *> getExprs() const { return getTrailingObjects(NumExprs); } in getExprs()
[all …]
H A DDeclOpenMP.h119 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 …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DTildeExpressionResolver.cpp33 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 DSetTheory.cpp40 void apply(SetTheory &ST, const DagInit *Expr, RecSet &Elts, in apply()
42 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply()
48 void apply(SetTheory &ST, const 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, const DagInit *Expr, RecSet &Elts, in apply()
66 if (Expr->arg_size() != 2) in apply()
68 Expr->getAsString()); in apply()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCodeBuilders.cpp22 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 DSemaExceptionSpec.cpp84 ExprResult Sema::ActOnNoexceptSpec(Expr *NoexceptExpr, in ActOnNoexceptSpec()
909 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility()
997 CanThrowResult Sema::canCalleeThrow(Sema &S, const Expr *E, const Decl *D, in canCalleeThrow()
1057 if (const Expr *Init = VD->getInit()) in canVarDeclThrow()
1117 case Expr::ConstantExprClass: in canThrow()
1120 case Expr::CXXThrowExprClass: in canThrow()
1124 case Expr::CXXDynamicCastExprClass: { in canThrow()
1137 case Expr::CXXTypeidExprClass: in canThrow()
1146 case Expr::CallExprClass: in canThrow()
1147 case Expr::CXXMemberCallExprClass: in canThrow()
[all …]
H A DSemaFixItUtils.cpp50 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 DSemaAMDGPU.cpp43 Expr *ArgExpr = TheCall->getArg(SizeIdx); in CheckAMDGCNBuiltinFunctionCall()
93 Expr::EvalResult ArgResult; in CheckAMDGCNBuiltinFunctionCall()
123 Expr::EvalResult ArgResult1; in CheckAMDGCNBuiltinFunctionCall()
137 Expr *Args[2]; in checkMovDPPFunctionCall()
171 checkAMDGPUFlatWorkGroupSizeArguments(Sema &S, Expr *MinExpr, Expr *MaxExpr, in checkAMDGPUFlatWorkGroupSizeArguments()
202 Expr *MinExpr, Expr *MaxExpr) { in CreateAMDGPUFlatWorkGroupSizeAttr()
214 Expr *MinExpr, Expr *MaxExpr) { in addAMDGPUFlatWorkGroupSizeAttr()
221 Expr *MinExpr = AL.getArgAsExpr(0); in handleAMDGPUFlatWorkGroupSizeAttr()
222 Expr *MaxExpr = AL.getArgAsExpr(1); in handleAMDGPUFlatWorkGroupSizeAttr()
227 static bool checkAMDGPUWavesPerEUArguments(Sema &S, Expr *MinExpr, in checkAMDGPUWavesPerEUArguments()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCAsmInfo.cpp64 const MCSpecifierExpr *Mips::createGpOff(const MCExpr *Expr, Mips::Specifier S, in createGpOff() argument
66 Expr = MCSpecifierExpr::create(Expr, Mips::S_GPREL, Ctx); in createGpOff()
67 Expr = MCSpecifierExpr::create(Expr, Mips::S_NEG, Ctx); in createGpOff()
68 return MCSpecifierExpr::create(Expr, S, Ctx); in createGpOff()
72 const MCSpecifierExpr &Expr) { in printImpl() argument
75 switch (Expr.getSpecifier()) { in printImpl()
83 MAI.printExpr(OS, *Expr.getSubExpr()); in printImpl()
160 if (Expr.evaluateAsAbsolute(AbsVal)) in printImpl()
163 MAI.printExpr(OS, *Expr.getSubExpr()); in printImpl()
182 static bool evaluate(const MCSpecifierExpr &Expr, MCValue &Res, in evaluate() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCExpr.cpp349 static void knownBitsMapHelper(const MCExpr *Expr, KnownBitsMap &KBM,
352 static void binaryOpKnownBitsMapHelper(const MCExpr *Expr, KnownBitsMap &KBM, in binaryOpKnownBitsMapHelper() argument
355 const MCBinaryExpr *BExpr = cast<MCBinaryExpr>(Expr); in binaryOpKnownBitsMapHelper()
366 KBM[Expr] = KnownBits(BitWidth); in binaryOpKnownBitsMapHelper()
369 KBM[Expr] = KnownBits::add(LHSKnown, RHSKnown); in binaryOpKnownBitsMapHelper()
372 KBM[Expr] = LHSKnown & RHSKnown; in binaryOpKnownBitsMapHelper()
375 KBM[Expr] = KnownBits::sdiv(LHSKnown, RHSKnown); in binaryOpKnownBitsMapHelper()
379 KBM[Expr] = fromOptionalToKnownBits(CompareRes); in binaryOpKnownBitsMapHelper()
384 KBM[Expr] = fromOptionalToKnownBits(CompareRes); in binaryOpKnownBitsMapHelper()
389 KBM[Expr] = fromOptionalToKnownBits(CompareRes); in binaryOpKnownBitsMapHelper()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaAMDGPU.h34 CreateAMDGPUFlatWorkGroupSizeAttr(const AttributeCommonInfo &CI, Expr *Min,
35 Expr *Max);
40 Expr *Min, Expr *Max);
44 CreateAMDGPUWavesPerEUAttr(const AttributeCommonInfo &CI, Expr *Min,
45 Expr *Max);
50 Expr *Min, Expr *Max);
54 CreateAMDGPUMaxNumWorkGroupsAttr(const AttributeCommonInfo &CI, Expr *XExpr,
55 Expr *YExpr, Expr *ZExpr);
60 Expr *XExpr, Expr *YExpr, Expr *ZExpr);
H A DSemaOpenMP.h116 VerifyPositiveIntegerConstantInClause(Expr *Op, OpenMPClauseKind CKind,
126 SourceLocation RParenLoc, Expr *ExecConfig);
194 Expr *Op);
226 ArrayRef<Expr *> VarList);
229 ArrayRef<Expr *> VarList);
232 ArrayRef<Expr *> VarList,
269 void ActOnOpenMPDeclareReductionCombinerEnd(Decl *D, Expr *Combiner);
274 void ActOnOpenMPDeclareReductionInitializerEnd(Decl *D, Expr *Initializer,
290 Expr *MapperVarRef, ArrayRef<OMPClause *> Clauses,
316 std::optional<Expr *> Indirect;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp54 bool evaluate(StringRef Expr) const { in evaluate()
56 Expr = Expr.trim(); in evaluate()
57 size_t EQIdx = Expr.find('='); in evaluate()
62 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate()
68 return handleError(Expr, LHSResult); in evaluate()
70 return handleError(Expr, unexpectedToken(RemainingExpr, LHSExpr, "")); in evaluate()
73 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate()
78 return handleError(Expr, RHSResult); in evaluate()
80 return handleError(Expr, unexpectedToken(RemainingExpr, RHSExpr, "")); in evaluate()
83 Checker.ErrStream << "Expression '" << Expr << "' is false: " in evaluate()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MCAsmInfo.cpp56 StringRef AArch64::getSpecifierName(const MCSpecifierExpr &Expr) { in getSpecifierName() argument
58 switch (static_cast<uint32_t>(Expr.getSpecifier())) { in getSpecifierName()
122 static bool evaluate(const MCSpecifierExpr &Expr, MCValue &Res, in evaluate() argument
124 if (!Expr.getSubExpr()->evaluateAsRelocatable(Res, Asm)) in evaluate()
126 Res.setSpecifier(Expr.getSpecifier()); in evaluate()
183 raw_ostream &OS, const MCSpecifierExpr &Expr) const { in printSpecifierExpr()
184 if (auto *AE = dyn_cast<AArch64AuthMCExpr>(&Expr)) in printSpecifierExpr()
186 OS << AArch64::getSpecifierName(Expr); in printSpecifierExpr()
187 printExpr(OS, *Expr.getSubExpr()); in printSpecifierExpr()
191 const MCSpecifierExpr &Expr, MCValue &Res, const MCAssembler *Asm) const { in evaluateAsRelocatableImpl() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.h44 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 …]
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DExprMutationAnalyzer.h26 using ResultMap = llvm::DenseMap<const Expr *, const Stmt *>;
45 const Stmt *findMutation(const Expr *Exp);
48 const Stmt *findPointeeMutation(const Expr *Exp);
52 using MutationFinder = const Stmt *(Analyzer::*)(const Expr *);
54 const Stmt *findMutationMemoized(const Expr *Exp,
66 const Stmt *findDirectMutation(const Expr *Exp);
67 const Stmt *findMemberMutation(const Expr *Exp);
68 const Stmt *findArrayElementMutation(const Expr *Exp);
69 const Stmt *findCastMutation(const Expr *Exp);
70 const Stmt *findRangeLoopMutation(const Expr *Exp);
[all …]

12345678910>>...32