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()
3841 DeclRefExpr *DRE = buildDeclRefExpr( in visitSubCaptures()
3867 for (DeclRefExpr *E : Stack->getLinkGlobals()) in DSAAttrChecker()
4330 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr, in buildCapture()
4342 static ExprResult buildCapture(Sema &S, Expr *CaptureExpr, DeclRefExpr *&Ref) { in buildCapture()
5024 auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr); in getPrivateItem()
5053 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
5132 cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl())); in checkAllocateClauses()
5210 dyn_cast<DeclRefExpr>(E->IgnoreImplicit())); in precomputeExpr()
5251 DeclRefExpr *DistRef = Actions.BuildDeclRefExpr( in buildDistanceFunc()
5367 DeclRefExpr *StartExpr, Expr *Step, in buildLoopVarFunc()
5395 DeclRefExpr *TargetRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5398 DeclRefExpr *LogicalRef = Actions.BuildDeclRefExpr( in buildLoopVarFunc()
5444 auto *CounterRef = cast<DeclRefExpr>(LCAssign->getLHS()); in ActOnOpenMPCanonicalLoop()
5500 if (!isa<DeclRefExpr>(LHS->IgnoreImplicit()) || in ActOnOpenMPCanonicalLoop()
5501 cast<DeclRefExpr>(LHS->IgnoreImplicit())->getDecl() != LIVDecl) { in ActOnOpenMPCanonicalLoop()
5505 auto *CounterRef = cast<DeclRefExpr>(LHS->IgnoreImplicit()); in ActOnOpenMPCanonicalLoop()
5570 DeclRefExpr *LVRef = BuildDeclRefExpr(LUVDecl, LUVDecl->getType(), VK_LValue, in ActOnOpenMPCanonicalLoop()
6381 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6408 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6479 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective()
6549 if (const auto *DRE = dyn_cast<DeclRefExpr>(Step)) in ActOnOpenMPDeclareSimdDirective()
6729 auto *VariantFuncRef = DeclRefExpr::Create( in ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope()
6798 Expr *BestExpr = cast<DeclRefExpr>(Exprs[BestIdx]); in ActOnOpenMPCall()
6799 Decl *BestDecl = cast<DeclRefExpr>(BestExpr)->getDecl(); in ActOnOpenMPCall()
7004 auto *DRE = dyn_cast<DeclRefExpr>(ER.get()->IgnoreParenImpCasts()); in checkOpenMPDeclareVariantFunction()
7276 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7280 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7282 DeclRefExpr *
7283 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7296 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
7301 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
7502 bool VisitDeclRefExpr(const DeclRefExpr *E) { in VisitDeclRefExpr()
7578 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
7613 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit()
7650 if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) { in getInitLCDecl()
7831 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in tryBuildCapture()
7841 DeclRefExpr *Ref = nullptr; in tryBuildCapture()
7853 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in calculateNumIters()
8020 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildNumIterations()
8236 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildMinMaxValues()
8351 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const { in buildPreCond()
8389 DeclRefExpr *OpenMPIterationSpaceChecker::buildCounterVar( in buildCounterVar()
8390 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, in buildCounterVar()
8395 DeclRefExpr *Ref = buildDeclRefExpr( in buildCounterVar()
8405 return cast<DeclRefExpr>(LCRef); in buildCounterVar()
8432 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc, in buildOrderedLoopData()
8481 DeclRefExpr *PrivateRef = nullptr; in ActOnOpenMPLoopInitialization()
8561 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in checkOpenMPIterationSpace()
8735 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildCounterInit()
8761 llvm::MapVector<const Expr *, DeclRefExpr *> *Captures = nullptr) { in buildCounterUpdate()
8872 const llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) { in buildPreInits()
8950 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in checkOpenMPLoop()
8967 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar); in checkOpenMPLoop()
8987 DeclRefExpr *Ref = buildDeclRefExpr(SemaRef, D, D->getType(), in checkOpenMPLoop()
9508 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl()); in checkOpenMPLoop()
9509 DeclRefExpr *CounterVar = buildDeclRefExpr( in checkOpenMPLoop()
9684 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPSimdDirective()
9723 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForDirective()
9760 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPForSimdDirective()
10027 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForDirective()
10068 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelForSimdDirective()
11266 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForDirective()
11572 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTaskLoopSimdDirective()
11660 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPMasterTaskLoopSimdDirective()
11786 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
11923 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeParallelForSimdDirective()
11979 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPDistributeSimdDirective()
12035 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetParallelForSimdDirective()
12090 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetSimdDirective()
12193 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeSimdDirective()
12255 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
12438 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
12495 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
12552 if (FinishOpenMPLinearClause(*LC, cast<DeclRefExpr>(B.IterationVarRef), in ActOnOpenMPTargetTeamsDistributeSimdDirective()
12658 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPTileDirective()
12660 DeclRefExpr *IterVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPTileDirective()
12694 auto *CounterDecl = cast<DeclRefExpr>(CounterRef)->getDecl(); in ActOnOpenMPTileDirective()
12707 auto *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
12713 DeclRefExpr *TileIV = buildDeclRefExpr(*this, TileIndVars[I], CntTy, in ActOnOpenMPTileDirective()
12715 DeclRefExpr *FloorIV = buildDeclRefExpr(*this, FloorIndVars[I], CntTy, in ActOnOpenMPTileDirective()
12783 DeclRefExpr *OrigCntVar = cast<DeclRefExpr>(LoopHelper.Counters[0]); in ActOnOpenMPTileDirective()
12789 DeclRefExpr *FloorIV = buildDeclRefExpr(*this, FloorIndVars[I], CntTy, in ActOnOpenMPTileDirective()
12937 auto *CounterDecl = cast<DeclRefExpr>(CounterRef)->getDecl(); in ActOnOpenMPUnrollDirective()
12942 auto *IterationVarRef = cast<DeclRefExpr>(LoopHelper.IterationVarRef); in ActOnOpenMPUnrollDirective()
12946 auto *OrigVar = cast<DeclRefExpr>(LoopHelper.Counters.front()); in ActOnOpenMPUnrollDirective()
14060 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPIfClause()
14092 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFinalClause()
14180 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in isNonNegativeIntegerValue()
14206 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumThreadsClause()
14891 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPScheduleClause()
15183 const DeclRefExpr *DRE = nullptr; in ActOnOpenMPInteropDirective()
15189 DRE = dyn_cast_or_null<DeclRefExpr>(IC->getInteropVar()); in ActOnOpenMPInteropDirective()
15193 DRE = dyn_cast_or_null<DeclRefExpr>(UC->getInteropVar()); in ActOnOpenMPInteropDirective()
15197 DRE = dyn_cast_or_null<DeclRefExpr>(DC->getInteropVar()); in ActOnOpenMPInteropDirective()
15222 const auto *DRE = dyn_cast<DeclRefExpr>(InteropVarExpr); in isValidInteropVariable()
15341 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNovariantsClause()
15372 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNocontextClause()
15394 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPFilterClause()
15715 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPPrivateClause()
15719 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPPrivateClause()
15722 DeclRefExpr *Ref = nullptr; in ActOnOpenMPPrivateClause()
15968 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPFirstprivateClause()
16014 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPFirstprivateClause()
16017 DeclRefExpr *Ref = nullptr; in ActOnOpenMPFirstprivateClause()
16168 DeclRefExpr *PseudoSrcExpr = in ActOnOpenMPLastprivateClause()
16173 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPLastprivateClause()
16185 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLastprivateClause()
16264 DeclRefExpr *Ref = nullptr; in ActOnOpenMPSharedClause()
16284 bool VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
16319 DeclRefExpr *CapturedExpr = nullptr;
16333 DeclRefExpr *getCapturedExpr() { return CapturedExpr; } in getCapturedExpr()
17073 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in actOnOMPReductionKindClause()
17076 DeclRefExpr *LHSDRE = buildDeclRefExpr(S, LHSVD, Type, ELoc); in actOnOMPReductionKindClause()
17077 DeclRefExpr *RHSDRE = buildDeclRefExpr(S, RHSVD, Type, ELoc); in actOnOMPReductionKindClause()
17079 auto *DRDRef = DeclareReductionRef.getAs<DeclRefExpr>(); in actOnOMPReductionKindClause()
17213 DeclRefExpr *PrivateDRE = buildDeclRefExpr(S, PrivateVD, PrivateTy, ELoc); in actOnOMPReductionKindClause()
17368 DeclRefExpr *Ref = nullptr; in actOnOMPReductionKindClause()
17616 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPLinearClause()
17617 DeclRefExpr *PrivateRef = buildDeclRefExpr(*this, Private, Type, ELoc); in ActOnOpenMPLinearClause()
17621 DeclRefExpr *Ref = nullptr; in ActOnOpenMPLinearClause()
17646 DeclRefExpr *InitRef = buildDeclRefExpr(*this, Init, Type, ELoc); in ActOnOpenMPLinearClause()
17700 static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, in FinishOpenMPLinearClause()
17747 auto *DE = cast<DeclRefExpr>(SimpleRefExpr); in FinishOpenMPLinearClause()
17852 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAlignedClause()
17903 auto *DE = dyn_cast<DeclRefExpr>(RefExpr); in ActOnOpenMPCopyinClause()
17940 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr( in ActOnOpenMPCopyinClause()
17945 DeclRefExpr *PseudoDstExpr = in ActOnOpenMPCopyinClause()
18054 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(*this, SrcVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
18058 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
18433 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDeviceClause()
18614 bool VisitDeclRefExpr(DeclRefExpr *DRE) { in VisitDeclRefExpr()
20015 auto *VD = cast<DeclRefExpr>(MapperVarRef)->getDecl(); in ActOnOpenMPDeclareMapperDirective()
20043 if (const auto *DRE = cast_or_null<DeclRefExpr>(Ref)) { in isOpenMPDeclareMapperVarDeclAllowed()
20055 return cast<DeclRefExpr>(DSAStack->getDeclareMapperVarRef())->getDecl(); in getOpenMPDeclareMapperVarName()
20076 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPNumTeamsClause()
20103 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPThreadLimitClause()
20213 auto *Ref = dyn_cast<DeclRefExpr>(Evt->IgnoreParenImpCasts()); in ActOnOpenMPDetachClause()
20292 llvm::MapVector<const Expr *, DeclRefExpr *> Captures; in ActOnOpenMPDistScheduleClause()
20710 VD ? cast<DeclRefExpr>(SimpleRefExpr) : nullptr); in ActOnOpenMPUseDevicePtrClause()
20715 DeclRefExpr *VDPrivateRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
20721 DeclRefExpr *VDInitRefExpr = buildDeclRefExpr( in ActOnOpenMPUseDevicePtrClause()
20729 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDevicePtrClause()
20779 DeclRefExpr *Ref = nullptr; in ActOnOpenMPUseDeviceAddrClause()
20875 assert((isa<DeclRefExpr>(SimpleRefExpr) || in ActOnOpenMPIsDevicePtrClause()
20879 isa<DeclRefExpr>(SimpleRefExpr) ? D : nullptr); in ActOnOpenMPIsDevicePtrClause()
20938 DeclRefExpr *Ref = nullptr; in ActOnOpenMPAllocateClause()
21127 auto *DRE = dyn_cast<DeclRefExpr>(AllocatorExpr); in ActOnOpenMPUsesAllocatorClause()
21202 if (auto *DRE = dyn_cast<DeclRefExpr>(AllocatorTraitsExpr)) in ActOnOpenMPUsesAllocatorClause()