• Home
  • Raw
  • Download

Lines Matching refs:VarDecl

90   typedef llvm::SmallDenseMap<VarDecl *, DSAInfo, 64> DeclSAMapTy;
91 typedef llvm::SmallDenseMap<VarDecl *, DeclRefExpr *, 64> AlignedMapTy;
92 typedef llvm::DenseSet<VarDecl *> LoopControlVariablesSetTy;
93 typedef llvm::SmallDenseMap<VarDecl *, MapInfo, 64> MappedDeclsTy;
142 DSAVarData getDSA(StackTy::reverse_iterator Iter, VarDecl *D);
145 bool isOpenMPLocal(VarDecl *D, StackTy::reverse_iterator Iter);
182 DeclRefExpr *addUniqueAligned(VarDecl *D, DeclRefExpr *NewDE);
185 void addLoopControlVariable(VarDecl *D);
188 bool isLoopControlVariable(VarDecl *D);
191 void addDSA(VarDecl *D, DeclRefExpr *E, OpenMPClauseKind A);
195 DSAVarData getTopDSA(VarDecl *D, bool FromParent);
197 DSAVarData getImplicitDSA(VarDecl *D, bool FromParent);
202 DSAVarData hasDSA(VarDecl *D, ClausesPredicate CPred,
208 DSAVarData hasInnermostDSA(VarDecl *D, ClausesPredicate CPred,
214 bool hasExplicitDSA(VarDecl *D,
260 bool isThreadPrivate(VarDecl *D) { in isThreadPrivate()
333 MapInfo getMapInfoForVar(VarDecl *VD) { in getMapInfoForVar()
344 void addMapInfoForVar(VarDecl *VD, MapInfo MI) { in addMapInfoForVar()
350 MapInfo IsMappedInCurrentRegion(VarDecl *VD) { in IsMappedInCurrentRegion()
367 VarDecl *D) { in getDSA()
471 DeclRefExpr *DSAStackTy::addUniqueAligned(VarDecl *D, DeclRefExpr *NewDE) { in addUniqueAligned()
486 void DSAStackTy::addLoopControlVariable(VarDecl *D) { in addLoopControlVariable()
492 bool DSAStackTy::isLoopControlVariable(VarDecl *D) { in isLoopControlVariable()
498 void DSAStackTy::addDSA(VarDecl *D, DeclRefExpr *E, OpenMPClauseKind A) { in addDSA()
510 bool DSAStackTy::isOpenMPLocal(VarDecl *D, StackTy::reverse_iterator Iter) { in isOpenMPLocal()
531 static VarDecl *buildVarDecl(Sema &SemaRef, SourceLocation Loc, QualType Type, in buildVarDecl()
536 VarDecl *Decl = in buildVarDecl()
537 VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type, TInfo, SC_None); in buildVarDecl()
547 static DeclRefExpr *buildDeclRefExpr(Sema &S, VarDecl *D, QualType Ty, in buildDeclRefExpr()
557 DSAStackTy::DSAVarData DSAStackTy::getTopDSA(VarDecl *D, bool FromParent) { in getTopDSA()
564 if ((D->getTLSKind() != VarDecl::TLS_None && in getTopDSA()
639 DSAStackTy::DSAVarData DSAStackTy::getImplicitDSA(VarDecl *D, bool FromParent) { in getImplicitDSA()
650 DSAStackTy::DSAVarData DSAStackTy::hasDSA(VarDecl *D, ClausesPredicate CPred, in hasDSA()
671 DSAStackTy::hasInnermostDSA(VarDecl *D, ClausesPredicate CPred, in hasInnermostDSA()
691 VarDecl *D, const llvm::function_ref<bool(OpenMPClauseKind)> &CPred, in hasExplicitDSA()
747 bool Sema::IsOpenMPCapturedByRef(VarDecl *VD, in IsOpenMPCapturedByRef()
835 bool Sema::IsOpenMPCapturedVar(VarDecl *VD) { in IsOpenMPCapturedVar()
880 bool Sema::isOpenMPPrivateVar(VarDecl *VD, unsigned Level) { in isOpenMPPrivateVar()
886 bool Sema::isOpenMPTargetCapturedVar(VarDecl *VD, unsigned Level) { in isOpenMPTargetCapturedVar()
926 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(DE)->getDecl()); in EndOpenMPDSABlock()
976 if (VarDecl *VD = dyn_cast_or_null<VarDecl>(ND)) { in ValidateCandidate()
995 VarDecl *VD; in ActOnOpenMPIdExpression()
1005 VD = Corrected.getCorrectionDeclAs<VarDecl>(); in ActOnOpenMPIdExpression()
1013 if (!(VD = Lookup.getAsSingle<VarDecl>())) { in ActOnOpenMPIdExpression()
1027 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPIdExpression()
1034 VarDecl *CanonicalVD = VD->getCanonicalDecl(); in ActOnOpenMPIdExpression()
1044 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPIdExpression()
1059 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPIdExpression()
1075 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPIdExpression()
1089 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPIdExpression()
1126 if (auto VD = dyn_cast<VarDecl>(E->getDecl())) { in VisitDeclRefExpr()
1154 VarDecl *VD = cast<VarDecl>(DE->getDecl()); in CheckOMPThreadPrivateDecl()
1177 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in CheckOMPThreadPrivateDecl()
1186 if ((VD->getTLSKind() != VarDecl::TLS_None && in CheckOMPThreadPrivateDecl()
1193 << VD << ((VD->getTLSKind() != VarDecl::TLS_None) ? 0 : 1); in CheckOMPThreadPrivateDecl()
1195 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in CheckOMPThreadPrivateDecl()
1227 const VarDecl *VD, DSAStackTy::DSAVarData DVar, in ReportOriginalDSA()
1287 llvm::DenseMap<VarDecl *, Expr *> VarsWithInheritedDSA;
1291 if (auto *VD = dyn_cast<VarDecl>(E->getDecl())) { in VisitDeclRefExpr()
1357 llvm::DenseMap<VarDecl *, Expr *> &getVarsWithInheritedDSA() { in getVarsWithInheritedDSA()
2476 llvm::DenseMap<VarDecl *, Expr *> VarsWithInheritedDSA; in ActOnOpenMPExecutableDirective()
2704 VarDecl *Var;
2741 VarDecl *GetLoopVar() const { return Var; } in GetLoopVar()
2773 bool SetVarAndLB(VarDecl *NewVar, DeclRefExpr *NewVarRefExpr, Expr *NewLB);
2806 bool OpenMPIterationSpaceChecker::SetVarAndLB(VarDecl *NewVar, in SetVarAndLB()
2918 return SetVarAndLB(dyn_cast<VarDecl>(DRE->getDecl()), DRE, in CheckInit()
2922 if (auto Var = dyn_cast_or_null<VarDecl>(DS->getSingleDecl())) { in CheckInit()
2925 if (Var->getInitStyle() != VarDecl::CInit && EmitDiags) in CheckInit()
2936 return SetVarAndLB(dyn_cast<VarDecl>(DRE->getDecl()), DRE, in CheckInit()
2948 static const VarDecl *GetInitVarDecl(const Expr *E) { in GetInitVarDecl()
2961 return dyn_cast<VarDecl>(DRE->getDecl()); in GetInitVarDecl()
3125 if (auto *VD = cast<VarDecl>(D)) in TransformDefinition()
3128 auto *NewVD = VarDecl::Create( in TransformDefinition()
3388 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA, in CheckOpenMPIterationSpace() argument
3643 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA, in CheckOpenMPLoop() argument
3799 VarDecl *SaveVar = in CheckOpenMPLoop()
3824 VarDecl *LBDecl = buildVarDecl(SemaRef, InitLoc, VType, ".omp.lb"); in CheckOpenMPLoop()
3831 VarDecl *UBDecl = buildVarDecl(SemaRef, InitLoc, VType, ".omp.ub"); in CheckOpenMPLoop()
3840 VarDecl *ILDecl = buildVarDecl(SemaRef, InitLoc, Int32Ty, ".omp.is_last"); in CheckOpenMPLoop()
3847 VarDecl *STDecl = buildVarDecl(SemaRef, InitLoc, VType, ".omp.stride"); in CheckOpenMPLoop()
3868 VarDecl *IVDecl = buildVarDecl(SemaRef, InitLoc, VType, ".omp.iv"); in CheckOpenMPLoop()
3961 SemaRef, cast<VarDecl>(cast<DeclRefExpr>(IS.CounterVar)->getDecl()), in CheckOpenMPLoop()
4083 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA) { in ActOnOpenMPSimdDirective() argument
4136 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA) { in ActOnOpenMPForDirective() argument
4171 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA) { in ActOnOpenMPForSimdDirective() argument
4380 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA) { in ActOnOpenMPParallelForDirective() argument
4424 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA) { in ActOnOpenMPParallelForSimdDirective() argument
5462 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA) { in ActOnOpenMPTaskLoopDirective() argument
5494 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA) { in ActOnOpenMPTaskLoopSimdDirective() argument
5526 llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA) { in ActOnOpenMPDistributeDirective() argument
6349 if (!DE || !isa<VarDecl>(DE->getDecl())) { in ActOnOpenMPPrivateClause()
6354 VarDecl *VD = cast<VarDecl>(D); in ActOnOpenMPPrivateClause()
6395 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPPrivateClause()
6484 if (!DE || !isa<VarDecl>(DE->getDecl())) { in ActOnOpenMPFirstprivateClause()
6489 VarDecl *VD = cast<VarDecl>(D); in ActOnOpenMPFirstprivateClause()
6651 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPFirstprivateClause()
6747 if (!DE || !isa<VarDecl>(DE->getDecl())) { in ActOnOpenMPLastprivateClause()
6752 VarDecl *VD = cast<VarDecl>(D); in ActOnOpenMPLastprivateClause()
6886 if (!DE || !isa<VarDecl>(DE->getDecl())) { in ActOnOpenMPSharedClause()
6891 VarDecl *VD = cast<VarDecl>(D); in ActOnOpenMPSharedClause()
6932 if (VarDecl *VD = dyn_cast<VarDecl>(E->getDecl())) { in VisitDeclRefExpr()
7102 if (!ASE && !OASE && (!DE || !isa<VarDecl>(DE->getDecl()))) { in ActOnOpenMPReductionClause()
7107 VarDecl *VD = nullptr; in ActOnOpenMPReductionClause()
7110 VD = cast<VarDecl>(D); in ActOnOpenMPReductionClause()
7119 VD = dyn_cast<VarDecl>(DE->getDecl()); in ActOnOpenMPReductionClause()
7138 VD = dyn_cast<VarDecl>(DE->getDecl()); in ActOnOpenMPReductionClause()
7158 VarDecl::DeclarationOnly; in ActOnOpenMPReductionClause()
7173 VarDecl::DeclarationOnly; in ActOnOpenMPReductionClause()
7184 VarDecl *VDDef = VD->getDefinition(); in ActOnOpenMPReductionClause()
7209 VarDecl::DeclarationOnly; in ActOnOpenMPReductionClause()
7221 VarDecl::DeclarationOnly; in ActOnOpenMPReductionClause()
7407 VarDecl::DeclarationOnly; in ActOnOpenMPReductionClause()
7496 if (!DE || !isa<VarDecl>(DE->getDecl())) { in ActOnOpenMPLinearClause()
7501 VarDecl *VD = cast<VarDecl>(DE->getDecl()); in ActOnOpenMPLinearClause()
7542 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPLinearClause()
7556 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPLinearClause()
7569 VarDecl *Init = buildVarDecl(*this, ELoc, QType, ".linear.start"); in ActOnOpenMPLinearClause()
7600 VarDecl *SaveVar = in ActOnOpenMPLinearClause()
7652 CapturedRef = cast<VarDecl>(DE->getDecl())->getInit(); in FinishOpenMPLinearClause()
7655 buildDeclRefExpr(SemaRef, cast<VarDecl>(DE->getDecl()), in FinishOpenMPLinearClause()
7704 if (!DE || !isa<VarDecl>(DE->getDecl())) { in ActOnOpenMPAlignedClause()
7709 VarDecl *VD = cast<VarDecl>(DE->getDecl()); in ActOnOpenMPAlignedClause()
7722 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPAlignedClause()
7785 if (!DE || !isa<VarDecl>(DE->getDecl())) { in ActOnOpenMPCopyinClause()
7791 VarDecl *VD = cast<VarDecl>(D); in ActOnOpenMPCopyinClause()
7877 if (!DE || !isa<VarDecl>(DE->getDecl())) { in ActOnOpenMPCopyprivateClause()
7883 VarDecl *VD = cast<VarDecl>(D); in ActOnOpenMPCopyprivateClause()
7930 VD->isThisDeclarationADefinition(Context) == VarDecl::DeclarationOnly; in ActOnOpenMPCopyprivateClause()
8045 (!ASE && !DE && !OASE) || (DE && !isa<VarDecl>(DE->getDecl())) || in ActOnOpenMPDependClause()
8102 } else if (auto *VD = dyn_cast<VarDecl>(I)) { in IsCXXRecordForMappable()
8171 (DE && !isa<VarDecl>(DE->getDecl())) || in ActOnOpenMPMapClause()
8190 auto *VD = cast<VarDecl>(D); in ActOnOpenMPMapClause()