Home
last modified time | relevance | path

Searched refs:OpPC (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterp.cpp61 static void diagnoseMissingInitializer(InterpState &S, CodePtr OpPC, in diagnoseMissingInitializer() argument
63 const SourceInfo &E = S.Current->getSource(OpPC); in diagnoseMissingInitializer()
68 static void diagnoseNonConstVariable(InterpState &S, CodePtr OpPC,
70 static bool diagnoseUnknownDecl(InterpState &S, CodePtr OpPC, in diagnoseUnknownDecl() argument
72 const SourceInfo &E = S.Current->getSource(OpPC); in diagnoseUnknownDecl()
85 diagnoseNonConstVariable(S, OpPC, D); in diagnoseUnknownDecl()
88 diagnoseMissingInitializer(S, OpPC, VD); in diagnoseUnknownDecl()
93 static void diagnoseNonConstVariable(InterpState &S, CodePtr OpPC, in diagnoseNonConstVariable() argument
98 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseNonConstVariable()
102 diagnoseMissingInitializer(S, OpPC, VD); in diagnoseNonConstVariable()
[all …]
H A DInterp.h49 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
52 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
55 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
59 bool CheckDummy(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
63 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
67 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
71 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
75 bool CheckSubobject(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
80 bool CheckDowncast(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
84 bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
[all …]
H A DInterpBuiltin.cpp107 static bool retPrimValue(InterpState &S, CodePtr OpPC, APValue &Result, in retPrimValue() argument
110 return RetVoid(S, OpPC, Result); in retPrimValue()
114 return Ret<X>(S, OpPC, Result); in retPrimValue()
134 static bool interp__builtin_is_constant_evaluated(InterpState &S, CodePtr OpPC, in interp__builtin_is_constant_evaluated() argument
164 static bool interp__builtin_strcmp(InterpState &S, CodePtr OpPC, in interp__builtin_strcmp() argument
170 if (!CheckLive(S, OpPC, A, AK_Read) || !CheckLive(S, OpPC, B, AK_Read)) in interp__builtin_strcmp()
185 if (!CheckRange(S, OpPC, PA, AK_Read) || in interp__builtin_strcmp()
186 !CheckRange(S, OpPC, PB, AK_Read)) { in interp__builtin_strcmp()
207 static bool interp__builtin_strlen(InterpState &S, CodePtr OpPC, in interp__builtin_strlen() argument
212 if (!CheckArray(S, OpPC, StrPtr)) in interp__builtin_strlen()
[all …]
H A DDisasm.cpp35 template <typename T> inline T ReadArg(Program &P, CodePtr &OpPC) { in ReadArg() argument
37 uint32_t ID = OpPC.read<uint32_t>(); in ReadArg()
40 return OpPC.read<T>(); in ReadArg()
44 template <> inline Floating ReadArg<Floating>(Program &P, CodePtr &OpPC) { in ReadArg() argument
45 Floating F = Floating::deserialize(*OpPC); in ReadArg()
46 OpPC += align(F.bytesToSerialize()); in ReadArg()
51 inline IntegralAP<false> ReadArg<IntegralAP<false>>(Program &P, CodePtr &OpPC) { in ReadArg() argument
52 IntegralAP<false> I = IntegralAP<false>::deserialize(*OpPC); in ReadArg()
53 OpPC += align(I.bytesToSerialize()); in ReadArg()
58 inline IntegralAP<true> ReadArg<IntegralAP<true>>(Program &P, CodePtr &OpPC) { in ReadArg() argument
[all …]
H A DEvalEmitter.h116 CodePtr OpPC; variable
H A DEvalEmitter.cpp174 (!CheckLoad(S, OpPC, Ptr, AK_Read) || !Ptr.isConst())) in emitRet()