Lines Matching refs:DeclRefExpr
83 DeclRefExpr *PrivateCopy = nullptr;
88 const Expr *RefExpr, DeclRefExpr *PrivateCopy, in DSAVarData()
115 DeclRefExpr *PrivateCopy = nullptr;
206 llvm::SmallVector<DeclRefExpr *, 4> DeclareTargetLinkVarDecls;
555 DeclRefExpr *PrivateCopy = nullptr, unsigned Modifier = 0,
593 cast<DeclRefExpr>(getStackElemAtLevel(Level).TaskgroupReductionRef) in isTaskgroupReductionRef()
1114 void addToParentTargetRegionLinkGlobals(DeclRefExpr *E) { in addToParentTargetRegionLinkGlobals()
1128 ArrayRef<DeclRefExpr *> getLinkGlobals() const { in getLinkGlobals()
1515 DeclRefExpr *PrivateCopy, unsigned Modifier, in addDSA()
1555 DeclRefExpr *OrigRef = nullptr) { in buildVarDecl()
1574 static DeclRefExpr *buildDeclRefExpr(Sema &S, VarDecl *D, QualType Ty, in buildDeclRefExpr()
1579 return DeclRefExpr::Create(S.getASTContext(), NestedNameSpecifierLoc(), in buildDeclRefExpr()
2225 if (isa<DeclRefExpr>(EI->getAssociatedExpression())) in isOpenMPCapturedByRef()
2501 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in isOpenMPCapturedDecl()
2764 auto *DeclRefVariant = cast<DeclRefExpr>(A->getVariantFuncRef()); in finalizeOpenMPDelayedAnalysis()
2877 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr,
2900 auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens()); in EndOpenMPDSABlock()
2957 auto *DRE = dyn_cast<DeclRefExpr>(D.Allocator->IgnoreParenImpCasts()); in EndOpenMPDSABlock()
3011 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
3029 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in finishLinearClauses()
3209 return DeclRefExpr::Create(Context, NestedNameSpecifierLoc(), in ActOnOpenMPIdExpression()
3231 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
3261 auto *DE = cast<DeclRefExpr>(RefExpr); in CheckOMPThreadPrivateDecl()
3465 auto *DE = cast<DeclRefExpr>(RefExpr); in ActOnOpenMPAllocateDirective()
3783 void VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
4160 else if (auto *CE = dyn_cast<DeclRefExpr>(CI)) in VisitCallExpr()
4187 DeclRefExpr *DRE = buildDeclRefExpr( in visitSubCaptures()
4214 for (DeclRefExpr *E : Stack->getLinkGlobals()) in DSAAttrChecker()
4463 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr, in buildCapture()
4476 static ExprResult buildCapture(Sema &S, Expr *CaptureExpr, DeclRefExpr *&Ref, in buildCapture()
5188 auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr); in getPrivateItem()
5223 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
5300 cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl())); in checkAllocateClauses()
5380 dyn_cast<DeclRefExpr>(E->IgnoreImplicit())); in precomputeExpr()
5421 DeclRefExpr *DistRef = Actions.BuildDeclRefExpr( in buildDistanceFunc()
5548 DeclRefExpr *StartExpr, Expr *Step, in buildLoopVarFunc()
5576 DeclRefExpr *TargetRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5579 DeclRefExpr *LogicalRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5625 auto *CounterRef = cast<DeclRefExpr>(LCAssign->getLHS()); in ActOnOpenMPCanonicalLoop()
5681 if (!isa<DeclRefExpr>(LHS->IgnoreImplicit()) || in ActOnOpenMPCanonicalLoop()
5682 cast<DeclRefExpr>(LHS->IgnoreImplicit())->getDecl() != LIVDecl) { in ActOnOpenMPCanonicalLoop()
5686 auto *CounterRef = cast<DeclRefExpr>(LHS->IgnoreImplicit()); in ActOnOpenMPCanonicalLoop()
5751 DeclRefExpr *LVRef = in ActOnOpenMPCanonicalLoop()
6229 if (!isa<DeclRefExpr>(E->IgnoreParenImpCasts())) in ActOnOpenMPExecutableDirective()
6814 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6841 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6912 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6982 if (const auto *DRE = dyn_cast<DeclRefExpr>(Step)) in ActOnOpenMPDeclareSimdDirective()
7167 auto *VariantFuncRef = DeclRefExpr::Create( in ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope()
7248 Expr *BestExpr = cast<DeclRefExpr>(Exprs[BestIdx]); in ActOnOpenMPCall()
7249 Decl *BestDecl = cast<DeclRefExpr>(BestExpr)->getDecl(); in ActOnOpenMPCall()
7490 auto *DRE = dyn_cast<DeclRefExpr>(ER.get()->IgnoreParenImpCasts()); in checkOpenMPDeclareVariantFunction()
7643 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) { in ActOnOpenMPDeclareVariantDirective()
7848 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7852 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7854 DeclRefExpr *
7855 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7868 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7873 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
8072 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
8148 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
8183 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
8220 if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) { in getInitLCDecl()
8401 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in tryBuildCapture()
8412 DeclRefExpr *Ref = nullptr; in tryBuildCapture()
8424 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in calculateNumIters()
8594 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildNumIterations()
8822 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildMinMaxValues()
8937 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildPreCond()
8976 DeclRefExpr *OpenMPIterationSpaceChecker::buildCounterVar( in buildCounterVar()
8977 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in buildCounterVar()
8982 DeclRefExpr *Ref = buildDeclRefExpr( in buildCounterVar()
8992 return cast<DeclRefExpr>(LCRef); in buildCounterVar()
9019 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc, in buildOrderedLoopData()
9069 DeclRefExpr *PrivateRef = nullptr; in ActOnOpenMPLoopInitialization()
9162 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in checkOpenMPIterationSpace()
9375 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildCounterInit()
9401 llvm::MapVector<const Expr *, DeclRefExpr *> *Captures = nullptr) { in buildCounterUpdate()
9531 const llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildPreInits()
9620 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in checkOpenMPLoop()
9637 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar); in checkOpenMPLoop()
9657 DeclRefExpr *Ref = buildDeclRefExpr( in checkOpenMPLoop()
10184 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl()); in checkOpenMPLoop()
10185 DeclRefExpr *CounterVar = buildDeclRefExpr( in checkOpenMPLoop()
14103 auto *CounterDecl = cast<DeclRefExpr>(CounterRef)->getDecl(); in addLoopPreInits()
14180 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPTileDirective()
14182 DeclRefExpr *IterVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPTileDirective()
14257 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
14348 DeclRefExpr *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
14509 auto *IterationVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPUnrollDirective()
14513 auto *OrigVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPUnrollDirective()
14716 auto *IterationVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPReverseDirective()
14719 auto *OrigVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPReverseDirective()
14912 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPInterchangeDirective()
14933 auto *OrigCntVar = cast<DeclRefExpr>(SourceHelper.Counters.front()); in ActOnOpenMPInterchangeDirective()
14936 DeclRefExpr *IterVarRef = cast<DeclRefExpr>(SourceHelper.IterationVarRef); in ActOnOpenMPInterchangeDirective()
15298 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPIfClause()
15331 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFinalClause()
15420 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in isNonNegativeIntegerValue()
15447 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumThreadsClause()
16311 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPScheduleClause()
16819 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNovariantsClause()
16851 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNocontextClause()
16874 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFilterClause()
17214 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPPrivateClause()
17218 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPPrivateClause()
17221 DeclRefExpr *Ref = nullptr; in ActOnOpenMPPrivateClause()
17452 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPFirstprivateClause()
17498 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPFirstprivateClause()
17501 DeclRefExpr *Ref = nullptr; in ActOnOpenMPFirstprivateClause()
17659 DeclRefExpr *PseudoSrcExpr = in ActOnOpenMPLastprivateClause()
17664 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(SemaRef, DstVD, Type, ELoc); in ActOnOpenMPLastprivateClause()
17676 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLastprivateClause()
17755 DeclRefExpr *Ref = nullptr; in ActOnOpenMPSharedClause()
17777 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
17812 DeclRefExpr *CapturedExpr = nullptr;
17826 DeclRefExpr *getCapturedExpr() { return CapturedExpr; } in getCapturedExpr()
18587 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in actOnOMPReductionKindClause()
18590 DeclRefExpr *LHSDRE = buildDeclRefExpr(S, LHSVD, Type, ELoc); in actOnOMPReductionKindClause()
18591 DeclRefExpr *RHSDRE = buildDeclRefExpr(S, RHSVD, Type, ELoc); in actOnOMPReductionKindClause()
18593 auto *DRDRef = DeclareReductionRef.getAs<DeclRefExpr>(); in actOnOMPReductionKindClause()
18726 DeclRefExpr *PrivateDRE = buildDeclRefExpr(S, PrivateVD, PrivateTy, ELoc); in actOnOMPReductionKindClause()
18881 DeclRefExpr *Ref = nullptr; in actOnOMPReductionKindClause()
19138 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPLinearClause()
19139 DeclRefExpr *PrivateRef = buildDeclRefExpr(SemaRef, Private, Type, ELoc); in ActOnOpenMPLinearClause()
19143 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLinearClause()
19169 DeclRefExpr *InitRef = buildDeclRefExpr(SemaRef, Init, Type, ELoc); in ActOnOpenMPLinearClause()
19224 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, in FinishOpenMPLinearClause()
19271 auto *DE = cast<DeclRefExpr>(SimpleRefExpr); in FinishOpenMPLinearClause()
19374 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAlignedClause()
19426 auto *DE = dyn_cast<DeclRefExpr>(RefExpr); in ActOnOpenMPCopyinClause()
19464 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr( in ActOnOpenMPCopyinClause()
19469 DeclRefExpr *PseudoDstExpr = in ActOnOpenMPCopyinClause()
19579 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(SemaRef, SrcVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
19583 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(SemaRef, DstVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
20038 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDeviceClause()
20216 bool VisitDeclRefExpr(DeclRefExpr *DRE) { in VisitDeclRefExpr()
21659 auto *VD = cast<DeclRefExpr>(MapperVarRef)->getDecl(); in ActOnOpenMPDeclareMapperDirective()
21691 if (const auto *DRE = cast_or_null<DeclRefExpr>(Ref)) { in isOpenMPDeclareMapperVarDeclAllowed()
21705 return cast<DeclRefExpr>(DSAStack->getDeclareMapperVarRef())->getDecl(); in getOpenMPDeclareMapperVarName()
21727 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumTeamsClause()
21755 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPThreadLimitClause()
21893 auto *Ref = dyn_cast<DeclRefExpr>(Evt->IgnoreParenImpCasts()); in ActOnOpenMPDetachClause()
21973 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDistScheduleClause()
22338 void VisitDeclRefExpr(DeclRefExpr *Node) { in VisitDeclRefExpr()
22490 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPUseDevicePtrClause()
22495 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
22501 DeclRefExpr *VDInitRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
22509 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDevicePtrClause()
22560 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDeviceAddrClause()
22658 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPIsDevicePtrClause()
22662 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPIsDevicePtrClause()
22736 DeclRefExpr *Ref = in ActOnOpenMPHasDeviceAddrClause()
22746 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPHasDeviceAddrClause()
22750 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPHasDeviceAddrClause()
22809 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAllocateClause()
23013 auto *DRE = dyn_cast<DeclRefExpr>(AllocatorExpr); in ActOnOpenMPUsesAllocatorClause()
23097 if (auto *DRE = dyn_cast<DeclRefExpr>(AllocatorTraitsExpr)) in ActOnOpenMPUsesAllocatorClause()
23189 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPXDynCGroupMemClause()