Lines Matching refs:ValueDecl
119 static const ValueDecl *getPrivateItem(const Expr *RefExpr) { in getPrivateItem()
136 return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl()); in getPrivateItem()
138 return cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in getPrivateItem()
143 ASTContext &C, ArrayRef<const ValueDecl *> EscapedDecls, in buildRecordForGlobalizedVars()
144 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
145 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in buildRecordForGlobalizedVars() argument
147 using VarsDataTy = std::pair<CharUnits /*Align*/, const ValueDecl *>; in buildRecordForGlobalizedVars()
151 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
157 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
170 llvm::SmallPtrSet<const ValueDecl *, 16> SingleEscaped( in buildRecordForGlobalizedVars()
173 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars()
225 llvm::SetVector<const ValueDecl *> EscapedDecls;
226 llvm::SetVector<const ValueDecl *> EscapedVariableLengthDecls;
229 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields;
233 void markAsEscaped(const ValueDecl *VD) { in markAsEscaped()
238 VD = cast<ValueDecl>(VD->getCanonicalDecl()); in markAsEscaped()
279 void VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
298 const ValueDecl *VD = C.getCapturedVar(); in VisitOpenMPCapturedStmt()
341 ArrayRef<const ValueDecl *> EscapedDeclsForParallel, EscapedDeclsForTeams; in buildRecordForGlobalizedVars()
354 ArrayRef<const ValueDecl *> TeamsReductions) in CheckVarsEscapingDeclContext()
362 if (const auto *VD = dyn_cast_or_null<ValueDecl>(D)) in VisitDeclStmt()
391 const ValueDecl *VD = C.getCapturedVar(); in VisitCapturedStmt()
404 const ValueDecl *VD = C.getCapturedVar(); in VisitLambdaExpr()
444 const ValueDecl *VD = E->getDecl(); in VisitDeclRefExpr()
505 const FieldDecl *getFieldForGlobalizedVar(const ValueDecl *VD) const { in getFieldForGlobalizedVar()
515 ArrayRef<const ValueDecl *> getEscapedDecls() const { in getEscapedDecls()
527 ArrayRef<const ValueDecl *> getEscapedVariableLengthDecls() const { in getEscapedVariableLengthDecls()
1269 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getDistributeLastprivateVars()
1294 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getTeamsReductionVars()
1309 llvm::SmallVector<const ValueDecl *, 4> LastPrivatesReductions; in emitTeamsOutlinedFunction()
1310 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields; in emitTeamsOutlinedFunction()
1333 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction()
1339 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction() argument
2510 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitListToGlobalCopyFunction() argument
2569 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); in emitListToGlobalCopyFunction()
2618 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitListToGlobalReduceFunction() argument
2670 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); in emitListToGlobalReduceFunction()
2715 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitGlobalToListCopyFunction() argument
2775 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); in emitGlobalToListCopyFunction()
2824 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitGlobalToListReduceFunction() argument
2876 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); in emitGlobalToListReduceFunction()
3247 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> VarFieldMap; in emitReduction()
3248 llvm::SmallVector<const ValueDecl *, 4> PrivatesReductions(Privates.size()); in emitReduction()
3589 ArrayRef<const ValueDecl *> EscapedVariableLengthDecls = in emitFunctionProlog()
3602 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { in emitFunctionProlog()
3611 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { in emitFunctionProlog()