Lines Matching refs:OrigVD
148 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(IRef)->getDecl()); in emitPreInitStmt() local
149 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in emitPreInitStmt()
151 CGF, OrigVD, in emitPreInitStmt()
154 OrigVD->getType().getNonReferenceType()))), in emitPreInitStmt()
155 CGF.getContext().getDeclAlign(OrigVD))); in emitPreInitStmt()
273 if (const auto *OrigVD = dyn_cast<VarDecl>(OrigDRE->getDecl())) { in EmitOMPSharedLValue() local
274 OrigVD = OrigVD->getCanonicalDecl(); in EmitOMPSharedLValue()
276 LambdaCaptureFields.lookup(OrigVD) || in EmitOMPSharedLValue()
277 (CapturedStmtInfo && CapturedStmtInfo->lookup(OrigVD)) || in EmitOMPSharedLValue()
279 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured, in EmitOMPSharedLValue()
788 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPFirstprivateClause() local
790 Lastprivates.count(OrigVD->getCanonicalDecl()) > 0; in EmitOMPFirstprivateClause()
791 const FieldDecl *FD = CapturedStmtInfo->lookup(OrigVD); in EmitOMPFirstprivateClause()
796 EmittedAsFirstprivate.insert(OrigVD->getCanonicalDecl()); in EmitOMPFirstprivateClause()
803 if (DeviceConstTarget && OrigVD->getType().isConstant(getContext()) && in EmitOMPFirstprivateClause()
807 OrigVD); in EmitOMPFirstprivateClause()
814 if (EmittedAsFirstprivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPFirstprivateClause()
818 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPFirstprivateClause()
846 OrigVD, [this, VD, Type, OriginalLVal, VDInit]() { in EmitOMPFirstprivateClause()
878 PrivateScope.addPrivate(OrigVD, [this, VDInit, OriginalAddr, VD, in EmitOMPFirstprivateClause()
880 OrigVD, &Lastprivates, IRef]() { in EmitOMPFirstprivateClause()
888 Lastprivates[OrigVD->getCanonicalDecl()] == in EmitOMPFirstprivateClause()
893 *this, OrigVD); in EmitOMPFirstprivateClause()
929 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPPrivateClause() local
930 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPPrivateClause()
932 bool IsRegistered = PrivateScope.addPrivate(OrigVD, [this, VD]() { in EmitOMPPrivateClause()
1039 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPLastprivateClauseInit() local
1042 if (AlreadyEmittedVars.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPLastprivateClauseInit()
1045 PrivateScope.addPrivate(DestVD, [this, OrigVD, IRef]() { in EmitOMPLastprivateClauseInit()
1046 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLastprivateClauseInit()
1048 CapturedStmtInfo->lookup(OrigVD) != nullptr, in EmitOMPLastprivateClauseInit()
1055 if (IInit && !SIMDLCVs.count(OrigVD->getCanonicalDecl())) { in EmitOMPLastprivateClauseInit()
1057 bool IsRegistered = PrivateScope.addPrivate(OrigVD, [this, VD, C, in EmitOMPLastprivateClauseInit()
1058 OrigVD]() { in EmitOMPLastprivateClauseInit()
1062 OrigVD); in EmitOMPLastprivateClauseInit()
1933 const auto *OrigVD = cast<VarDecl>(Ref->getDecl()); in EmitOMPLinearClauseInit() local
1934 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLinearClauseInit()
1935 CapturedStmtInfo->lookup(OrigVD) != nullptr, in EmitOMPLinearClauseInit()
1978 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl()); in EmitOMPLinearClauseFinal() local
1979 DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPLinearClauseFinal()
1980 CapturedStmtInfo->lookup(OrigVD) != nullptr, in EmitOMPLinearClauseFinal()
1984 VarScope.addPrivate(OrigVD, [OrigAddr]() { return OrigAddr; }); in EmitOMPLinearClauseFinal()
2210 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>((*IC))->getDecl()); in EmitOMPSimdFinal() local
2212 const auto *CED = dyn_cast<OMPCapturedExprDecl>(OrigVD); in EmitOMPSimdFinal()
2213 if (LocalDeclMap.count(OrigVD) || CapturedStmtInfo->lookup(OrigVD) || in EmitOMPSimdFinal()
2214 OrigVD->hasGlobalStorage() || CED) { in EmitOMPSimdFinal()
2236 VarScope.addPrivate(OrigVD, [OrigAddr]() { return OrigAddr; }); in EmitOMPSimdFinal()
3870 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective() local
3871 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPTaskBasedDirective()
3884 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective() local
3885 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPTaskBasedDirective()
3900 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPTaskBasedDirective() local
3901 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPTaskBasedDirective()
3997 const auto *OrigVD = cast<VarDecl>(Pair.second->getDecl()); in EmitOMPTaskBasedDirective() local
3998 DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(OrigVD), in EmitOMPTaskBasedDirective()
4000 CGF.CapturedStmtInfo->lookup(OrigVD) != nullptr, in EmitOMPTaskBasedDirective()
4140 auto *OrigVD = ImplicitParamDecl::Create(C, CD, Loc, /*Id=*/nullptr, Ty, in createImplicitFirstprivateForType() local
4143 C, NestedNameSpecifierLoc(), SourceLocation(), OrigVD, in createImplicitFirstprivateForType()
4163 return OrigVD; in createImplicitFirstprivateForType()
6008 const auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*OrigVarIt)->getDecl()); in EmitOMPUseDevicePtrClause() local
6015 const ValueDecl *MatchingVD = OrigVD; in EmitOMPUseDevicePtrClause()
6031 bool IsRegistered = PrivateScope.addPrivate(OrigVD, [this, OrigVD, in EmitOMPUseDevicePtrClause()
6040 getContext().getPointerType(OrigVD->getType().getNonReferenceType()); in EmitOMPUseDevicePtrClause()
6079 const VarDecl *OrigVD = getBaseDecl(Ref); in EmitOMPUseDeviceAddrClause() local
6080 if (!Processed.insert(OrigVD).second) in EmitOMPUseDeviceAddrClause()
6085 const ValueDecl *MatchingVD = OrigVD; in EmitOMPUseDeviceAddrClause()
6108 .getPointerType(OrigVD->getType()) in EmitOMPUseDeviceAddrClause()
6111 ConvertTypeForMem(OrigVD->getType().getNonReferenceType()) in EmitOMPUseDeviceAddrClause()
6115 (void)PrivateScope.addPrivate(OrigVD, [PrivAddr]() { return PrivAddr; }); in EmitOMPUseDeviceAddrClause()