Lines Matching refs:ValueDecl
100 static const ValueDecl *getPrivateItem(const Expr *RefExpr) { in getPrivateItem()
117 return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl()); in getPrivateItem()
119 return cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in getPrivateItem()
124 ASTContext &C, ArrayRef<const ValueDecl *> EscapedDecls, in buildRecordForGlobalizedVars()
125 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
126 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in buildRecordForGlobalizedVars() argument
128 using VarsDataTy = std::pair<CharUnits /*Align*/, const ValueDecl *>; in buildRecordForGlobalizedVars()
132 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
138 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
151 llvm::SmallPtrSet<const ValueDecl *, 16> SingleEscaped( in buildRecordForGlobalizedVars()
154 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars()
206 llvm::SetVector<const ValueDecl *> EscapedDecls;
207 llvm::SetVector<const ValueDecl *> EscapedVariableLengthDecls;
210 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields;
214 void markAsEscaped(const ValueDecl *VD) { in markAsEscaped()
219 VD = cast<ValueDecl>(VD->getCanonicalDecl()); in markAsEscaped()
260 void VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
279 const ValueDecl *VD = C.getCapturedVar(); in VisitOpenMPCapturedStmt()
322 ArrayRef<const ValueDecl *> EscapedDeclsForParallel, EscapedDeclsForTeams; in buildRecordForGlobalizedVars()
335 ArrayRef<const ValueDecl *> TeamsReductions) in CheckVarsEscapingDeclContext()
343 if (const auto *VD = dyn_cast_or_null<ValueDecl>(D)) in VisitDeclStmt()
372 const ValueDecl *VD = C.getCapturedVar(); in VisitCapturedStmt()
385 const ValueDecl *VD = C.getCapturedVar(); in VisitLambdaExpr()
425 const ValueDecl *VD = E->getDecl(); in VisitDeclRefExpr()
485 const FieldDecl *getFieldForGlobalizedVar(const ValueDecl *VD) const { in getFieldForGlobalizedVar()
495 ArrayRef<const ValueDecl *> getEscapedDecls() const { in getEscapedDecls()
507 ArrayRef<const ValueDecl *> getEscapedVariableLengthDecls() const { in getEscapedVariableLengthDecls()
931 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getDistributeLastprivateVars()
956 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getTeamsReductionVars()
971 llvm::SmallVector<const ValueDecl *, 4> LastPrivatesReductions; in emitTeamsOutlinedFunction()
972 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields; in emitTeamsOutlinedFunction()
995 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction()
1001 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction() argument
2205 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitListToGlobalCopyFunction() argument
2266 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); in emitListToGlobalCopyFunction()
2317 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitListToGlobalReduceFunction() argument
2369 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); in emitListToGlobalReduceFunction()
2414 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitGlobalToListCopyFunction() argument
2476 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); in emitGlobalToListCopyFunction()
2527 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitGlobalToListReduceFunction() argument
2579 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); in emitGlobalToListReduceFunction()
2950 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> VarFieldMap; in emitReduction()
2951 llvm::SmallVector<const ValueDecl *, 4> PrivatesReductions(Privates.size()); in emitReduction()
3293 ArrayRef<const ValueDecl *> EscapedVariableLengthDecls = in emitFunctionProlog()
3306 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { in emitFunctionProlog()
3451 llvm::DenseMap<const ValueDecl *, FieldDecl *> Captures; in adjustTargetSpecificDataForLambdas()
3463 const ValueDecl *VD = LC.getCapturedVar(); in adjustTargetSpecificDataForLambdas()