|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/lib/AST/Interp/Disasm.cpp 48 for (CodePtr Start = getCodeBegin(), PC = Start; PC != getCodeEnd();) {
tools/clang/lib/AST/Interp/EvalEmitter.h 74 SourceInfo getSource(Function *F, CodePtr PC) const override {
98 CodePtr OpPC;
tools/clang/lib/AST/Interp/Function.cpp 24 CodePtr Function::getCodeBegin() const { return Code.data(); }
26 CodePtr Function::getCodeEnd() const { return Code.data() + Code.size(); }
34 SourceInfo Function::getSource(CodePtr PC) const {
tools/clang/lib/AST/Interp/Function.h 69 CodePtr getCodeBegin() const;
71 CodePtr getCodeEnd() const;
100 SourceInfo getSource(CodePtr PC) const;
tools/clang/lib/AST/Interp/Interp.cpp 34 static bool Ret(InterpState &S, CodePtr &PC, APValue &Result) {
56 static bool RetVoid(InterpState &S, CodePtr &PC, APValue &Result) {
74 static bool RetValue(InterpState &S, CodePtr &Pt, APValue &Result) {
82 static bool Jmp(InterpState &S, CodePtr &PC, int32_t Offset) {
87 static bool Jt(InterpState &S, CodePtr &PC, int32_t Offset) {
94 static bool Jf(InterpState &S, CodePtr &PC, int32_t Offset) {
101 static bool CheckInitialized(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
112 static bool CheckActive(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
144 static bool CheckTemporary(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
164 static bool CheckGlobal(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
181 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
194 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
202 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
231 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
240 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
249 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
258 bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
270 bool CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
283 bool CheckLoad(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
301 bool CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
315 bool CheckInvoke(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
325 bool CheckInit(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
333 bool CheckCallable(InterpState &S, CodePtr OpPC, Function *F) {
375 bool CheckThis(InterpState &S, CodePtr OpPC, const Pointer &This) {
393 bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD) {
402 CodePtr PC = S.Current->getPC();
406 CodePtr OpPC = PC;
tools/clang/lib/AST/Interp/Interp.h 47 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
50 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
53 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
56 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
60 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
64 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
68 bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
71 bool CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
74 bool CheckLoad(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
77 bool CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
80 bool CheckInvoke(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
83 bool CheckInit(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
86 bool CheckCallable(InterpState &S, CodePtr OpPC, Function *F);
89 bool CheckThis(InterpState &S, CodePtr OpPC, const Pointer &This);
92 bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD);
102 bool AddSubMulHelper(InterpState &S, CodePtr OpPC, unsigned Bits, const T &LHS,
132 bool Add(InterpState &S, CodePtr OpPC) {
140 bool Sub(InterpState &S, CodePtr OpPC) {
148 bool Mul(InterpState &S, CodePtr OpPC) {
162 bool CmpHelper(InterpState &S, CodePtr OpPC, CompareFn Fn) {
171 bool CmpHelperEQ(InterpState &S, CodePtr OpPC, CompareFn Fn) {
176 inline bool CmpHelper<Pointer>(InterpState &S, CodePtr OpPC, CompareFn Fn) {
194 inline bool CmpHelperEQ<Pointer>(InterpState &S, CodePtr OpPC, CompareFn Fn) {
219 bool EQ(InterpState &S, CodePtr OpPC) {
226 bool NE(InterpState &S, CodePtr OpPC) {
233 bool LT(InterpState &S, CodePtr OpPC) {
240 bool LE(InterpState &S, CodePtr OpPC) {
248 bool GT(InterpState &S, CodePtr OpPC) {
255 bool GE(InterpState &S, CodePtr OpPC) {
267 bool InRange(InterpState &S, CodePtr OpPC) {
281 bool Dup(InterpState &S, CodePtr OpPC) {
287 bool Pop(InterpState &S, CodePtr OpPC) {
297 bool Const(InterpState &S, CodePtr OpPC, const T &Arg) {
307 bool GetLocal(InterpState &S, CodePtr OpPC, uint32_t I) {
313 bool SetLocal(InterpState &S, CodePtr OpPC, uint32_t I) {
319 bool GetParam(InterpState &S, CodePtr OpPC, uint32_t I) {
328 bool SetParam(InterpState &S, CodePtr OpPC, uint32_t I) {
334 bool GetField(InterpState &S, CodePtr OpPC, uint32_t I) {
348 bool SetField(InterpState &S, CodePtr OpPC, uint32_t I) {
363 bool GetFieldPop(InterpState &S, CodePtr OpPC, uint32_t I) {
377 bool GetThisField(InterpState &S, CodePtr OpPC, uint32_t I) {
391 bool SetThisField(InterpState &S, CodePtr OpPC, uint32_t I) {
406 bool GetGlobal(InterpState &S, CodePtr OpPC, uint32_t I) {
415 bool SetGlobal(InterpState &S, CodePtr OpPC, uint32_t I) {
421 bool InitGlobal(InterpState &S, CodePtr OpPC, uint32_t I) {
427 bool InitThisField(InterpState &S, CodePtr OpPC, uint32_t I) {
440 bool InitThisBitField(InterpState &S, CodePtr OpPC, const Record::Field *F) {
454 bool InitThisFieldActive(InterpState &S, CodePtr OpPC, uint32_t I) {
468 bool InitField(InterpState &S, CodePtr OpPC, uint32_t I) {
478 bool InitBitField(InterpState &S, CodePtr OpPC, const Record::Field *F) {
488 bool InitFieldActive(InterpState &S, CodePtr OpPC, uint32_t I) {
502 inline bool GetPtrLocal(InterpState &S, CodePtr OpPC, uint32_t I) {
507 inline bool GetPtrParam(InterpState &S, CodePtr OpPC, uint32_t I) {
515 inline bool GetPtrGlobal(InterpState &S, CodePtr OpPC, uint32_t I) {
520 inline bool GetPtrField(InterpState &S, CodePtr OpPC, uint32_t Off) {
532 inline bool GetPtrThisField(InterpState &S, CodePtr OpPC, uint32_t Off) {
542 inline bool GetPtrActiveField(InterpState &S, CodePtr OpPC, uint32_t Off) {
555 inline bool GetPtrActiveThisField(InterpState &S, CodePtr OpPC, uint32_t Off) {
568 inline bool GetPtrBase(InterpState &S, CodePtr OpPC, uint32_t Off) {
576 inline bool GetPtrThisBase(InterpState &S, CodePtr OpPC, uint32_t Off) {
586 inline bool VirtBaseHelper(InterpState &S, CodePtr OpPC, const RecordDecl *Decl,
597 inline bool GetPtrVirtBase(InterpState &S, CodePtr OpPC, const RecordDecl *D) {
604 inline bool GetPtrThisVirtBase(InterpState &S, CodePtr OpPC,
619 bool Load(InterpState &S, CodePtr OpPC) {
628 bool LoadPop(InterpState &S, CodePtr OpPC) {
637 bool Store(InterpState &S, CodePtr OpPC) {
647 bool StorePop(InterpState &S, CodePtr OpPC) {
657 bool StoreBitField(InterpState &S, CodePtr OpPC) {
671 bool StoreBitFieldPop(InterpState &S, CodePtr OpPC) {
685 bool InitPop(InterpState &S, CodePtr OpPC) {
696 bool InitElem(InterpState &S, CodePtr OpPC, uint32_t Idx) {
707 bool InitElemPop(InterpState &S, CodePtr OpPC, uint32_t Idx) {
721 template <class T, bool Add> bool OffsetHelper(InterpState &S, CodePtr OpPC) {
780 bool AddOffset(InterpState &S, CodePtr OpPC) {
785 bool SubOffset(InterpState &S, CodePtr OpPC) {
794 inline bool Destroy(InterpState &S, CodePtr OpPC, uint32_t I) {
803 template <PrimType TIn, PrimType TOut> bool Cast(InterpState &S, CodePtr OpPC) {
815 bool Zero(InterpState &S, CodePtr OpPC) {
821 inline bool Null(InterpState &S, CodePtr OpPC) {
830 inline bool This(InterpState &S, CodePtr OpPC) {
849 unsigned Trunc(InterpState &S, CodePtr OpPC, unsigned Bits, const T &V) {
864 inline bool ShiftRight(InterpState &S, CodePtr OpPC, const T &V, unsigned RHS) {
874 inline bool ShiftLeft(InterpState &S, CodePtr OpPC, const T &V, unsigned RHS) {
899 inline bool Shr(InterpState &S, CodePtr OpPC) {
914 inline bool Shl(InterpState &S, CodePtr OpPC) {
932 inline bool NoRet(InterpState &S, CodePtr OpPC) {
942 inline bool NarrowPtr(InterpState &S, CodePtr OpPC) {
948 inline bool ExpandPtr(InterpState &S, CodePtr OpPC) {
tools/clang/lib/AST/Interp/InterpFrame.cpp 21 CodePtr RetPC, Pointer &&This)
182 SourceInfo InterpFrame::getSource(CodePtr PC) const {
186 const Expr *InterpFrame::getExpr(CodePtr PC) const {
190 SourceLocation InterpFrame::getLocation(CodePtr PC) const {
tools/clang/lib/AST/Interp/InterpFrame.h 36 CodePtr RetPC, Pointer &&This);
103 CodePtr getPC() const { return Func->getCodeBegin(); }
106 CodePtr getRetPC() const { return RetPC; }
109 virtual SourceInfo getSource(CodePtr PC) const;
110 const Expr *getExpr(CodePtr PC) const;
111 SourceLocation getLocation(CodePtr PC) const;
137 CodePtr RetPC;
tools/clang/lib/AST/Interp/InterpState.h 84 SourceInfo getSource(Function *F, CodePtr PC) const override {
tools/clang/lib/AST/Interp/Source.cpp 31 const Expr *SourceMapper::getExpr(Function *F, CodePtr PC) const {
37 SourceLocation SourceMapper::getLocation(Function *F, CodePtr PC) const {
tools/clang/lib/AST/Interp/Source.h 29 CodePtr &operator+=(int32_t Offset) {
34 int32_t operator-(const CodePtr &RHS) const {
39 CodePtr operator-(size_t RHS) const {
44 bool operator!=(const CodePtr &RHS) const { return Ptr != RHS.Ptr; }
107 virtual SourceInfo getSource(Function *F, CodePtr PC) const = 0;
110 const Expr *getExpr(Function *F, CodePtr PC) const;
112 SourceLocation getLocation(Function *F, CodePtr PC) const;