Lines Matching refs:OpPC

101 static bool CheckInitialized(InterpState &S, CodePtr OpPC, const Pointer &Ptr,  in CheckInitialized()  argument
106 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckInitialized()
112 static bool CheckActive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckActive() argument
138 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckActive()
144 static bool CheckTemporary(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckTemporary() argument
156 const SourceInfo &E = S.Current->getSource(OpPC); in CheckTemporary()
164 static bool CheckGlobal(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckGlobal() argument
172 S.FFDiag(S.Current->getLocation(OpPC), diag::note_constexpr_modify_global); in CheckGlobal()
181 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckExtern() argument
187 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckExtern()
194 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckArray() argument
197 const SourceInfo &E = S.Current->getSource(OpPC); in CheckArray()
202 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckLive() argument
204 const auto &Src = S.Current->getSource(OpPC); in CheckLive()
231 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckNull() argument
235 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckNull()
240 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckRange() argument
244 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckRange()
249 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in CheckRange() argument
253 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckRange()
258 bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckConst() argument
265 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckConst()
270 bool CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckMutable() argument
276 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckMutable()
283 bool CheckLoad(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckLoad() argument
284 if (!CheckLive(S, OpPC, Ptr, AK_Read)) in CheckLoad()
286 if (!CheckExtern(S, OpPC, Ptr)) in CheckLoad()
288 if (!CheckRange(S, OpPC, Ptr, AK_Read)) in CheckLoad()
290 if (!CheckInitialized(S, OpPC, Ptr, AK_Read)) in CheckLoad()
292 if (!CheckActive(S, OpPC, Ptr, AK_Read)) in CheckLoad()
294 if (!CheckTemporary(S, OpPC, Ptr, AK_Read)) in CheckLoad()
296 if (!CheckMutable(S, OpPC, Ptr)) in CheckLoad()
301 bool CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckStore() argument
302 if (!CheckLive(S, OpPC, Ptr, AK_Assign)) in CheckStore()
304 if (!CheckExtern(S, OpPC, Ptr)) in CheckStore()
306 if (!CheckRange(S, OpPC, Ptr, AK_Assign)) in CheckStore()
308 if (!CheckGlobal(S, OpPC, Ptr)) in CheckStore()
310 if (!CheckConst(S, OpPC, Ptr)) in CheckStore()
315 bool CheckInvoke(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckInvoke() argument
316 if (!CheckLive(S, OpPC, Ptr, AK_MemberCall)) in CheckInvoke()
318 if (!CheckExtern(S, OpPC, Ptr)) in CheckInvoke()
320 if (!CheckRange(S, OpPC, Ptr, AK_MemberCall)) in CheckInvoke()
325 bool CheckInit(InterpState &S, CodePtr OpPC, const Pointer &Ptr) { in CheckInit() argument
326 if (!CheckLive(S, OpPC, Ptr, AK_Assign)) in CheckInit()
328 if (!CheckRange(S, OpPC, Ptr, AK_Assign)) in CheckInit()
333 bool CheckCallable(InterpState &S, CodePtr OpPC, Function *F) { in CheckCallable() argument
334 const SourceLocation &Loc = S.Current->getLocation(OpPC); in CheckCallable()
375 bool CheckThis(InterpState &S, CodePtr OpPC, const Pointer &This) { in CheckThis() argument
379 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckThis()
393 bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD) { in CheckPure() argument
396 const SourceInfo &E = S.Current->getSource(OpPC); in CheckPure()
406 CodePtr OpPC = PC; in Interpret() local