Lines Matching refs:DeclRefExpr
76 DeclRefExpr *PrivateCopy = nullptr;
81 const Expr *RefExpr, DeclRefExpr *PrivateCopy, in DSAVarData()
109 DeclRefExpr *PrivateCopy = nullptr;
196 llvm::SmallVector<DeclRefExpr *, 4> DeclareTargetLinkVarDecls;
545 DeclRefExpr *PrivateCopy = nullptr, unsigned Modifier = 0,
583 cast<DeclRefExpr>(getStackElemAtLevel(Level).TaskgroupReductionRef) in isTaskgroupReductionRef()
1087 void addToParentTargetRegionLinkGlobals(DeclRefExpr *E) { in addToParentTargetRegionLinkGlobals()
1101 ArrayRef<DeclRefExpr *> getLinkGlobals() const { in getLinkGlobals()
1490 DeclRefExpr *PrivateCopy, unsigned Modifier, in addDSA()
1530 DeclRefExpr *OrigRef = nullptr) { in buildVarDecl()
1549 static DeclRefExpr *buildDeclRefExpr(Sema &S, VarDecl *D, QualType Ty, in buildDeclRefExpr()
1554 return DeclRefExpr::Create(S.getASTContext(), NestedNameSpecifierLoc(), in buildDeclRefExpr()
2200 if (isa<DeclRefExpr>(EI->getAssociatedExpression())) in isOpenMPCapturedByRef()
2470 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in isOpenMPCapturedDecl()
2729 auto *DeclRefVariant = cast<DeclRefExpr>(A->getVariantFuncRef()); in finalizeOpenMPDelayedAnalysis()
2842 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr,
2865 auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens()); in EndOpenMPDSABlock()
2922 auto *DRE = dyn_cast<DeclRefExpr>(D.Allocator->IgnoreParenImpCasts()); in EndOpenMPDSABlock()
2976 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
3147 return DeclRefExpr::Create(Context, NestedNameSpecifierLoc(), in ActOnOpenMPIdExpression()
3169 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
3197 auto *DE = cast<DeclRefExpr>(RefExpr); in CheckOMPThreadPrivateDecl()
3402 auto *DE = cast<DeclRefExpr>(RefExpr); in ActOnOpenMPAllocateDirective()
3717 void VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
4093 else if (auto *CE = dyn_cast<DeclRefExpr>(CI)) in VisitCallExpr()
4120 DeclRefExpr *DRE = buildDeclRefExpr( in visitSubCaptures()
4147 for (DeclRefExpr *E : Stack->getLinkGlobals()) in DSAAttrChecker()
4658 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr, in buildCapture()
4671 static ExprResult buildCapture(Sema &S, Expr *CaptureExpr, DeclRefExpr *&Ref) { in buildCapture()
5384 auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr); in getPrivateItem()
5419 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
5496 cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl())); in checkAllocateClauses()
5576 dyn_cast<DeclRefExpr>(E->IgnoreImplicit())); in precomputeExpr()
5617 DeclRefExpr *DistRef = Actions.BuildDeclRefExpr( in buildDistanceFunc()
5743 DeclRefExpr *StartExpr, Expr *Step, in buildLoopVarFunc()
5771 DeclRefExpr *TargetRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5774 DeclRefExpr *LogicalRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5820 auto *CounterRef = cast<DeclRefExpr>(LCAssign->getLHS()); in ActOnOpenMPCanonicalLoop()
5876 if (!isa<DeclRefExpr>(LHS->IgnoreImplicit()) || in ActOnOpenMPCanonicalLoop()
5877 cast<DeclRefExpr>(LHS->IgnoreImplicit())->getDecl() != LIVDecl) { in ActOnOpenMPCanonicalLoop()
5881 auto *CounterRef = cast<DeclRefExpr>(LHS->IgnoreImplicit()); in ActOnOpenMPCanonicalLoop()
5946 DeclRefExpr *LVRef = BuildDeclRefExpr(LUVDecl, LUVDecl->getType(), VK_LValue, in ActOnOpenMPCanonicalLoop()
6232 if (!isa<DeclRefExpr>(E->IgnoreParenImpCasts())) in ActOnOpenMPExecutableDirective()
6881 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6908 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6979 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
7049 if (const auto *DRE = dyn_cast<DeclRefExpr>(Step)) in ActOnOpenMPDeclareSimdDirective()
7231 auto *VariantFuncRef = DeclRefExpr::Create( in ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope()
7310 Expr *BestExpr = cast<DeclRefExpr>(Exprs[BestIdx]); in ActOnOpenMPCall()
7311 Decl *BestDecl = cast<DeclRefExpr>(BestExpr)->getDecl(); in ActOnOpenMPCall()
7550 auto *DRE = dyn_cast<DeclRefExpr>(ER.get()->IgnoreParenImpCasts()); in checkOpenMPDeclareVariantFunction()
7703 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) { in ActOnOpenMPDeclareVariantDirective()
7891 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7895 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7897 DeclRefExpr *
7898 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7911 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7916 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8115 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
8191 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
8226 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
8263 if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) { in getInitLCDecl()
8444 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in tryBuildCapture()
8454 DeclRefExpr *Ref = nullptr; in tryBuildCapture()
8466 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in calculateNumIters()
8636 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildNumIterations()
8852 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildMinMaxValues()
8967 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildPreCond()
9006 DeclRefExpr *OpenMPIterationSpaceChecker::buildCounterVar( in buildCounterVar()
9007 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in buildCounterVar()
9012 DeclRefExpr *Ref = buildDeclRefExpr( in buildCounterVar()
9022 return cast<DeclRefExpr>(LCRef); in buildCounterVar()
9049 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc, in buildOrderedLoopData()
9096 DeclRefExpr *PrivateRef = nullptr; in ActOnOpenMPLoopInitialization()
9177 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in checkOpenMPIterationSpace()
9355 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildCounterInit()
9381 llvm::MapVector<const Expr *, DeclRefExpr *> *Captures = nullptr) { in buildCounterUpdate()
9492 const llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildPreInits()
9570 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in checkOpenMPLoop()
9587 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar); in checkOpenMPLoop()
9600 DeclRefExpr *Ref = buildDeclRefExpr(SemaRef, D, D->getType(), in checkOpenMPLoop()
10124 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl()); in checkOpenMPLoop()
10125 DeclRefExpr *CounterVar = buildDeclRefExpr( in checkOpenMPLoop()
10300 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPSimdDirective()
10339 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForDirective()
10376 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForSimdDirective()
10899 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForDirective()
10940 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForSimdDirective()
13079 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForDirective()
13411 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTaskLoopSimdDirective()
13537 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPMasterTaskLoopSimdDirective()
13587 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPMaskedTaskLoopSimdDirective()
13770 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
13839 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelMaskedTaskLoopSimdDirective()
13976 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeParallelForSimdDirective()
14032 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeSimdDirective()
14088 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForSimdDirective()
14143 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetSimdDirective()
14246 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeSimdDirective()
14308 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
14491 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
14548 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
14605 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeSimdDirective()
14711 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPTileDirective()
14713 DeclRefExpr *IterVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPTileDirective()
14747 auto *CounterDecl = cast<DeclRefExpr>(CounterRef)->getDecl(); in ActOnOpenMPTileDirective()
14760 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
14766 DeclRefExpr *TileIV = buildDeclRefExpr(*this, TileIndVars[I], CntTy, in ActOnOpenMPTileDirective()
14768 DeclRefExpr *FloorIV = buildDeclRefExpr(*this, FloorIndVars[I], CntTy, in ActOnOpenMPTileDirective()
14836 DeclRefExpr *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
14842 DeclRefExpr *FloorIV = buildDeclRefExpr(*this, FloorIndVars[I], CntTy, in ActOnOpenMPTileDirective()
14992 auto *CounterDecl = cast<DeclRefExpr>(CounterRef)->getDecl(); in ActOnOpenMPUnrollDirective()
14997 auto *IterationVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPUnrollDirective()
15001 auto *OrigVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPUnrollDirective()
16269 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPIfClause()
16301 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFinalClause()
16389 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in isNonNegativeIntegerValue()
16415 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumThreadsClause()
17231 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPScheduleClause()
17694 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNovariantsClause()
17725 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNocontextClause()
17747 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFilterClause()
18079 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPPrivateClause()
18083 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPPrivateClause()
18086 DeclRefExpr *Ref = nullptr; in ActOnOpenMPPrivateClause()
18316 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPFirstprivateClause()
18362 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPFirstprivateClause()
18365 DeclRefExpr *Ref = nullptr; in ActOnOpenMPFirstprivateClause()
18522 DeclRefExpr *PseudoSrcExpr = in ActOnOpenMPLastprivateClause()
18527 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPLastprivateClause()
18539 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLastprivateClause()
18618 DeclRefExpr *Ref = nullptr; in ActOnOpenMPSharedClause()
18638 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
18673 DeclRefExpr *CapturedExpr = nullptr;
18687 DeclRefExpr *getCapturedExpr() { return CapturedExpr; } in getCapturedExpr()
19427 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in actOnOMPReductionKindClause()
19430 DeclRefExpr *LHSDRE = buildDeclRefExpr(S, LHSVD, Type, ELoc); in actOnOMPReductionKindClause()
19431 DeclRefExpr *RHSDRE = buildDeclRefExpr(S, RHSVD, Type, ELoc); in actOnOMPReductionKindClause()
19433 auto *DRDRef = DeclareReductionRef.getAs<DeclRefExpr>(); in actOnOMPReductionKindClause()
19566 DeclRefExpr *PrivateDRE = buildDeclRefExpr(S, PrivateVD, PrivateTy, ELoc); in actOnOMPReductionKindClause()
19721 DeclRefExpr *Ref = nullptr; in actOnOMPReductionKindClause()
19968 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPLinearClause()
19969 DeclRefExpr *PrivateRef = buildDeclRefExpr(*this, Private, Type, ELoc); in ActOnOpenMPLinearClause()
19973 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLinearClause()
19998 DeclRefExpr *InitRef = buildDeclRefExpr(*this, Init, Type, ELoc); in ActOnOpenMPLinearClause()
20052 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, in FinishOpenMPLinearClause()
20099 auto *DE = cast<DeclRefExpr>(SimpleRefExpr); in FinishOpenMPLinearClause()
20202 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAlignedClause()
20253 auto *DE = dyn_cast<DeclRefExpr>(RefExpr); in ActOnOpenMPCopyinClause()
20290 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr( in ActOnOpenMPCopyinClause()
20295 DeclRefExpr *PseudoDstExpr = in ActOnOpenMPCopyinClause()
20403 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(*this, SrcVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
20407 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
20802 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDeviceClause()
20980 bool VisitDeclRefExpr(DeclRefExpr *DRE) { in VisitDeclRefExpr()
22415 auto *VD = cast<DeclRefExpr>(MapperVarRef)->getDecl(); in ActOnOpenMPDeclareMapperDirective()
22448 if (const auto *DRE = cast_or_null<DeclRefExpr>(Ref)) { in isOpenMPDeclareMapperVarDeclAllowed()
22462 return cast<DeclRefExpr>(DSAStack->getDeclareMapperVarRef())->getDecl(); in getOpenMPDeclareMapperVarName()
22483 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumTeamsClause()
22510 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPThreadLimitClause()
22646 auto *Ref = dyn_cast<DeclRefExpr>(Evt->IgnoreParenImpCasts()); in ActOnOpenMPDetachClause()
22725 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDistScheduleClause()
23169 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPUseDevicePtrClause()
23174 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
23180 DeclRefExpr *VDInitRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
23188 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDevicePtrClause()
23238 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDeviceAddrClause()
23334 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPIsDevicePtrClause()
23338 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPIsDevicePtrClause()
23410 DeclRefExpr *Ref = in ActOnOpenMPHasDeviceAddrClause()
23420 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPHasDeviceAddrClause()
23424 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPHasDeviceAddrClause()
23483 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAllocateClause()
23671 auto *DRE = dyn_cast<DeclRefExpr>(AllocatorExpr); in ActOnOpenMPUsesAllocatorClause()
23755 if (auto *DRE = dyn_cast<DeclRefExpr>(AllocatorTraitsExpr)) in ActOnOpenMPUsesAllocatorClause()
23846 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPXDynCGroupMemClause()