• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/AST/Interp/

Lines Matching refs:OpPC

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