Lines Matching refs:DeclRefExpr

88         DeclRefExpr DRE(  in OMPLexicalScope()
142 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in emitPreInitStmt()
151 cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl()); in emitPreInitStmt()
226 const Decl *D = cast<DeclRefExpr>(E)->getDecl(); in OMPSimdLexicalScope()
242 CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl())); in OMPSimdLexicalScope()
251 CopyArrayTemps.insert(cast<DeclRefExpr>(E)->getDecl()); in OMPSimdLexicalScope()
262 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD), in OMPSimdLexicalScope()
286 if (const auto *OrigDRE = dyn_cast<DeclRefExpr>(E)) { in EmitOMPSharedLValue()
293 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured, in EmitOMPSharedLValue()
795 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl(), in EmitOMPFirstprivateClause()
809 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPFirstprivateClause()
813 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPFirstprivateClause()
837 cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl()); in EmitOMPFirstprivateClause()
839 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPFirstprivateClause()
950 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPPrivateClause()
952 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPPrivateClause()
981 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPCopyinClause()
992 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(VD), true, in EmitOMPCopyinClause()
1020 cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl()); in EmitOMPCopyinClause()
1022 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl()); in EmitOMPCopyinClause()
1048 cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl()); in EmitOMPLastprivateClauseInit()
1062 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPLastprivateClauseInit()
1067 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl()); in EmitOMPLastprivateClauseInit()
1069 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLastprivateClauseInit()
1079 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPLastprivateClauseInit()
1142 cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl())->getCanonicalDecl(); in EmitOMPLastprivateClauseFinal()
1156 cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPLastprivateClauseFinal()
1166 cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl()); in EmitOMPLastprivateClauseFinal()
1168 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl()); in EmitOMPLastprivateClauseFinal()
1232 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*IPriv)->getDecl()); in EmitOMPReductionClauseInit()
1252 const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl()); in EmitOMPReductionClauseInit()
1253 const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl()); in EmitOMPReductionClauseInit()
1408 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(TaskRedRef)->getDecl()); in EmitOMPReductionClauseInit()
1500 const auto *DRE = dyn_cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in checkForLastprivateConditionalUpdate()
1511 const auto *DRE = dyn_cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in checkForLastprivateConditionalUpdate()
1522 const auto *DRE = dyn_cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in checkForLastprivateConditionalUpdate()
1537 const auto *DRE = dyn_cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in checkForLastprivateConditionalUpdate()
2010 const DeclRefExpr *LoopVarRef = S->getLoopVarRef(); in EmitOMPCanonicalLoop()
2099 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(Init)->getDecl()); in EmitOMPLinearClauseInit()
2101 dyn_cast<DeclRefExpr>(VD->getInit()->IgnoreImpCasts())) { in EmitOMPLinearClauseInit()
2104 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLinearClauseInit()
2119 if (const auto *SaveRef = cast<DeclRefExpr>(CS->getLHS())) { in EmitOMPLinearClauseInit()
2148 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl()); in EmitOMPLinearClauseFinal()
2149 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLinearClauseFinal()
2207 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPPrivateLoopCounters()
2208 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()); in EmitOMPPrivateLoopCounters()
2219 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(VD), in EmitOMPPrivateLoopCounters()
2237 const auto *DRE = cast<DeclRefExpr>(C->getLoopCounter(I)); in EmitOMPPrivateLoopCounters()
2272 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in emitPreCond()
2297 cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl()); in EmitOMPLinearClause()
2303 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPLinearClause()
2305 cast<VarDecl>(cast<DeclRefExpr>(*CurPrivate)->getDecl()); in EmitOMPLinearClause()
2379 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>((*IC))->getDecl()); in EmitOMPSimdFinal()
2380 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>((*IPC))->getDecl()); in EmitOMPSimdFinal()
2399 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(PrivateVD), in EmitOMPSimdFinal()
2425 const DeclRefExpr *Helper) { in EmitOMPHelperVar()
2481 (void)EmitOMPHelperVar(CGF, cast<DeclRefExpr>(S.getLowerBoundVariable())); in emitOMPSimdRegion()
2482 (void)EmitOMPHelperVar(CGF, cast<DeclRefExpr>(S.getUpperBoundVariable())); in emitOMPSimdRegion()
2504 const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl()); in emitOMPSimdRegion()
2511 if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) { in emitOMPSimdRegion()
2875 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getLowerBoundVariable())); in emitDistributeParallelForInnerBounds()
2877 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getUpperBoundVariable())); in emitDistributeParallelForInnerBounds()
2936 CGF.EmitLValue(cast<DeclRefExpr>(Dir.getCombinedLowerBoundVariable())); in emitDistributeParallelForDistributeInnerBoundParams()
2942 CGF.EmitLValue(cast<DeclRefExpr>(Dir.getCombinedUpperBoundVariable())); in emitDistributeParallelForDistributeInnerBoundParams()
3049 const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable()); in EmitOMPWorksharingLoop()
3056 if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) { in EmitOMPWorksharingLoop()
3103 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getStrideVariable())); in EmitOMPWorksharingLoop()
3105 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getIsLastIterVariable())); in EmitOMPWorksharingLoop()
3290 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getLowerBoundVariable())); in emitForLoopBounds()
3292 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getUpperBoundVariable())); in emitForLoopBounds()
3344 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl()); in emitScanBasedDirectiveDecls()
3358 CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(*ITA)->getDecl())); in emitScanBasedDirectiveDecls()
3462 const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl()); in emitScanBasedDirective()
3463 const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl()); in emitScanBasedDirective()
4273 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective()
4287 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective()
4298 llvm::MapVector<const VarDecl *, const DeclRefExpr *> LastprivateDstsOrigs; in EmitOMPTaskBasedDirective()
4303 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective()
4309 std::make_pair(cast<VarDecl>(cast<DeclRefExpr>(*ID)->getDecl()), in EmitOMPTaskBasedDirective()
4310 cast<DeclRefExpr>(*IRef))); in EmitOMPTaskBasedDirective()
4364 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTaskBasedDirective()
4372 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTaskBasedDirective()
4382 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTaskBasedDirective()
4415 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPTaskBasedDirective()
4559 auto *OrigRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
4564 auto *PrivateRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
4570 auto *InitRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
4670 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTargetTaskBasedDirective()
4786 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTaskgroupDirective()
4919 *cast<VarDecl>(cast<DeclRefExpr>(TempExpr)->getDecl())); in EmitOMPScanDirective()
4924 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in EmitOMPScanDirective()
4925 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in EmitOMPScanDirective()
4946 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in EmitOMPScanDirective()
4947 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in EmitOMPScanDirective()
4983 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in EmitOMPScanDirective()
4984 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in EmitOMPScanDirective()
5025 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in EmitOMPScanDirective()
5026 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in EmitOMPScanDirective()
5042 const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable()); in EmitOMPDistributeLoop()
5049 if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) { in EmitOMPDistributeLoop()
5084 *this, cast<DeclRefExpr>( in EmitOMPDistributeLoop()
5089 *this, cast<DeclRefExpr>( in EmitOMPDistributeLoop()
5094 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getStrideVariable())); in EmitOMPDistributeLoop()
5096 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getIsLastIterVariable())); in EmitOMPDistributeLoop()
6441 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*OrigVarIt)->getDecl()); in EmitOMPUseDevicePtrClause()
6442 const auto *InitVD = cast<VarDecl>(cast<DeclRefExpr>(*InitIt)->getDecl()); in EmitOMPUseDevicePtrClause()
6443 const auto *PvtVD = cast<VarDecl>(cast<DeclRefExpr>(PvtVarIt)->getDecl()); in EmitOMPUseDevicePtrClause()
6504 return cast<VarDecl>(cast<DeclRefExpr>(Base)->getDecl()); in getBaseDecl()
6537 if (isa<DeclRefExpr>(Ref->IgnoreParenImpCasts()) || in EmitOMPUseDeviceAddrClause()
6816 static void mapParam(CodeGenFunction &CGF, const DeclRefExpr *Helper, in mapParam()
6894 mapParam(CGF, cast<DeclRefExpr>(S.getLowerBoundVariable()), *LBP, in EmitOMPTaskLoopBasedDirective()
6896 mapParam(CGF, cast<DeclRefExpr>(S.getUpperBoundVariable()), *UBP, in EmitOMPTaskLoopBasedDirective()
6898 mapParam(CGF, cast<DeclRefExpr>(S.getStrideVariable()), *STP, LoopScope); in EmitOMPTaskLoopBasedDirective()
6899 mapParam(CGF, cast<DeclRefExpr>(S.getIsLastIterVariable()), *LIP, in EmitOMPTaskLoopBasedDirective()
6907 const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl()); in EmitOMPTaskLoopBasedDirective()
6914 if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) { in EmitOMPTaskLoopBasedDirective()
7095 const auto *DRE = cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in EmitSimpleOMPExecutableDirective()
7116 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitSimpleOMPExecutableDirective()
7135 cast<DeclRefExpr>(C->getLoopCounter(I))->getDecl())) { in EmitSimpleOMPExecutableDirective()