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()
1603 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getDistributeLastprivateVars()
1628 llvm::SmallVectorImpl<const ValueDecl *> &Vars) { in getTeamsReductionVars()
1643 llvm::SmallVector<const ValueDecl *, 4> LastPrivatesReductions; in emitTeamsOutlinedFunction()
1644 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> MappedDeclsFields; in emitTeamsOutlinedFunction()
1667 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction()
1673 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitTeamsOutlinedFunction() argument
1966 for (const ValueDecl *VD : I->getSecond().EscapedVariableLengthDecls) { in emitGenericVarsProlog()
3096 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitListToGlobalCopyFunction() argument
3155 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); in emitListToGlobalCopyFunction()
3204 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitListToGlobalReduceFunction() argument
3256 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); in emitListToGlobalReduceFunction()
3301 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitGlobalToListCopyFunction() argument
3361 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); in emitGlobalToListCopyFunction()
3410 const llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in emitGlobalToListReduceFunction() argument
3462 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); in emitGlobalToListReduceFunction()
3833 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> VarFieldMap; in emitReduction()
3834 llvm::SmallVector<const ValueDecl *, 4> PrivatesReductions(Privates.size()); in emitReduction()
4179 ArrayRef<const ValueDecl *> EscapedVariableLengthDecls = in emitFunctionProlog()
4193 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { in emitFunctionProlog()
4205 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { in emitFunctionProlog()