Lines Matching refs:DeclRefExpr

72     DeclRefExpr *PrivateCopy = nullptr;
77 const Expr *RefExpr, DeclRefExpr *PrivateCopy, in DSAVarData()
105 DeclRefExpr *PrivateCopy = nullptr;
190 llvm::SmallVector<DeclRefExpr *, 4> DeclareTargetLinkVarDecls;
522 DeclRefExpr *PrivateCopy = nullptr, unsigned Modifier = 0,
560 cast<DeclRefExpr>(getStackElemAtLevel(Level).TaskgroupReductionRef) in isTaskgroupReductionRef()
1029 void addToParentTargetRegionLinkGlobals(DeclRefExpr *E) { in addToParentTargetRegionLinkGlobals()
1043 ArrayRef<DeclRefExpr *> getLinkGlobals() const { in getLinkGlobals()
1357 DeclRefExpr *PrivateCopy, unsigned Modifier, in addDSA()
1397 DeclRefExpr *OrigRef = nullptr) { in buildVarDecl()
1416 static DeclRefExpr *buildDeclRefExpr(Sema &S, VarDecl *D, QualType Ty, in buildDeclRefExpr()
1421 return DeclRefExpr::Create(S.getASTContext(), NestedNameSpecifierLoc(), in buildDeclRefExpr()
2070 if (isa<DeclRefExpr>(EI->getAssociatedExpression())) in isOpenMPCapturedByRef()
2605 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr,
2628 auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens()); in EndOpenMPDSABlock()
2685 auto *DRE = dyn_cast<DeclRefExpr>(D.Allocator->IgnoreParenImpCasts()); in EndOpenMPDSABlock()
2739 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
2911 return DeclRefExpr::Create(Context, NestedNameSpecifierLoc(), in ActOnOpenMPIdExpression()
2933 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
2961 auto *DE = cast<DeclRefExpr>(RefExpr); in CheckOMPThreadPrivateDecl()
3150 auto *DE = cast<DeclRefExpr>(RefExpr); in ActOnOpenMPAllocateDirective()
3465 void VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
3836 DeclRefExpr *DRE = buildDeclRefExpr( in visitSubCaptures()
3862 for (DeclRefExpr *E : Stack->getLinkGlobals()) in DSAAttrChecker()
4324 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr, in buildCapture()
4336 static ExprResult buildCapture(Sema &S, Expr *CaptureExpr, DeclRefExpr *&Ref) { in buildCapture()
5013 auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr); in getPrivateItem()
5042 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
5121 cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl())); in checkAllocateClauses()
5199 dyn_cast<DeclRefExpr>(E->IgnoreImplicit())); in precomputeExpr()
5240 DeclRefExpr *DistRef = Actions.BuildDeclRefExpr( in buildDistanceFunc()
5356 DeclRefExpr *StartExpr, Expr *Step, in buildLoopVarFunc()
5384 DeclRefExpr *TargetRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5387 DeclRefExpr *LogicalRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5433 auto *CounterRef = cast<DeclRefExpr>(LCAssign->getLHS()); in ActOnOpenMPCanonicalLoop()
5489 if (!isa<DeclRefExpr>(LHS->IgnoreImplicit()) || in ActOnOpenMPCanonicalLoop()
5490 cast<DeclRefExpr>(LHS->IgnoreImplicit())->getDecl() != LIVDecl) { in ActOnOpenMPCanonicalLoop()
5494 auto *CounterRef = cast<DeclRefExpr>(LHS->IgnoreImplicit()); in ActOnOpenMPCanonicalLoop()
5559 DeclRefExpr *LVRef = BuildDeclRefExpr(LUVDecl, LUVDecl->getType(), VK_LValue, in ActOnOpenMPCanonicalLoop()
6366 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6393 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6464 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6534 if (const auto *DRE = dyn_cast<DeclRefExpr>(Step)) in ActOnOpenMPDeclareSimdDirective()
6714 auto *VariantFuncRef = DeclRefExpr::Create( in ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope()
6782 Expr *BestExpr = cast<DeclRefExpr>(Exprs[BestIdx]); in ActOnOpenMPCall()
6783 Decl *BestDecl = cast<DeclRefExpr>(BestExpr)->getDecl(); in ActOnOpenMPCall()
6988 auto *DRE = dyn_cast<DeclRefExpr>(ER.get()->IgnoreParenImpCasts()); in checkOpenMPDeclareVariantFunction()
7260 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7264 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7266 DeclRefExpr *
7267 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7280 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7285 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7486 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
7562 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
7597 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
7634 if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) { in getInitLCDecl()
7825 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in tryBuildCapture()
7835 DeclRefExpr *Ref = nullptr; in tryBuildCapture()
7847 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in calculateNumIters()
8014 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildNumIterations()
8230 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildMinMaxValues()
8345 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildPreCond()
8383 DeclRefExpr *OpenMPIterationSpaceChecker::buildCounterVar( in buildCounterVar()
8384 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in buildCounterVar()
8389 DeclRefExpr *Ref = buildDeclRefExpr( in buildCounterVar()
8399 return cast<DeclRefExpr>(LCRef); in buildCounterVar()
8426 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc, in buildOrderedLoopData()
8475 DeclRefExpr *PrivateRef = nullptr; in ActOnOpenMPLoopInitialization()
8555 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in checkOpenMPIterationSpace()
8729 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildCounterInit()
8755 llvm::MapVector<const Expr *, DeclRefExpr *> *Captures = nullptr) { in buildCounterUpdate()
8866 const llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildPreInits()
8944 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in checkOpenMPLoop()
8961 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar); in checkOpenMPLoop()
9474 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl()); in checkOpenMPLoop()
9475 DeclRefExpr *CounterVar = buildDeclRefExpr( in checkOpenMPLoop()
9650 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPSimdDirective()
9689 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForDirective()
9726 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForSimdDirective()
9993 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForDirective()
10034 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForSimdDirective()
11231 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForDirective()
11558 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTaskLoopSimdDirective()
11644 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPMasterTaskLoopSimdDirective()
11768 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
11904 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeParallelForSimdDirective()
11960 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeSimdDirective()
12016 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForSimdDirective()
12071 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetSimdDirective()
12174 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeSimdDirective()
12236 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
12419 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
12476 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
12533 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeSimdDirective()
12613 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPTileDirective()
12615 DeclRefExpr *IterVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPTileDirective()
12643 auto *CounterDecl = cast<DeclRefExpr>(CounterRef)->getDecl(); in ActOnOpenMPTileDirective()
12656 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
12662 DeclRefExpr *TileIV = buildDeclRefExpr(*this, TileIndVars[I], CntTy, in ActOnOpenMPTileDirective()
12664 DeclRefExpr *FloorIV = buildDeclRefExpr(*this, FloorIndVars[I], CntTy, in ActOnOpenMPTileDirective()
12732 DeclRefExpr *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
12738 DeclRefExpr *FloorIV = buildDeclRefExpr(*this, FloorIndVars[I], CntTy, in ActOnOpenMPTileDirective()
13722 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPIfClause()
13754 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFinalClause()
13842 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in isNonNegativeIntegerValue()
13868 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumThreadsClause()
14514 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPScheduleClause()
14800 const DeclRefExpr *DRE = nullptr; in ActOnOpenMPInteropDirective()
14806 DRE = dyn_cast_or_null<DeclRefExpr>(IC->getInteropVar()); in ActOnOpenMPInteropDirective()
14810 DRE = dyn_cast_or_null<DeclRefExpr>(UC->getInteropVar()); in ActOnOpenMPInteropDirective()
14814 DRE = dyn_cast_or_null<DeclRefExpr>(DC->getInteropVar()); in ActOnOpenMPInteropDirective()
14839 const auto *DRE = dyn_cast<DeclRefExpr>(InteropVarExpr); in isValidInteropVariable()
14958 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNovariantsClause()
14989 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNocontextClause()
15011 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFilterClause()
15332 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPPrivateClause()
15336 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPPrivateClause()
15339 DeclRefExpr *Ref = nullptr; in ActOnOpenMPPrivateClause()
15585 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPFirstprivateClause()
15631 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPFirstprivateClause()
15634 DeclRefExpr *Ref = nullptr; in ActOnOpenMPFirstprivateClause()
15785 DeclRefExpr *PseudoSrcExpr = in ActOnOpenMPLastprivateClause()
15790 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPLastprivateClause()
15802 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLastprivateClause()
15881 DeclRefExpr *Ref = nullptr; in ActOnOpenMPSharedClause()
15901 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
15936 DeclRefExpr *CapturedExpr = nullptr;
15950 DeclRefExpr *getCapturedExpr() { return CapturedExpr; } in getCapturedExpr()
16689 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in actOnOMPReductionKindClause()
16692 DeclRefExpr *LHSDRE = buildDeclRefExpr(S, LHSVD, Type, ELoc); in actOnOMPReductionKindClause()
16693 DeclRefExpr *RHSDRE = buildDeclRefExpr(S, RHSVD, Type, ELoc); in actOnOMPReductionKindClause()
16695 auto *DRDRef = DeclareReductionRef.getAs<DeclRefExpr>(); in actOnOMPReductionKindClause()
16830 DeclRefExpr *PrivateDRE = buildDeclRefExpr(S, PrivateVD, PrivateTy, ELoc); in actOnOMPReductionKindClause()
16985 DeclRefExpr *Ref = nullptr; in actOnOMPReductionKindClause()
17233 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPLinearClause()
17234 DeclRefExpr *PrivateRef = buildDeclRefExpr(*this, Private, Type, ELoc); in ActOnOpenMPLinearClause()
17238 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLinearClause()
17263 DeclRefExpr *InitRef = buildDeclRefExpr(*this, Init, Type, ELoc); in ActOnOpenMPLinearClause()
17317 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, in FinishOpenMPLinearClause()
17364 auto *DE = cast<DeclRefExpr>(SimpleRefExpr); in FinishOpenMPLinearClause()
17469 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAlignedClause()
17520 auto *DE = dyn_cast<DeclRefExpr>(RefExpr); in ActOnOpenMPCopyinClause()
17557 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr( in ActOnOpenMPCopyinClause()
17562 DeclRefExpr *PseudoDstExpr = in ActOnOpenMPCopyinClause()
17671 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(*this, SrcVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
17675 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
18050 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDeviceClause()
18231 bool VisitDeclRefExpr(DeclRefExpr *DRE) { in VisitDeclRefExpr()
19632 auto *VD = cast<DeclRefExpr>(MapperVarRef)->getDecl(); in ActOnOpenMPDeclareMapperDirective()
19660 if (const auto *DRE = cast_or_null<DeclRefExpr>(Ref)) in isOpenMPDeclareMapperVarDeclAllowed()
19667 return cast<DeclRefExpr>(DSAStack->getDeclareMapperVarRef())->getDecl(); in getOpenMPDeclareMapperVarName()
19688 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumTeamsClause()
19715 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPThreadLimitClause()
19825 auto *Ref = dyn_cast<DeclRefExpr>(Evt->IgnoreParenImpCasts()); in ActOnOpenMPDetachClause()
19904 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDistScheduleClause()
20322 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPUseDevicePtrClause()
20327 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
20333 DeclRefExpr *VDInitRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
20341 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDevicePtrClause()
20391 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDeviceAddrClause()
20487 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPIsDevicePtrClause()
20491 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPIsDevicePtrClause()
20550 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAllocateClause()
20739 auto *DRE = dyn_cast<DeclRefExpr>(AllocatorExpr); in ActOnOpenMPUsesAllocatorClause()
20814 if (auto *DRE = dyn_cast<DeclRefExpr>(AllocatorTraitsExpr)) in ActOnOpenMPUsesAllocatorClause()