Lines Matching refs:DeclRefExpr

78     DeclRefExpr *PrivateCopy = nullptr;
83 const Expr *RefExpr, DeclRefExpr *PrivateCopy, in DSAVarData()
110 DeclRefExpr *PrivateCopy = nullptr;
201 llvm::SmallVector<DeclRefExpr *, 4> DeclareTargetLinkVarDecls;
550 DeclRefExpr *PrivateCopy = nullptr, unsigned Modifier = 0,
588 cast<DeclRefExpr>(getStackElemAtLevel(Level).TaskgroupReductionRef) in isTaskgroupReductionRef()
1109 void addToParentTargetRegionLinkGlobals(DeclRefExpr *E) { in addToParentTargetRegionLinkGlobals()
1123 ArrayRef<DeclRefExpr *> getLinkGlobals() const { in getLinkGlobals()
1510 DeclRefExpr *PrivateCopy, unsigned Modifier, in addDSA()
1550 DeclRefExpr *OrigRef = nullptr) { in buildVarDecl()
1569 static DeclRefExpr *buildDeclRefExpr(Sema &S, VarDecl *D, QualType Ty, in buildDeclRefExpr()
1574 return DeclRefExpr::Create(S.getASTContext(), NestedNameSpecifierLoc(), in buildDeclRefExpr()
2220 if (isa<DeclRefExpr>(EI->getAssociatedExpression())) in isOpenMPCapturedByRef()
2493 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in isOpenMPCapturedDecl()
2753 auto *DeclRefVariant = cast<DeclRefExpr>(A->getVariantFuncRef()); in finalizeOpenMPDelayedAnalysis()
2866 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr,
2889 auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens()); in EndOpenMPDSABlock()
2946 auto *DRE = dyn_cast<DeclRefExpr>(D.Allocator->IgnoreParenImpCasts()); in EndOpenMPDSABlock()
3000 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
3171 return DeclRefExpr::Create(Context, NestedNameSpecifierLoc(), in ActOnOpenMPIdExpression()
3193 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
3221 auto *DE = cast<DeclRefExpr>(RefExpr); in CheckOMPThreadPrivateDecl()
3426 auto *DE = cast<DeclRefExpr>(RefExpr); in ActOnOpenMPAllocateDirective()
3742 void VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
4118 else if (auto *CE = dyn_cast<DeclRefExpr>(CI)) in VisitCallExpr()
4145 DeclRefExpr *DRE = buildDeclRefExpr( in visitSubCaptures()
4172 for (DeclRefExpr *E : Stack->getLinkGlobals()) in DSAAttrChecker()
4672 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr, in buildCapture()
4685 static ExprResult buildCapture(Sema &S, Expr *CaptureExpr, DeclRefExpr *&Ref, in buildCapture()
5414 auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr); in getPrivateItem()
5449 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
5526 cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl())); in checkAllocateClauses()
5606 dyn_cast<DeclRefExpr>(E->IgnoreImplicit())); in precomputeExpr()
5647 DeclRefExpr *DistRef = Actions.BuildDeclRefExpr( in buildDistanceFunc()
5774 DeclRefExpr *StartExpr, Expr *Step, in buildLoopVarFunc()
5802 DeclRefExpr *TargetRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5805 DeclRefExpr *LogicalRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5851 auto *CounterRef = cast<DeclRefExpr>(LCAssign->getLHS()); in ActOnOpenMPCanonicalLoop()
5907 if (!isa<DeclRefExpr>(LHS->IgnoreImplicit()) || in ActOnOpenMPCanonicalLoop()
5908 cast<DeclRefExpr>(LHS->IgnoreImplicit())->getDecl() != LIVDecl) { in ActOnOpenMPCanonicalLoop()
5912 auto *CounterRef = cast<DeclRefExpr>(LHS->IgnoreImplicit()); in ActOnOpenMPCanonicalLoop()
5977 DeclRefExpr *LVRef = BuildDeclRefExpr(LUVDecl, LUVDecl->getType(), VK_LValue, in ActOnOpenMPCanonicalLoop()
6378 if (!isa<DeclRefExpr>(E->IgnoreParenImpCasts())) in ActOnOpenMPExecutableDirective()
7032 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
7059 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
7130 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
7200 if (const auto *DRE = dyn_cast<DeclRefExpr>(Step)) in ActOnOpenMPDeclareSimdDirective()
7382 auto *VariantFuncRef = DeclRefExpr::Create( in ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope()
7461 Expr *BestExpr = cast<DeclRefExpr>(Exprs[BestIdx]); in ActOnOpenMPCall()
7462 Decl *BestDecl = cast<DeclRefExpr>(BestExpr)->getDecl(); in ActOnOpenMPCall()
7701 auto *DRE = dyn_cast<DeclRefExpr>(ER.get()->IgnoreParenImpCasts()); in checkOpenMPDeclareVariantFunction()
7854 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) { in ActOnOpenMPDeclareVariantDirective()
8042 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8046 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8048 DeclRefExpr *
8049 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
8062 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
8067 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8266 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
8342 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
8377 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
8414 if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) { in getInitLCDecl()
8595 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in tryBuildCapture()
8606 DeclRefExpr *Ref = nullptr; in tryBuildCapture()
8618 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in calculateNumIters()
8788 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildNumIterations()
9016 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildMinMaxValues()
9131 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildPreCond()
9170 DeclRefExpr *OpenMPIterationSpaceChecker::buildCounterVar( in buildCounterVar()
9171 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in buildCounterVar()
9176 DeclRefExpr *Ref = buildDeclRefExpr( in buildCounterVar()
9186 return cast<DeclRefExpr>(LCRef); in buildCounterVar()
9213 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc, in buildOrderedLoopData()
9260 DeclRefExpr *PrivateRef = nullptr; in ActOnOpenMPLoopInitialization()
9357 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in checkOpenMPIterationSpace()
9570 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildCounterInit()
9596 llvm::MapVector<const Expr *, DeclRefExpr *> *Captures = nullptr) { in buildCounterUpdate()
9707 const llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildPreInits()
9785 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in checkOpenMPLoop()
9802 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar); in checkOpenMPLoop()
9815 DeclRefExpr *Ref = buildDeclRefExpr(SemaRef, D, D->getType(), in checkOpenMPLoop()
10339 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl()); in checkOpenMPLoop()
10340 DeclRefExpr *CounterVar = buildDeclRefExpr( in checkOpenMPLoop()
10534 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPSimdDirective()
10578 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForDirective()
10616 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForSimdDirective()
11139 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForDirective()
11180 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForSimdDirective()
13355 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForDirective()
13691 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTaskLoopSimdDirective()
13817 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPMasterTaskLoopSimdDirective()
13867 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPMaskedTaskLoopSimdDirective()
14050 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
14119 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelMaskedTaskLoopSimdDirective()
14261 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeParallelForSimdDirective()
14317 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeSimdDirective()
14373 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForSimdDirective()
14428 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetSimdDirective()
14531 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeSimdDirective()
14593 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
14789 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
14846 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
14903 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeSimdDirective()
15009 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPTileDirective()
15011 DeclRefExpr *IterVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPTileDirective()
15045 auto *CounterDecl = cast<DeclRefExpr>(CounterRef)->getDecl(); in ActOnOpenMPTileDirective()
15058 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
15064 DeclRefExpr *TileIV = buildDeclRefExpr(*this, TileIndVars[I], CntTy, in ActOnOpenMPTileDirective()
15066 DeclRefExpr *FloorIV = buildDeclRefExpr(*this, FloorIndVars[I], CntTy, in ActOnOpenMPTileDirective()
15134 DeclRefExpr *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
15140 DeclRefExpr *FloorIV = buildDeclRefExpr(*this, FloorIndVars[I], CntTy, in ActOnOpenMPTileDirective()
15290 auto *CounterDecl = cast<DeclRefExpr>(CounterRef)->getDecl(); in ActOnOpenMPUnrollDirective()
15295 auto *IterationVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPUnrollDirective()
15299 auto *OrigVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPUnrollDirective()
16567 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPIfClause()
16599 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFinalClause()
16687 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in isNonNegativeIntegerValue()
16713 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumThreadsClause()
17534 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPScheduleClause()
18028 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNovariantsClause()
18059 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNocontextClause()
18081 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFilterClause()
18418 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPPrivateClause()
18422 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPPrivateClause()
18425 DeclRefExpr *Ref = nullptr; in ActOnOpenMPPrivateClause()
18655 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPFirstprivateClause()
18701 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPFirstprivateClause()
18704 DeclRefExpr *Ref = nullptr; in ActOnOpenMPFirstprivateClause()
18861 DeclRefExpr *PseudoSrcExpr = in ActOnOpenMPLastprivateClause()
18866 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPLastprivateClause()
18878 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLastprivateClause()
18957 DeclRefExpr *Ref = nullptr; in ActOnOpenMPSharedClause()
18977 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
19012 DeclRefExpr *CapturedExpr = nullptr;
19026 DeclRefExpr *getCapturedExpr() { return CapturedExpr; } in getCapturedExpr()
19785 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in actOnOMPReductionKindClause()
19788 DeclRefExpr *LHSDRE = buildDeclRefExpr(S, LHSVD, Type, ELoc); in actOnOMPReductionKindClause()
19789 DeclRefExpr *RHSDRE = buildDeclRefExpr(S, RHSVD, Type, ELoc); in actOnOMPReductionKindClause()
19791 auto *DRDRef = DeclareReductionRef.getAs<DeclRefExpr>(); in actOnOMPReductionKindClause()
19924 DeclRefExpr *PrivateDRE = buildDeclRefExpr(S, PrivateVD, PrivateTy, ELoc); in actOnOMPReductionKindClause()
20079 DeclRefExpr *Ref = nullptr; in actOnOMPReductionKindClause()
20333 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPLinearClause()
20334 DeclRefExpr *PrivateRef = buildDeclRefExpr(*this, Private, Type, ELoc); in ActOnOpenMPLinearClause()
20338 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLinearClause()
20363 DeclRefExpr *InitRef = buildDeclRefExpr(*this, Init, Type, ELoc); in ActOnOpenMPLinearClause()
20417 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, in FinishOpenMPLinearClause()
20464 auto *DE = cast<DeclRefExpr>(SimpleRefExpr); in FinishOpenMPLinearClause()
20567 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAlignedClause()
20618 auto *DE = dyn_cast<DeclRefExpr>(RefExpr); in ActOnOpenMPCopyinClause()
20655 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr( in ActOnOpenMPCopyinClause()
20660 DeclRefExpr *PseudoDstExpr = in ActOnOpenMPCopyinClause()
20768 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(*this, SrcVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
20772 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
21217 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDeviceClause()
21395 bool VisitDeclRefExpr(DeclRefExpr *DRE) { in VisitDeclRefExpr()
22830 auto *VD = cast<DeclRefExpr>(MapperVarRef)->getDecl(); in ActOnOpenMPDeclareMapperDirective()
22863 if (const auto *DRE = cast_or_null<DeclRefExpr>(Ref)) { in isOpenMPDeclareMapperVarDeclAllowed()
22877 return cast<DeclRefExpr>(DSAStack->getDeclareMapperVarRef())->getDecl(); in getOpenMPDeclareMapperVarName()
22898 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumTeamsClause()
22925 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPThreadLimitClause()
23061 auto *Ref = dyn_cast<DeclRefExpr>(Evt->IgnoreParenImpCasts()); in ActOnOpenMPDetachClause()
23140 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDistScheduleClause()
23495 void VisitDeclRefExpr(DeclRefExpr *Node) { in VisitDeclRefExpr()
23646 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPUseDevicePtrClause()
23651 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
23657 DeclRefExpr *VDInitRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
23665 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDevicePtrClause()
23715 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDeviceAddrClause()
23811 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPIsDevicePtrClause()
23815 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPIsDevicePtrClause()
23887 DeclRefExpr *Ref = in ActOnOpenMPHasDeviceAddrClause()
23897 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPHasDeviceAddrClause()
23901 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPHasDeviceAddrClause()
23960 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAllocateClause()
24159 auto *DRE = dyn_cast<DeclRefExpr>(AllocatorExpr); in ActOnOpenMPUsesAllocatorClause()
24243 if (auto *DRE = dyn_cast<DeclRefExpr>(AllocatorTraitsExpr)) in ActOnOpenMPUsesAllocatorClause()
24334 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPXDynCGroupMemClause()