Lines Matching defs:OrigVD

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