Lines Matching refs:DeclRefExpr
66 DeclRefExpr *PrivateCopy = nullptr;
70 const Expr *RefExpr, DeclRefExpr *PrivateCopy, in DSAVarData()
86 DeclRefExpr *PrivateCopy = nullptr;
306 DeclRefExpr *PrivateCopy = nullptr);
339 cast<DeclRefExpr>(Stack.back().first[Level].TaskgroupReductionRef) in isTaskgroupReductionRef()
899 DeclRefExpr *PrivateCopy) { in addDSA()
935 DeclRefExpr *OrigRef = nullptr) { in buildVarDecl()
954 static DeclRefExpr *buildDeclRefExpr(Sema &S, VarDecl *D, QualType Ty, in buildDeclRefExpr()
959 return DeclRefExpr::Create(S.getASTContext(), NestedNameSpecifierLoc(), in buildDeclRefExpr()
1488 if (isa<DeclRefExpr>(EI->getAssociatedExpression())) in isOpenMPCapturedByRef()
1782 auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens()); in EndOpenMPDSABlock()
1819 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
1978 return DeclRefExpr::Create(Context, NestedNameSpecifierLoc(), in ActOnOpenMPIdExpression()
2000 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
2028 auto *DE = cast<DeclRefExpr>(RefExpr); in CheckOMPThreadPrivateDecl()
2214 DeclRefExpr *DRE = buildDeclRefExpr( in VisitSubCaptures()
2222 void VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
2857 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr, in buildCapture()
2869 static ExprResult buildCapture(Sema &S, Expr *CaptureExpr, DeclRefExpr *&Ref) { in buildCapture()
3723 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
3750 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
3820 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
3889 if (const auto *DRE = dyn_cast<DeclRefExpr>(Step)) in ActOnOpenMPDeclareSimdDirective()
4015 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
4019 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
4021 DeclRefExpr *
4022 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
4035 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
4188 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
4221 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
4256 if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) { in getInitLCDecl()
4445 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in tryBuildCapture()
4455 DeclRefExpr *Ref = nullptr; in tryBuildCapture()
4464 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildNumIterations()
4560 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildPreCond()
4589 DeclRefExpr *OpenMPIterationSpaceChecker::buildCounterVar( in buildCounterVar()
4590 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in buildCounterVar()
4595 DeclRefExpr *Ref = buildDeclRefExpr( in buildCounterVar()
4605 return cast<DeclRefExpr>(LCRef); in buildCounterVar()
4632 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc, in buildOrderedLoopData()
4730 DeclRefExpr *Ref = buildCapture(*this, D, ISC.getLoopDeclRefExpr(), in ActOnOpenMPLoopInitialization()
4760 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in checkOpenMPIterationSpace()
4945 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildCounterInit()
4968 llvm::MapVector<const Expr *, DeclRefExpr *> *Captures = nullptr) { in buildCounterUpdate()
5076 const llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildPreInits()
5141 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in checkOpenMPLoop()
5168 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar); in checkOpenMPLoop()
5627 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl()); in checkOpenMPLoop()
5628 DeclRefExpr *CounterVar = buildDeclRefExpr( in checkOpenMPLoop()
5789 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPSimdDirective()
5828 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForDirective()
5864 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForSimdDirective()
6066 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForDirective()
6107 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForSimdDirective()
7106 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForDirective()
7428 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTaskLoopSimdDirective()
7564 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeParallelForSimdDirective()
7620 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeSimdDirective()
7676 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForSimdDirective()
7731 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetSimdDirective()
7835 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeSimdDirective()
7897 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
8080 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
8137 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
8194 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeSimdDirective()
8851 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPIfClause()
8968 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumThreadsClause()
9427 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPScheduleClause()
9789 auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr); in getPrivateItem()
9918 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPPrivateClause()
9922 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPPrivateClause()
9925 DeclRefExpr *Ref = nullptr; in ActOnOpenMPPrivateClause()
10161 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPFirstprivateClause()
10207 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPFirstprivateClause()
10210 DeclRefExpr *Ref = nullptr; in ActOnOpenMPFirstprivateClause()
10338 DeclRefExpr *PseudoSrcExpr = in ActOnOpenMPLastprivateClause()
10343 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPLastprivateClause()
10355 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLastprivateClause()
10433 DeclRefExpr *Ref = nullptr; in ActOnOpenMPSharedClause()
10453 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
10484 DeclRefExpr *CapturedExpr = nullptr;
10498 DeclRefExpr *getCapturedExpr() { return CapturedExpr; } in getCapturedExpr()
11171 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in actOnOMPReductionKindClause()
11174 DeclRefExpr *LHSDRE = buildDeclRefExpr(S, LHSVD, Type, ELoc); in actOnOMPReductionKindClause()
11175 DeclRefExpr *RHSDRE = buildDeclRefExpr(S, RHSVD, Type, ELoc); in actOnOMPReductionKindClause()
11177 auto *DRDRef = DeclareReductionRef.getAs<DeclRefExpr>(); in actOnOMPReductionKindClause()
11306 DeclRefExpr *PrivateDRE = buildDeclRefExpr(S, PrivateVD, PrivateTy, ELoc); in actOnOMPReductionKindClause()
11407 DeclRefExpr *Ref = nullptr; in actOnOMPReductionKindClause()
11618 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPLinearClause()
11619 DeclRefExpr *PrivateRef = buildDeclRefExpr(*this, Private, Type, ELoc); in ActOnOpenMPLinearClause()
11623 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLinearClause()
11648 DeclRefExpr *InitRef = buildDeclRefExpr(*this, Init, Type, ELoc); in ActOnOpenMPLinearClause()
11702 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, in FinishOpenMPLinearClause()
11748 auto *DE = cast<DeclRefExpr>(SimpleRefExpr); in FinishOpenMPLinearClause()
11843 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAlignedClause()
11894 auto *DE = dyn_cast<DeclRefExpr>(RefExpr); in ActOnOpenMPCopyinClause()
11931 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr( in ActOnOpenMPCopyinClause()
11936 DeclRefExpr *PseudoDstExpr = in ActOnOpenMPCopyinClause()
12045 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(*this, SrcVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
12049 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
12268 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDeviceClause()
12438 if (auto *CurE = dyn_cast<DeclRefExpr>(E)) { in checkMapClauseExpressionBase()
13409 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumTeamsClause()
13436 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPThreadLimitClause()
13547 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDistScheduleClause()
13802 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPUseDevicePtrClause()
13807 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
13813 DeclRefExpr *VDInitRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
13821 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDevicePtrClause()
13916 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPIsDevicePtrClause()
13920 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPIsDevicePtrClause()