Home
last modified time | relevance | path

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

12345678910>>...28

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprClassification.cpp24 using Cl = Expr::Classification;
121 case Expr::ObjCIsaExprClass: in ClassifyInternal()
138 case Expr::TypoExprClass: in ClassifyInternal()
162 case Expr::CXXNewExprClass: in ClassifyInternal()
176 case Expr::BlockExprClass: in ClassifyInternal()
194 case Expr::AsTypeExprClass: in ClassifyInternal()
196 case Expr::AtomicExprClass: in ClassifyInternal()
200 case Expr::NoInitExprClass: in ClassifyInternal()
303 case Expr::ParenExprClass: in ClassifyInternal()
321 case Expr::CallExprClass: in ClassifyInternal()
[all …]
H A DOpenMPClause.cpp516 ArrayRef<Expr *> DstExprs, ArrayRef<Expr *> AssignmentOps, in Create()
590 ArrayRef<Expr *> IL, Expr *Step, Expr *CalcStep, Stmt *PreInit, in Create()
682 ArrayRef<Expr *> DstExprs, ArrayRef<Expr *> AssignmentOps) { in Create()
723 ArrayRef<Expr *> DstExprs, ArrayRef<Expr *> AssignmentOps) { in Create()
798 ArrayRef<Expr *> Privates, ArrayRef<Expr *> LHSExprs, in Create()
799 ArrayRef<Expr *> RHSExprs, ArrayRef<Expr *> ReductionOps, in Create()
800 ArrayRef<Expr *> CopyOps, ArrayRef<Expr *> CopyArrayTemps, in Create()
870 ArrayRef<Expr *> Privates, ArrayRef<Expr *> LHSExprs, in Create()
932 ArrayRef<Expr *> Privates, ArrayRef<Expr *> LHSExprs, in Create()
933 ArrayRef<Expr *> RHSExprs, ArrayRef<Expr *> ReductionOps, in Create()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td61 def DeclRefExpr : StmtNode<Expr>;
68 def ParenExpr : StmtNode<Expr>;
76 def CallExpr : StmtNode<Expr>;
77 def MemberExpr : StmtNode<Expr>;
78 def CastExpr : StmtNode<Expr, 1>;
94 def NoInitExpr : StmtNode<Expr>;
98 def VAArgExpr : StmtNode<Expr>;
108 def AtomicExpr : StmtNode<Expr>;
112 def StmtExpr : StmtNode<Expr>;
113 def ChooseExpr : StmtNode<Expr>;
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExprOpenMP.h64 OMPArraySectionExpr(Expr *Base, Expr *LowerBound, Expr *Length, Expr *Stride, in OMPArraySectionExpr()
85 Expr *getBase() { return cast<Expr>(SubExprs[BASE]); } in getBase()
86 const Expr *getBase() const { return cast<Expr>(SubExprs[BASE]); } in getBase()
94 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); } in getLowerBound()
102 Expr *getLength() { return cast_or_null<Expr>(SubExprs[LENGTH]); } in getLength()
103 const Expr *getLength() const { return cast_or_null<Expr>(SubExprs[LENGTH]); } in getLength()
108 Expr *getStride() { return cast_or_null<Expr>(SubExprs[STRIDE]); } in getStride()
147 : public Expr,
169 void setBase(Expr *Op) { getTrailingObjects<Expr *>()[NumDims] = Op; } in setBase()
214 Expr *getBase() { return getTrailingObjects<Expr *>()[NumDims]; } in getBase()
[all …]
H A DIgnoreExpr.h23 inline Expr *IgnoreExprNodesImpl(Expr *E) { return E; } in IgnoreExprNodesImpl()
44 const Expr *IgnoreExprNodes(const Expr *E, FnTys &&...Fns) { in IgnoreExprNodes()
48 inline Expr *IgnoreImplicitCastsSingleStep(Expr *E) { in IgnoreImplicitCastsSingleStep()
58 inline Expr *IgnoreImplicitCastsExtraSingleStep(Expr *E) { in IgnoreImplicitCastsExtraSingleStep()
75 inline Expr *IgnoreCastsSingleStep(Expr *E) { in IgnoreCastsSingleStep()
91 inline Expr *IgnoreLValueCastsSingleStep(Expr *E) { in IgnoreLValueCastsSingleStep()
101 inline Expr *IgnoreBaseCastsSingleStep(Expr *E) { in IgnoreBaseCastsSingleStep()
111 inline Expr *IgnoreImplicitSingleStep(Expr *E) { in IgnoreImplicitSingleStep()
137 inline Expr *IgnoreImplicitAsWrittenSingleStep(Expr *E) { in IgnoreImplicitAsWrittenSingleStep()
144 inline Expr *IgnoreParensOnlySingleStep(Expr *E) { in IgnoreParensOnlySingleStep()
[all …]
H A DExpr.h116 Expr(const Expr&) = delete;
117 Expr(Expr &&) = delete;
118 Expr &operator=(const Expr&) = delete;
119 Expr &operator=(Expr&&) = delete;
1713 Expr *getSubExpr() { return cast<Expr>(Val); } in getSubExpr()
2122 Expr *getSubExpr() { return cast<Expr>(Val); } in getSubExpr()
2723 MatrixSubscriptExpr(Expr *Base, Expr *RowIdx, Expr *ColumnIdx, QualType T, in MatrixSubscriptExpr()
3516 Expr *getSubExpr() { return cast<Expr>(Op); } in getSubExpr()
4226 Expr *cond, Expr *lhs, Expr *rhs, in BinaryConditionalOperator()
4535 ChooseExpr(SourceLocation BLoc, Expr *cond, Expr *lhs, Expr *rhs, QualType t, in ChooseExpr()
[all …]
H A DExprCXX.h180 CXXMemberCallExpr(Expr *Fn, ArrayRef<Expr *> Args, QualType Ty,
301 Expr *getSemanticForm() { return cast<Expr>(SemanticForm); } in getSemanticForm()
813 Expr *getSubExpr() { return static_cast<Expr*>(SubExpr); } in getSubExpr()
1028 Expr *getIdx() { return cast<Expr>(SubExprs[IDX_EXPR]); } in getIdx()
1498 Expr *getSubExpr() { return cast<Expr>(SubExpr); } in getSubExpr()
2522 Expr *getArgument() { return cast<Expr>(Argument); } in getArgument()
2644 Expr *getBase() const { return cast<Expr>(Base); } in getBase()
4943 Expr *Common, Expr *Ready, Expr *Suspend, Expr *Resume, in CoroutineSuspendExpr()
4957 Expr *Operand, Expr *Common) in CoroutineSuspendExpr()
5029 Expr *Ready, Expr *Suspend, Expr *Resume,
[all …]
H A DExprObjC.h143 Expr *getSubExpr() { return cast<Expr>(SubExpr); } in getSubExpr()
144 const Expr *getSubExpr() const { return cast<Expr>(SubExpr); } in getSubExpr()
220 Expr **getElements() { return getTrailingObjects<Expr *>(); } in getElements()
264 Expr *Key;
267 Expr *Value;
286 Expr *Key;
287 Expr *Value;
583 const Expr *getBase() const { return cast<Expr>(Base); } in getBase()
584 Expr *getBase() { return cast<Expr>(Base); } in getBase()
1516 Expr *getBase() const { return cast<Expr>(Base); } in getBase()
[all …]
H A DOpenMPClause.h375 Expr *getAllocator() const { return getStmtAs<Expr>(); } in getAllocator()
420 Expr *getAlignment() const { return getStmtAs<Expr>(); } in getAlignment()
658 Expr *getCondition() const { return getStmtAs<Expr>(); } in getCondition()
741 Expr *getSafelen() const { return getStmtAs<Expr>(); } in getSafelen()
776 Expr *getSimdlen() const { return getStmtAs<Expr>(); } in getSimdlen()
4124 ArrayRef<Expr *> IL, Expr *Step, Expr *CalcStep, Stmt *PreInit,
5093 Expr *getDevice() { return cast<Expr>(Device); } in getDevice()
6139 Expr *getNumTeams() { return cast<Expr>(NumTeams); } in getNumTeams()
8730 Expr *getThreadID() { return getStmtAs<Expr>(); } in getThreadID()
9139 Expr *getSize() { return getStmtAs<Expr>(); } in getSize()
[all …]
H A DDeclOpenMP.h129 void setVars(ArrayRef<Expr *> VL);
183 Expr *Combiner = nullptr;
185 Expr *Initializer = nullptr;
187 Expr *In = nullptr;
189 Expr *Out = nullptr;
191 Expr *Priv = nullptr;
193 Expr *Orig = nullptr;
231 void setCombinerData(Expr *InE, Expr *OutE) { in setCombinerData()
257 void setInitializerData(Expr *OrigE, Expr *PrivE) { in setInitializerData()
293 Expr *MapperVarRef = nullptr;
[all …]
H A DStmtOpenMP.h725 Expr *LB;
728 Expr *UB;
731 Expr *EUB;
741 Expr *NLB;
744 Expr *NUB;
772 Expr *Inc;
774 Expr *IL;
776 Expr *LB;
778 Expr *UB;
780 Expr *ST;
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DTildeExpressionResolver.cpp33 StringRef Expr, SmallVectorImpl<char> &Output) { in ResolveExact() argument
37 assert(Expr.empty() || Expr[0] == '~'); in ResolveExact()
39 return !fs::real_path(Expr, Output, true); in ResolveExact()
47 assert(Expr.empty() || Expr[0] == '~'); in ResolvePartial()
53 if (Expr.empty()) in ResolvePartial()
59 Expr = Expr.drop_front(); in ResolvePartial()
63 if (!ThisName.starts_with(Expr)) in ResolvePartial()
78 if (!Expr.starts_with("~")) { in ResolveFullPath()
79 Output.assign(Expr.begin(), Expr.end()); in ResolveFullPath()
88 Output.assign(Expr.begin(), Expr.end()); in ResolveFullPath()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DSetTheory.cpp41 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply()
49 if (Expr->arg_size() < 2) in apply()
51 Expr->getAsString()); in apply()
54 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply()
65 if (Expr->arg_size() != 2) in apply()
67 Expr->getAsString()); in apply()
84 if (Expr->arg_size() != 2) in apply()
86 Expr->getAsString()); in apply()
92 Expr->getAsString()); in apply()
103 Expr->getAsString()); in apply2()
[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()
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()
53 const Expr *Expr = reallyIgnoreImplicit(E); in needParensAfterUnaryOperator() local
54 if (isa<BinaryOperator>(Expr) || isa<AbstractConditionalOperator>(Expr)) in needParensAfterUnaryOperator()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCExpr.h35 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,
48 return create(VK_ARM_HI16, Expr, Ctx); in createUpper16()
52 return create(VK_ARM_LO16, Expr, Ctx); in createLower16()
56 return create(VK_ARM_HI_8_15, Expr, Ctx); in createUpper8_15()
60 return create(VK_ARM_HI_0_7, Expr, Ctx); in createUpper0_7()
64 return create(VK_ARM_LO_8_15, Expr, Ctx); in createLower8_15()
68 return create(VK_ARM_LO_0_7, Expr, Ctx); in createLower0_7()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExceptionSpec.cpp1166 case Expr::CallExprClass: in canThrow()
1281 case Expr::CoawaitExprClass: in canThrow()
1292 case Expr::MemberExprClass: in canThrow()
1295 case Expr::ParenExprClass: in canThrow()
1298 case Expr::StmtExprClass: in canThrow()
1300 case Expr::VAArgExprClass: in canThrow()
1364 case Expr::AsTypeExprClass: in canThrow()
1366 case Expr::BlockExprClass: in canThrow()
1382 case Expr::TypoExprClass: in canThrow()
1388 case Expr::AtomicExprClass: in canThrow()
[all …]
H A DSemaFixItUtils.cpp65 const Expr* Expr = FullExpr->IgnoreImpCasts(); in tryToFixConversion() local
69 isa<CallExpr>(Expr) || in tryToFixConversion()
70 isa<DeclRefExpr>(Expr) || in tryToFixConversion()
71 isa<CastExpr>(Expr) || in tryToFixConversion()
72 isa<CXXNewExpr>(Expr) || in tryToFixConversion()
74 isa<CXXDeleteExpr>(Expr) || in tryToFixConversion()
78 isa<CXXThisExpr>(Expr) || in tryToFixConversion()
79 isa<CXXTypeidExpr>(Expr) || in tryToFixConversion()
84 isa<MemberExpr>(Expr) || in tryToFixConversion()
88 isa<UnaryOperator>(Expr)) in tryToFixConversion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp59 Expr = Expr.trim(); in evaluate()
135 if (Expr.empty()) in getTokenForError()
139 if (isalpha(Expr[0])) in getTokenForError()
145 if (Expr.starts_with("<<") || Expr.starts_with(">>")) in getTokenForError()
176 if (Expr.empty()) in parseBinOpToken()
187 switch (Expr[0]) { in parseBinOpToken()
246 return std::make_pair(unexpectedToken(Expr, Expr, "expected '('"), ""); in evalDecodeOperand()
347 return std::make_pair(unexpectedToken(Expr, Expr, "expected '('"), ""); in evalNextPC()
618 if (Expr.empty()) in evalSimpleExpr()
625 else if (isalpha(Expr[0]) || Expr[0] == '_') in evalSimpleExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCExpr.cpp24 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()
42 switch (Expr->getKind()) { in fixELFSymbolsInTLSFixupsImpl()
50 const MCBinaryExpr *be = cast<MCBinaryExpr>(Expr); in fixELFSymbolsInTLSFixupsImpl()
56 const MCSymbolRefExpr &symRef = *cast<MCSymbolRefExpr>(Expr); in fixELFSymbolsInTLSFixupsImpl()
83 MCExpr const *HexagonMCExpr::getExpr() const { return Expr; } in getExpr()
102 HexagonMCExpr::HexagonMCExpr(MCExpr const *Expr) in HexagonMCExpr() argument
103 : Expr(Expr), MustNotExtend(false), MustExtend(false), S27_2_reloc(false), in HexagonMCExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMMCInstLower.cpp44 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()
63 Expr = ARMMCExpr::createLower0_7(Expr, OutContext); in GetSymbolRef()
67 Expr = ARMMCExpr::createLower8_15(Expr, OutContext); in GetSymbolRef()
71 Expr = ARMMCExpr::createUpper0_7(Expr, OutContext); in GetSymbolRef()
75 Expr = ARMMCExpr::createUpper8_15(Expr, OutContext); in GetSymbolRef()
80 Expr = MCBinaryExpr::createAdd(Expr, in GetSymbolRef()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DExprMutationAnalyzer.h30 const Stmt *findMutation(const Expr *Exp);
33 bool isPointeeMutated(const Expr *Exp) { in isPointeeMutated()
39 const Stmt *findPointeeMutation(const Expr *Exp);
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);
65 const Stmt *findCastMutation(const Expr *Exp);
66 const Stmt *findRangeLoopMutation(const Expr *Exp);
67 const Stmt *findReferenceMutation(const Expr *Exp);
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.h44 class Expr; variable
108 const Expr *IteratorExpr = nullptr;
133 const Expr *Shared = nullptr;
135 const Expr *Ref = nullptr;
137 const Expr *Private = nullptr;
139 const Expr *ReductionOp = nullptr;
140 ReductionData(const Expr *Shared, const Expr *Ref, const Expr *Private, in ReductionData()
171 ReductionCodeGen(ArrayRef<const Expr *> Shareds, ArrayRef<const Expr *> Origs,
1202 ArrayRef<const Expr *> Privates, ArrayRef<const Expr *> LHSExprs,
1203 ArrayRef<const Expr *> RHSExprs, ArrayRef<const Expr *> ReductionOps);
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DSourceCodeBuilders.h28 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,
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCExpr.h35 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 …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DScalarEvolutionExpressions.h775 return Operand == Expr->getOperand() in visitPtrToIntExpr()
776 ? Expr in visitPtrToIntExpr()
783 ? Expr in visitTruncateExpr()
790 ? Expr in visitZeroExtendExpr()
797 ? Expr in visitSignExtendExpr()
824 bool Changed = LHS != Expr->getLHS() || RHS != Expr->getRHS(); in visitUDivExpr()
835 return !Changed ? Expr in visitAddRecExpr()
890 const SCEV *visitUnknown(const SCEVUnknown *Expr) { return Expr; } in visitUnknown() argument
893 return Expr; in visitCouldNotCompute()
916 return Expr; in visitUnknown()
[all …]

12345678910>>...28