Lines Matching refs:ValueDecl
88 static const ValueDecl *getPrivateItem(const Expr *RefExpr) { in getPrivateItem()
105 return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl()); in getPrivateItem()
107 return cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in getPrivateItem()
111 ASTContext &C, ArrayRef<const ValueDecl *> EscapedDecls, in buildRecordForGlobalizedVars()
112 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
113 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in buildRecordForGlobalizedVars() argument
116 using VarsDataTy = std::pair<CharUnits /*Align*/, const ValueDecl *>; in buildRecordForGlobalizedVars()
120 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
122 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
131 llvm::SmallPtrSet<const ValueDecl *, 16> SingleEscaped( in buildRecordForGlobalizedVars()
134 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars()
186 llvm::SetVector<const ValueDecl *> EscapedDecls;
187 llvm::SetVector<const ValueDecl *> EscapedVariableLengthDecls;
188 llvm::SetVector<const ValueDecl *> DelayedVariableLengthDecls;
191 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields;
195 void markAsEscaped(const ValueDecl *VD) { in markAsEscaped()
200 VD = cast<ValueDecl>(VD->getCanonicalDecl()); in markAsEscaped()
248 void VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
267 const ValueDecl *VD = C.getCapturedVar(); in VisitOpenMPCapturedStmt()
310 ArrayRef<const ValueDecl *> EscapedDeclsForParallel, EscapedDeclsForTeams; in buildRecordForGlobalizedVars()
323 ArrayRef<const ValueDecl *> TeamsReductions) in CheckVarsEscapingDeclContext()
331 if (const auto *VD = dyn_cast_or_null<ValueDecl>(D)) in VisitDeclStmt()
360 const ValueDecl *VD = C.getCapturedVar(); in VisitCapturedStmt()
373 const ValueDecl *VD = C.getCapturedVar(); in VisitLambdaExpr()
413 const ValueDecl *VD = E->getDecl(); in VisitDeclRefExpr()
473 const FieldDecl *getFieldForGlobalizedVar(const ValueDecl *VD) const { in getFieldForGlobalizedVar()
480 ArrayRef<const ValueDecl *> getEscapedDecls() const { in getEscapedDecls()
492 ArrayRef<const ValueDecl *> getEscapedVariableLengthDecls() const { in getEscapedVariableLengthDecls()
498 ArrayRef<const ValueDecl *> getDelayedVariableLengthDecls() const { in getDelayedVariableLengthDecls()
937 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getDistributeLastprivateVars()
962 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getTeamsReductionVars()
978 llvm::SmallVector<const ValueDecl *, 4> LastPrivatesReductions; in emitTeamsOutlinedFunction()
979 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields; in emitTeamsOutlinedFunction()
1002 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction()
1008 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction() argument
1677 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> VarFieldMap; in emitReduction()
1678 llvm::SmallVector<const ValueDecl *, 4> PrivatesReductions(Privates.size()); in emitReduction()
2009 ArrayRef<const ValueDecl *> EscapedVariableLengthDecls = in emitFunctionProlog()
2011 ArrayRef<const ValueDecl *> DelayedVariableLengthDecls = in emitFunctionProlog()
2027 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { in emitFunctionProlog()
2172 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in adjustTargetSpecificDataForLambdas()
2184 const ValueDecl *VD = LC.getCapturedVar(); in adjustTargetSpecificDataForLambdas()