Lines Matching refs:DRE

2628           auto *DRE = cast<DeclRefExpr>(DE->IgnoreParens());  in EndOpenMPDSABlock()  local
2629 auto *VD = cast<VarDecl>(DRE->getDecl()); in EndOpenMPDSABlock()
2641 VD->getName(), VD->hasAttrs() ? &VD->getAttrs() : nullptr, DRE); in EndOpenMPDSABlock()
2685 auto *DRE = dyn_cast<DeclRefExpr>(D.Allocator->IgnoreParenImpCasts()); in EndOpenMPDSABlock() local
2686 if (!DRE) in EndOpenMPDSABlock()
2688 ValueDecl *VD = DRE->getDecl(); in EndOpenMPDSABlock()
3836 DeclRefExpr *DRE = buildDeclRefExpr( in visitSubCaptures() local
3839 Visit(DRE); in visitSubCaptures()
6366 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective() local
6367 if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) in ActOnOpenMPDeclareSimdDirective()
6393 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective() local
6394 if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) { in ActOnOpenMPDeclareSimdDirective()
6464 if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) in ActOnOpenMPDeclareSimdDirective() local
6465 if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) { in ActOnOpenMPDeclareSimdDirective()
6534 if (const auto *DRE = dyn_cast<DeclRefExpr>(Step)) in ActOnOpenMPDeclareSimdDirective() local
6535 if (const auto *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl())) { in ActOnOpenMPDeclareSimdDirective()
6988 auto *DRE = dyn_cast<DeclRefExpr>(ER.get()->IgnoreParenImpCasts()); in checkOpenMPDeclareVariantFunction() local
6989 if (!DRE) { in checkOpenMPDeclareVariantFunction()
6994 auto *NewFD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl()); in checkOpenMPDeclareVariantFunction()
7091 return std::make_pair(FD, cast<Expr>(DRE)); in checkOpenMPDeclareVariantFunction()
7562 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit() local
7563 if (auto *CED = dyn_cast<OMPCapturedExprDecl>(DRE->getDecl())) in checkAndSetInit()
7567 return setLCDeclAndLB(DRE->getDecl(), DRE, BO->getRHS(), EmitDiags); in checkAndSetInit()
7597 if (auto *DRE = dyn_cast<DeclRefExpr>(LHS)) { in checkAndSetInit() local
7598 if (auto *CED = dyn_cast<OMPCapturedExprDecl>(DRE->getDecl())) in checkAndSetInit()
7602 return setLCDeclAndLB(DRE->getDecl(), DRE, CE->getArg(1), EmitDiags); in checkAndSetInit()
7634 if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) { in getInitLCDecl() local
7635 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in getInitLCDecl()
8961 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar); in checkOpenMPLoop() local
8962 if (isa<OMPCapturedExprDecl>(DRE->getDecl())) { in checkOpenMPLoop()
8963 Captures[DRE] = DRE; in checkOpenMPLoop()
14800 const DeclRefExpr *DRE = nullptr; in ActOnOpenMPInteropDirective() local
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()
14817 if (!DRE) in ActOnOpenMPInteropDirective()
14820 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in ActOnOpenMPInteropDirective()
14839 const auto *DRE = dyn_cast<DeclRefExpr>(InteropVarExpr); in isValidInteropVariable() local
14840 if (!DRE || !isa<VarDecl>(DRE->getDecl())) { in isValidInteropVariable()
18231 bool VisitDeclRefExpr(DeclRefExpr *DRE) { in VisitDeclRefExpr() argument
18232 if (!isa<VarDecl>(DRE->getDecl())) { in VisitDeclRefExpr()
18237 RelevantExpr = DRE; in VisitDeclRefExpr()
18239 Components.emplace_back(DRE, DRE->getDecl(), IsNonContiguous); in VisitDeclRefExpr()
19660 if (const auto *DRE = cast_or_null<DeclRefExpr>(Ref)) in isOpenMPDeclareMapperVarDeclAllowed() local
19661 return VD->getCanonicalDecl() == DRE->getDecl()->getCanonicalDecl(); in isOpenMPDeclareMapperVarDeclAllowed()
20739 auto *DRE = dyn_cast<DeclRefExpr>(AllocatorExpr); in ActOnOpenMPUsesAllocatorClause() local
20741 if (DRE) in ActOnOpenMPUsesAllocatorClause()
20742 IsPredefinedAllocator = PredefinedAllocators.count(DRE->getDecl()); in ActOnOpenMPUsesAllocatorClause()
20743 if (!DRE || in ActOnOpenMPUsesAllocatorClause()
20753 << "omp_allocator_handle_t" << (DRE ? 1 : 0) in ActOnOpenMPUsesAllocatorClause()
20765 << cast<NamedDecl>(DRE->getDecl())->getName() in ActOnOpenMPUsesAllocatorClause()
20781 DRE->getDecl(), in ActOnOpenMPUsesAllocatorClause()
20814 if (auto *DRE = dyn_cast<DeclRefExpr>(AllocatorTraitsExpr)) in ActOnOpenMPUsesAllocatorClause() local
20816 DRE->getDecl(), in ActOnOpenMPUsesAllocatorClause()