Lines Matching refs:OrigVD

589       auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl());  in EmitOMPFirstprivateClause()  local
591 Lastprivates.count(OrigVD->getCanonicalDecl()) > 0; in EmitOMPFirstprivateClause()
592 auto *CapFD = CapturesInfo.lookup(OrigVD); in EmitOMPFirstprivateClause()
593 auto *FD = CapturedStmtInfo->lookup(OrigVD); in EmitOMPFirstprivateClause()
596 EmittedAsFirstprivate.insert(OrigVD->getCanonicalDecl()); in EmitOMPFirstprivateClause()
603 if (EmittedAsFirstprivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPFirstprivateClause()
607 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD), in EmitOMPFirstprivateClause()
616 IsRegistered = PrivateScope.addPrivate(OrigVD, [&]() -> Address { in EmitOMPFirstprivateClause()
642 IsRegistered = PrivateScope.addPrivate(OrigVD, [&]() -> Address { in EmitOMPFirstprivateClause()
674 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPPrivateClause() local
675 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPPrivateClause()
678 PrivateScope.addPrivate(OrigVD, [&]() -> Address { in EmitOMPPrivateClause()
781 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPLastprivateClauseInit() local
784 if (AlreadyEmittedVars.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPLastprivateClauseInit()
786 PrivateScope.addPrivate(DestVD, [this, OrigVD, IRef]() -> Address { in EmitOMPLastprivateClauseInit()
788 const_cast<VarDecl *>(OrigVD), in EmitOMPLastprivateClauseInit()
790 OrigVD) != nullptr, in EmitOMPLastprivateClauseInit()
797 if (IInit && !SIMDLCVs.count(OrigVD->getCanonicalDecl())) { in EmitOMPLastprivateClauseInit()
799 bool IsRegistered = PrivateScope.addPrivate(OrigVD, [&]() -> Address { in EmitOMPLastprivateClauseInit()
956 auto *OrigVD = cast<VarDecl>(DE->getDecl()); in EmitOMPReductionClauseInit() local
962 loadToBegin(*this, OrigVD->getType(), OASELValueLB.getType(), in EmitOMPReductionClauseInit()
971 OrigVD, [this, OrigVD, PrivateVD, BaseLValue, OASELValueLB, in EmitOMPReductionClauseInit()
998 return castToBase(*this, OrigVD->getType(), in EmitOMPReductionClauseInit()
1013 auto *OrigVD = cast<VarDecl>(DE->getDecl()); in EmitOMPReductionClauseInit() local
1017 *this, OrigVD->getType(), ASELValue.getType(), OriginalBaseLValue); in EmitOMPReductionClauseInit()
1025 OrigVD, [this, OrigVD, PrivateVD, BaseLValue, ASELValue, in EmitOMPReductionClauseInit()
1040 return castToBase(*this, OrigVD->getType(), ASELValue.getType(), in EmitOMPReductionClauseInit()
1052 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl()); in EmitOMPReductionClauseInit() local
1057 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD), in EmitOMPReductionClauseInit()
1058 CapturedStmtInfo->lookup(OrigVD) != nullptr, in EmitOMPReductionClauseInit()
1067 bool IsRegistered = PrivateScope.addPrivate(OrigVD, [&]() -> Address { in EmitOMPReductionClauseInit()
1075 getTypeSize(OrigVD->getType().getNonReferenceType()))); in EmitOMPReductionClauseInit()
1098 PrivateScope.addPrivate(LHSVD, [this, OrigVD, IRef, in EmitOMPReductionClauseInit()
1100 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD), in EmitOMPReductionClauseInit()
1101 CapturedStmtInfo->lookup(OrigVD) != nullptr, in EmitOMPReductionClauseInit()
1108 OrigVD, [this, PrivateVD, OriginalAddr, DRD, IRed]() -> Address { in EmitOMPReductionClauseInit()
1330 auto *OrigVD = cast<VarDecl>(Ref->getDecl()); in EmitOMPLinearClauseInit() local
1331 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD), in EmitOMPLinearClauseInit()
1332 CapturedStmtInfo->lookup(OrigVD) != nullptr, in EmitOMPLinearClauseInit()
1373 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl()); in EmitOMPLinearClauseFinal() local
1374 DeclRefExpr DRE(const_cast<VarDecl *>(OrigVD), in EmitOMPLinearClauseFinal()
1375 CapturedStmtInfo->lookup(OrigVD) != nullptr, in EmitOMPLinearClauseFinal()
1379 VarScope.addPrivate(OrigVD, [OrigAddr]() -> Address { return OrigAddr; }); in EmitOMPLinearClauseFinal()
1552 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>((*IC))->getDecl()); in EmitOMPSimdFinal() local
1554 auto *CED = dyn_cast<OMPCapturedExprDecl>(OrigVD); in EmitOMPSimdFinal()
1555 if (LocalDeclMap.count(OrigVD) || CapturedStmtInfo->lookup(OrigVD) || in EmitOMPSimdFinal()
1556 OrigVD->hasGlobalStorage() || CED) { in EmitOMPSimdFinal()
1577 VarScope.addPrivate(OrigVD, in EmitOMPSimdFinal()
2444 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective() local
2445 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPTaskBasedDirective()
2458 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective() local
2459 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPTaskBasedDirective()
2474 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective() local
2475 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPTaskBasedDirective()
2529 auto *OrigVD = cast<VarDecl>(Pair.second->getDecl()); in EmitOMPTaskBasedDirective() local
2531 const_cast<VarDecl *>(OrigVD), in EmitOMPTaskBasedDirective()
2533 OrigVD) != nullptr, in EmitOMPTaskBasedDirective()