Lines Matching refs:DeclRefExpr
94 DeclRefExpr DRE( in OMPLexicalScope()
146 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in emitPreInitStmt()
155 cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl()); in emitPreInitStmt()
233 const Decl *D = cast<DeclRefExpr>(E)->getDecl(); in OMPSimdLexicalScope()
249 CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl())); in OMPSimdLexicalScope()
258 CopyArrayTemps.insert(cast<DeclRefExpr>(E)->getDecl()); in OMPSimdLexicalScope()
269 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD), in OMPSimdLexicalScope()
291 if (const auto *OrigDRE = dyn_cast<DeclRefExpr>(E)) { in EmitOMPSharedLValue()
298 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured, in EmitOMPSharedLValue()
808 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl(), in EmitOMPFirstprivateClause()
822 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPFirstprivateClause()
826 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPFirstprivateClause()
849 cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl()); in EmitOMPFirstprivateClause()
851 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()
980 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPCopyinClause()
991 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()
1068 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLastprivateClauseInit()
1077 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPLastprivateClauseInit()
1138 cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl())->getCanonicalDecl(); in EmitOMPLastprivateClauseFinal()
1152 cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPLastprivateClauseFinal()
1162 cast<VarDecl>(cast<DeclRefExpr>(*ISrcRef)->getDecl()); in EmitOMPLastprivateClauseFinal()
1164 cast<VarDecl>(cast<DeclRefExpr>(*IDestRef)->getDecl()); in EmitOMPLastprivateClauseFinal()
1229 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*IPriv)->getDecl()); in EmitOMPReductionClauseInit()
1249 const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl()); in EmitOMPReductionClauseInit()
1250 const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl()); in EmitOMPReductionClauseInit()
1397 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(TaskRedRef)->getDecl()); in EmitOMPReductionClauseInit()
1489 const auto *DRE = dyn_cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in checkForLastprivateConditionalUpdate()
1500 const auto *DRE = dyn_cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in checkForLastprivateConditionalUpdate()
1511 const auto *DRE = dyn_cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in checkForLastprivateConditionalUpdate()
1526 const auto *DRE = dyn_cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in checkForLastprivateConditionalUpdate()
2060 const DeclRefExpr *LoopVarRef = S->getLoopVarRef(); in EmitOMPCanonicalLoop()
2149 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(Init)->getDecl()); in EmitOMPLinearClauseInit()
2151 dyn_cast<DeclRefExpr>(VD->getInit()->IgnoreImpCasts())) { in EmitOMPLinearClauseInit()
2154 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLinearClauseInit()
2170 if (const auto *SaveRef = cast<DeclRefExpr>(CS->getLHS())) { in EmitOMPLinearClauseInit()
2199 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl()); in EmitOMPLinearClauseFinal()
2200 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLinearClauseFinal()
2258 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPPrivateLoopCounters()
2259 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(*I)->getDecl()); in EmitOMPPrivateLoopCounters()
2267 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(VD), in EmitOMPPrivateLoopCounters()
2282 const auto *DRE = cast<DeclRefExpr>(C->getLoopCounter(I)); in EmitOMPPrivateLoopCounters()
2316 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in emitPreCond()
2341 cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl()); in EmitOMPLinearClause()
2347 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPLinearClause()
2349 cast<VarDecl>(cast<DeclRefExpr>(*CurPrivate)->getDecl()); in EmitOMPLinearClause()
2419 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>((*IC))->getDecl()); in EmitOMPSimdFinal()
2420 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>((*IPC))->getDecl()); in EmitOMPSimdFinal()
2439 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(PrivateVD), in EmitOMPSimdFinal()
2465 const DeclRefExpr *Helper) { in EmitOMPHelperVar()
2521 (void)EmitOMPHelperVar(CGF, cast<DeclRefExpr>(S.getLowerBoundVariable())); in emitOMPSimdRegion()
2522 (void)EmitOMPHelperVar(CGF, cast<DeclRefExpr>(S.getUpperBoundVariable())); in emitOMPSimdRegion()
2544 const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl()); in emitOMPSimdRegion()
2551 if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) { in emitOMPSimdRegion()
3094 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getLowerBoundVariable())); in emitDistributeParallelForInnerBounds()
3096 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getUpperBoundVariable())); in emitDistributeParallelForInnerBounds()
3155 CGF.EmitLValue(cast<DeclRefExpr>(Dir.getCombinedLowerBoundVariable())); in emitDistributeParallelForDistributeInnerBoundParams()
3161 CGF.EmitLValue(cast<DeclRefExpr>(Dir.getCombinedUpperBoundVariable())); in emitDistributeParallelForDistributeInnerBoundParams()
3268 const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable()); in EmitOMPWorksharingLoop()
3275 if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) { in EmitOMPWorksharingLoop()
3322 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getStrideVariable())); in EmitOMPWorksharingLoop()
3324 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getIsLastIterVariable())); in EmitOMPWorksharingLoop()
3511 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getLowerBoundVariable())); in emitForLoopBounds()
3513 EmitOMPHelperVar(CGF, cast<DeclRefExpr>(LS.getUpperBoundVariable())); in emitForLoopBounds()
3565 const auto *PrivateVD = cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl()); in emitScanBasedDirectiveDecls()
3579 CGF.EmitVarDecl(*cast<VarDecl>(cast<DeclRefExpr>(*ITA)->getDecl())); in emitScanBasedDirectiveDecls()
3631 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in emitScanBasedDirectiveFinals()
3632 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in emitScanBasedDirectiveFinals()
3734 const auto *LHSVD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl()); in emitScanBasedDirective()
3735 const auto *RHSVD = cast<VarDecl>(cast<DeclRefExpr>(*IRHS)->getDecl()); in emitScanBasedDirective()
4647 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective()
4661 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective()
4672 llvm::MapVector<const VarDecl *, const DeclRefExpr *> LastprivateDstsOrigs; in EmitOMPTaskBasedDirective()
4677 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective()
4683 std::make_pair(cast<VarDecl>(cast<DeclRefExpr>(*ID)->getDecl()), in EmitOMPTaskBasedDirective()
4684 cast<DeclRefExpr>(*IRef))); in EmitOMPTaskBasedDirective()
4782 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTaskBasedDirective()
4790 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTaskBasedDirective()
4800 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTaskBasedDirective()
4831 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPTaskBasedDirective()
4989 auto *OrigRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
4994 auto *PrivateRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
5000 auto *InitRef = DeclRefExpr::Create( in createImplicitFirstprivateForType()
5102 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTargetTaskBasedDirective()
5348 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitOMPTaskgroupDirective()
5480 *cast<VarDecl>(cast<DeclRefExpr>(TempExpr)->getDecl())); in EmitOMPScanDirective()
5485 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in EmitOMPScanDirective()
5486 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in EmitOMPScanDirective()
5507 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in EmitOMPScanDirective()
5508 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in EmitOMPScanDirective()
5544 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in EmitOMPScanDirective()
5545 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in EmitOMPScanDirective()
5586 cast<VarDecl>(cast<DeclRefExpr>(LHSs[I])->getDecl()), in EmitOMPScanDirective()
5587 cast<VarDecl>(cast<DeclRefExpr>(RHSs[I])->getDecl()), in EmitOMPScanDirective()
5603 const auto *IVExpr = cast<DeclRefExpr>(S.getIterationVariable()); in EmitOMPDistributeLoop()
5610 if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) { in EmitOMPDistributeLoop()
5645 *this, cast<DeclRefExpr>( in EmitOMPDistributeLoop()
5650 *this, cast<DeclRefExpr>( in EmitOMPDistributeLoop()
5655 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getStrideVariable())); in EmitOMPDistributeLoop()
5657 EmitOMPHelperVar(*this, cast<DeclRefExpr>(S.getIsLastIterVariable())); in EmitOMPDistributeLoop()
7210 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(OrigVarIt)->getDecl()); in EmitOMPUseDevicePtrClause()
7252 return cast<VarDecl>(cast<DeclRefExpr>(Base)->getDecl()); in getBaseDecl()
7290 if (isa<DeclRefExpr>(Ref->IgnoreParenImpCasts()) || in EmitOMPUseDeviceAddrClause()
7358 const Decl *D = cast<DeclRefExpr>(E)->getDecl(); in EmitOMPTargetDataDirective()
7585 static void mapParam(CodeGenFunction &CGF, const DeclRefExpr *Helper, in mapParam()
7662 mapParam(CGF, cast<DeclRefExpr>(S.getLowerBoundVariable()), *LBP, in EmitOMPTaskLoopBasedDirective()
7664 mapParam(CGF, cast<DeclRefExpr>(S.getUpperBoundVariable()), *UBP, in EmitOMPTaskLoopBasedDirective()
7666 mapParam(CGF, cast<DeclRefExpr>(S.getStrideVariable()), *STP, LoopScope); in EmitOMPTaskLoopBasedDirective()
7667 mapParam(CGF, cast<DeclRefExpr>(S.getIsLastIterVariable()), *LIP, in EmitOMPTaskLoopBasedDirective()
7675 const auto *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl()); in EmitOMPTaskLoopBasedDirective()
7682 if (const auto *LIExpr = dyn_cast<DeclRefExpr>(S.getLastIteration())) { in EmitOMPTaskLoopBasedDirective()
8028 const auto *DRE = cast<DeclRefExpr>(Ref->IgnoreParenImpCasts()); in EmitSimpleOMPExecutableDirective()
8048 const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitSimpleOMPExecutableDirective()
8066 cast<DeclRefExpr>(C->getLoopCounter(I))->getDecl())) { in EmitSimpleOMPExecutableDirective()