Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterp.cpp76 CodePtr OpPC = PC; in BCP() local
128 static void diagnoseMissingInitializer(InterpState &S, CodePtr OpPC, in diagnoseMissingInitializer() argument
130 const SourceInfo &E = S.Current->getSource(OpPC); in diagnoseMissingInitializer()
135 static void diagnoseNonConstVariable(InterpState &S, CodePtr OpPC,
137 static bool diagnoseUnknownDecl(InterpState &S, CodePtr OpPC, in diagnoseUnknownDecl() argument
148 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseUnknownDecl()
159 diagnoseNonConstVariable(S, OpPC, D); in diagnoseUnknownDecl()
162 diagnoseMissingInitializer(S, OpPC, VD); in diagnoseUnknownDecl()
164 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseUnknownDecl()
173 static void diagnoseNonConstVariable(InterpState &S, CodePtr OpPC, in diagnoseNonConstVariable() argument
[all …]
H A DInterp.h45 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
48 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
51 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
55 bool CheckDummy(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
59 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
63 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
67 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
71 bool CheckSubobject(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
76 bool CheckDowncast(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
80 bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
[all …]
H A DInterpBuiltin.cpp131 static void diagnoseNonConstexprBuiltin(InterpState &S, CodePtr OpPC, in diagnoseNonConstexprBuiltin() argument
136 auto Loc = S.Current->getSource(OpPC); in diagnoseNonConstexprBuiltin()
145 static bool interp__builtin_is_constant_evaluated(InterpState &S, CodePtr OpPC, in interp__builtin_is_constant_evaluated() argument
176 static bool interp__builtin_assume(InterpState &S, CodePtr OpPC, in interp__builtin_assume() argument
184 static bool interp__builtin_strcmp(InterpState &S, CodePtr OpPC, in interp__builtin_strcmp() argument
197 diagnoseNonConstexprBuiltin(S, OpPC, ID); in interp__builtin_strcmp()
204 if (!CheckLive(S, OpPC, A, AK_Read) || !CheckLive(S, OpPC, B, AK_Read)) in interp__builtin_strcmp()
233 if (!CheckRange(S, OpPC, PA, AK_Read) || in interp__builtin_strcmp()
234 !CheckRange(S, OpPC, PB, AK_Read)) { in interp__builtin_strcmp()
266 static bool interp__builtin_strlen(InterpState &S, CodePtr OpPC, in interp__builtin_strlen() argument
[all …]
H A DDisasm.cpp36 inline static std::string printArg(Program &P, CodePtr &OpPC) { in printArg() argument
38 uint32_t ID = OpPC.read<uint32_t>(); in printArg()
46 auto Arg = OpPC.read<T>(); in printArg()
52 template <> inline std::string printArg<Floating>(Program &P, CodePtr &OpPC) { in printArg() argument
53 auto Sem = Floating::deserializeSemantics(*OpPC); in printArg()
60 Floating::deserialize(*OpPC, &Result); in printArg()
62 OpPC += align(Result.bytesToSerialize()); in printArg()
71 inline std::string printArg<IntegralAP<false>>(Program &P, CodePtr &OpPC) { in printArg() argument
73 uint32_t BitWidth = T::deserializeSize(*OpPC); in printArg()
78 T::deserialize(*OpPC, &Result); in printArg()
[all …]
H A DInterpBuiltinBitCast.cpp173 static bool CheckBitcastType(InterpState &S, CodePtr OpPC, QualType T, in CheckBitcastType() argument
185 const Expr *E = S.Current->getExpr(OpPC); in CheckBitcastType()
211 if (!CheckBitcastType(S, OpPC, BS.getType(), IsToType)) in CheckBitcastType()
218 if (!CheckBitcastType(S, OpPC, FD->getType(), IsToType)) in CheckBitcastType()
224 !CheckBitcastType(S, OpPC, S.getASTContext().getBaseElementType(T), in CheckBitcastType()
240 const Expr *E = S.Current->getExpr(OpPC); in CheckBitcastType()
251 const Expr *E = S.Current->getExpr(OpPC); in CheckBitcastType()
326 bool clang::interp::DoBitCast(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in DoBitCast() argument
339 if (!CheckBitcastType(S, OpPC, DataType, /*IsToType=*/false)) in DoBitCast()
359 bool clang::interp::DoBitCastPtr(InterpState &S, CodePtr OpPC, in DoBitCastPtr() argument
[all …]
H A DInterpBuiltinBitCast.h27 bool DoBitCast(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
30 bool DoBitCastPtr(InterpState &S, CodePtr OpPC, const Pointer &FromPtr,
32 bool DoBitCastPtr(InterpState &S, CodePtr OpPC, const Pointer &FromPtr,
37 bool DoMemcpy(InterpState &S, CodePtr OpPC, const Pointer &SrcPtr,
H A DEvalEmitter.cpp156 return Invalid(S, OpPC); in speculate()
206 !CheckFinalLoad(S, OpPC, Ptr)) { in emitRet()
H A DEvalEmitter.h125 CodePtr OpPC; variable