Lines Matching refs:ValueDecl
117 static const ValueDecl *getPrivateItem(const Expr *RefExpr) { in getPrivateItem()
134 return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl()); in getPrivateItem()
136 return cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in getPrivateItem()
141 ASTContext &C, ArrayRef<const ValueDecl *> EscapedDecls, in buildRecordForGlobalizedVars()
142 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
143 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in buildRecordForGlobalizedVars() argument
145 using VarsDataTy = std::pair<CharUnits /*Align*/, const ValueDecl *>; in buildRecordForGlobalizedVars()
149 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
155 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
168 llvm::SmallPtrSet<const ValueDecl *, 16> SingleEscaped( in buildRecordForGlobalizedVars()
171 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars()
223 llvm::SetVector<const ValueDecl *> EscapedDecls;
224 llvm::SetVector<const ValueDecl *> EscapedVariableLengthDecls;
227 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields;
231 void markAsEscaped(const ValueDecl *VD) { in markAsEscaped()
236 VD = cast<ValueDecl>(VD->getCanonicalDecl()); in markAsEscaped()
277 void VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
296 const ValueDecl *VD = C.getCapturedVar(); in VisitOpenMPCapturedStmt()
339 ArrayRef<const ValueDecl *> EscapedDeclsForParallel, EscapedDeclsForTeams; in buildRecordForGlobalizedVars()
352 ArrayRef<const ValueDecl *> TeamsReductions) in CheckVarsEscapingDeclContext()
360 if (const auto *VD = dyn_cast_or_null<ValueDecl>(D)) in VisitDeclStmt()
389 const ValueDecl *VD = C.getCapturedVar(); in VisitCapturedStmt()
402 const ValueDecl *VD = C.getCapturedVar(); in VisitLambdaExpr()
442 const ValueDecl *VD = E->getDecl(); in VisitDeclRefExpr()
503 const FieldDecl *getFieldForGlobalizedVar(const ValueDecl *VD) const { in getFieldForGlobalizedVar()
513 ArrayRef<const ValueDecl *> getEscapedDecls() const { in getEscapedDecls()
525 ArrayRef<const ValueDecl *> getEscapedVariableLengthDecls() const { in getEscapedVariableLengthDecls()
1283 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getDistributeLastprivateVars()
1308 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getTeamsReductionVars()
1323 llvm::SmallVector<const ValueDecl *, 4> LastPrivatesReductions; in emitTeamsOutlinedFunction()
1324 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields; in emitTeamsOutlinedFunction()
1347 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction()
1353 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction() argument
2557 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitListToGlobalCopyFunction() argument
2618 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); in emitListToGlobalCopyFunction()
2669 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitListToGlobalReduceFunction() argument
2721 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); in emitListToGlobalReduceFunction()
2766 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitGlobalToListCopyFunction() argument
2828 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); in emitGlobalToListCopyFunction()
2879 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitGlobalToListReduceFunction() argument
2931 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); in emitGlobalToListReduceFunction()
3302 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> VarFieldMap; in emitReduction()
3303 llvm::SmallVector<const ValueDecl *, 4> PrivatesReductions(Privates.size()); in emitReduction()
3645 ArrayRef<const ValueDecl *> EscapedVariableLengthDecls = in emitFunctionProlog()
3658 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { in emitFunctionProlog()
3667 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { in emitFunctionProlog()