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