| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Source.h | 30 class CodePtr final { 32 CodePtr() = default; 34 CodePtr &operator+=(int32_t Offset) { 39 int32_t operator-(const CodePtr &RHS) const { 44 CodePtr operator-(size_t RHS) const { 46 return CodePtr(Ptr - RHS); 49 bool operator!=(const CodePtr &RHS) const { return Ptr != RHS.Ptr; } 52 bool operator<=(const CodePtr &RHS) const { return Ptr <= RHS.Ptr; } 53 bool operator>=(const CodePtr &RHS) const { return Ptr >= RHS.Ptr; } 67 CodePtr(const std::byte *Ptr) : Ptr(Ptr) {} in CodePtr() function [all …]
|
| H A D | Interp.h | 45 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 D | Interp.cpp | 31 static bool RetValue(InterpState &S, CodePtr &Pt) { in RetValue() 39 static bool Jmp(InterpState &S, CodePtr &PC, int32_t Offset) { in Jmp() 44 static bool Jt(InterpState &S, CodePtr &PC, int32_t Offset) { in Jt() 51 static bool Jf(InterpState &S, CodePtr &PC, int32_t Offset) { in Jf() 64 static bool BCP(InterpState &S, CodePtr &RealPC, int32_t Offset, PrimType PT) { in BCP() 65 [[maybe_unused]] CodePtr PCBefore = RealPC; in BCP() 70 CodePtr PC = RealPC; in BCP() 76 CodePtr OpPC = PC; in BCP() 118 [[maybe_unused]] CodePtr PCCopy = RealPC; in BCP() 128 static void diagnoseMissingInitializer(InterpState &S, CodePtr OpPC, in diagnoseMissingInitializer() [all …]
|
| H A D | InterpFrame.h | 36 CodePtr RetPC, unsigned ArgSize); 42 InterpFrame(InterpState &S, const Function *Func, CodePtr RetPC, 116 CodePtr getPC() const { return Func->getCodeBegin(); } in getPC() 119 CodePtr getRetPC() const { return RetPC; } in getRetPC() 122 SourceInfo getSource(CodePtr PC) const; 123 const Expr *getExpr(CodePtr PC) const; 124 SourceLocation getLocation(CodePtr PC) const; 125 SourceRange getRange(CodePtr PC) const; 170 CodePtr RetPC;
|
| H A D | InterpBuiltinBitCast.h | 19 class CodePtr; variable 27 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 D | InterpBuiltin.cpp | 131 static void diagnoseNonConstexprBuiltin(InterpState &S, CodePtr OpPC, in diagnoseNonConstexprBuiltin() 145 static bool interp__builtin_is_constant_evaluated(InterpState &S, CodePtr OpPC, in interp__builtin_is_constant_evaluated() 176 static bool interp__builtin_assume(InterpState &S, CodePtr OpPC, in interp__builtin_assume() 184 static bool interp__builtin_strcmp(InterpState &S, CodePtr OpPC, in interp__builtin_strcmp() 266 static bool interp__builtin_strlen(InterpState &S, CodePtr OpPC, in interp__builtin_strlen() 321 static bool interp__builtin_nan(InterpState &S, CodePtr OpPC, in interp__builtin_nan() 383 static bool interp__builtin_inf(InterpState &S, CodePtr OpPC, in interp__builtin_inf() 396 static bool interp__builtin_copysign(InterpState &S, CodePtr OpPC, in interp__builtin_copysign() 410 static bool interp__builtin_fmin(InterpState &S, CodePtr OpPC, in interp__builtin_fmin() 424 static bool interp__builtin_fmax(InterpState &S, CodePtr OpPC, in interp__builtin_fmax() [all …]
|
| H A D | InterpFrame.cpp | 26 : Caller(nullptr), S(S), Depth(0), Func(nullptr), RetPC(CodePtr()), in InterpFrame() 30 InterpFrame *Caller, CodePtr RetPC, unsigned ArgSize) in InterpFrame() 52 InterpFrame::InterpFrame(InterpState &S, const Function *Func, CodePtr RetPC, in InterpFrame() 243 SourceInfo InterpFrame::getSource(CodePtr PC) const { in getSource() 257 const Expr *InterpFrame::getExpr(CodePtr PC) const { in getExpr() 264 SourceLocation InterpFrame::getLocation(CodePtr PC) const { in getLocation() 271 SourceRange InterpFrame::getRange(CodePtr PC) const { in getRange()
|
| H A D | Source.cpp | 41 const Expr *SourceMapper::getExpr(const Function *F, CodePtr PC) const { in getExpr() 47 SourceLocation SourceMapper::getLocation(const Function *F, CodePtr PC) const { in getLocation() 51 SourceRange SourceMapper::getRange(const Function *F, CodePtr PC) const { in getRange()
|
| H A D | Function.h | 104 CodePtr getCodeBegin() const { return Code.data(); } in getCodeBegin() 106 CodePtr getCodeEnd() const { return Code.data() + Code.size(); } in getCodeEnd() 151 SourceInfo getSource(CodePtr PC) const;
|
| H A D | Disasm.cpp | 36 inline static std::string printArg(Program &P, CodePtr &OpPC) { in printArg() 52 template <> inline std::string printArg<Floating>(Program &P, CodePtr &OpPC) { in printArg() 71 inline std::string printArg<IntegralAP<false>>(Program &P, CodePtr &OpPC) { in printArg() 89 inline std::string printArg<IntegralAP<true>>(Program &P, CodePtr &OpPC) { in printArg() 106 template <> inline std::string printArg<FixedPoint>(Program &P, CodePtr &OpPC) { in printArg() 155 for (CodePtr Start = getCodeBegin(), PC = Start; PC != getCodeEnd();) { in dump()
|
| H A D | EvalEmitter.h | 83 SourceInfo getSource(const Function *F, CodePtr PC) const override { in getSource() 125 CodePtr OpPC;
|
| H A D | InterpBuiltinBitCast.cpp | 173 static bool CheckBitcastType(InterpState &S, CodePtr OpPC, QualType T, in CheckBitcastType() 326 bool clang::interp::DoBitCast(InterpState &S, CodePtr OpPC, const Pointer &Ptr, in DoBitCast() 359 bool clang::interp::DoBitCastPtr(InterpState &S, CodePtr OpPC, in DoBitCastPtr() 367 bool clang::interp::DoBitCastPtr(InterpState &S, CodePtr OpPC, in DoBitCastPtr() 471 bool clang::interp::DoMemcpy(InterpState &S, CodePtr OpPC, in DoMemcpy()
|
| H A D | Function.cpp | 62 SourceInfo Function::getSource(CodePtr PC) const { in getSource()
|
| H A D | InterpState.cpp | 26 BottomFrame(*this, Func, nullptr, CodePtr(), Func->getArgSize()), in InterpState()
|
| H A D | InterpState.h | 109 SourceInfo getSource(const Function *F, CodePtr PC) const override { in getSource()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULegalizerInfo.cpp | 689 const LLT CodePtr = FlatPtr; in AMDGPULegalizerInfo() local 934 getActionDefinitionsBuilder(G_BLOCK_ADDR).legalFor({CodePtr}); in AMDGPULegalizerInfo()
|