Lines Matching refs:Func

26     : Caller(nullptr), S(S), Depth(0), Func(nullptr), RetPC(CodePtr()),  in InterpFrame()
29 InterpFrame::InterpFrame(InterpState &S, const Function *Func, in InterpFrame() argument
31 : Caller(Caller), S(S), Depth(Caller ? Caller->Depth + 1 : 0), Func(Func), in InterpFrame()
34 if (!Func) in InterpFrame()
37 unsigned FrameSize = Func->getFrameSize(); in InterpFrame()
42 for (auto &Scope : Func->scopes()) { in InterpFrame()
52 InterpFrame::InterpFrame(InterpState &S, const Function *Func, CodePtr RetPC, in InterpFrame() argument
54 : InterpFrame(S, Func, S.Current, RetPC, Func->getArgSize() + VarArgSize) { in InterpFrame()
61 if (Func->hasRVO()) in InterpFrame()
64 if (Func->hasThisPointer()) { in InterpFrame()
65 if (Func->hasRVO()) in InterpFrame()
83 if (!Func) in destroyScopes()
85 for (auto &Scope : Func->scopes()) { in destroyScopes()
93 if (!Func) in initScope()
95 for (auto &Local : Func->getScope(Idx).locals()) { in initScope()
101 for (auto &Local : Func->getScope(Idx).locals_reverse()) { in destroy()
143 if (Func->hasThisPointer() && IsMemberCall) { in describe()
172 Off += Func->hasRVO() ? primSize(PT_Ptr) : 0; in describe()
173 Off += Func->hasThisPointer() ? primSize(PT_Ptr) : 0; in describe()
195 if (!Caller->Func) { in getCallRange()
200 return S.getRange(Caller->Func, RetPC - sizeof(uintptr_t)); in getCallRange()
204 if (!Func) in getCallee()
206 return Func->getDecl(); in getCallee()
210 assert(Offset < Func->getFrameSize() && "Invalid local offset."); in getLocalPointer()
220 const auto &Desc = Func->getParamDescriptor(Off); in getParamPointer()
246 if (Func && !funcHasUsableBody(Func) && Caller) in getSource()
251 SourceInfo Result = S.getSource(Func, PC); in getSource()
258 if (Func && !funcHasUsableBody(Func) && Caller) in getExpr()
261 return S.getExpr(Func, PC); in getExpr()
265 if (Func && !funcHasUsableBody(Func) && Caller) in getLocation()
268 return S.getLocation(Func, PC); in getLocation()
272 if (Func && !funcHasUsableBody(Func) && Caller) in getRange()
275 return S.getRange(Func, PC); in getRange()
279 if (!Func) in isStdFunction()
281 for (const DeclContext *DC = Func->getDecl(); DC; DC = DC->getParent()) in isStdFunction()