Home
last modified time | relevance | path

Searched refs:Stk (Results 1 – 9 of 9) sorted by relevance

/external/llvm-project/clang/lib/AST/Interp/
DInterp.h107 S.Stk.push<T>(Result); in AddSubMulHelper()
112 S.Stk.push<T>(Result); in AddSubMulHelper()
133 const T &RHS = S.Stk.pop<T>(); in Add()
134 const T &LHS = S.Stk.pop<T>(); in Add()
141 const T &RHS = S.Stk.pop<T>(); in Sub()
142 const T &LHS = S.Stk.pop<T>(); in Sub()
149 const T &RHS = S.Stk.pop<T>(); in Mul()
150 const T &LHS = S.Stk.pop<T>(); in Mul()
164 const T &RHS = S.Stk.pop<T>(); in CmpHelper()
165 const T &LHS = S.Stk.pop<T>(); in CmpHelper()
[all …]
DEvalEmitter.cpp23 InterpStack &Stk, APValue &Result) in EvalEmitter() argument
24 : Ctx(Ctx), P(P), S(Parent, P, Stk, Ctx, this), Result(Result) { in EvalEmitter()
71 if (S.Stk.pop<bool>()) in jumpTrue()
79 if (!S.Stk.pop<bool>()) in jumpFalse()
102 return ReturnValue<T>(S.Stk.pop<T>(), Result); in emitRet()
192 const auto &Ptr = S.Stk.pop<Pointer>(); in emitRetValue()
202 S.Stk.push<Pointer>(reinterpret_cast<Block *>(It->second.get())); in emitGetPtrLocal()
216 S.Stk.push<T>(*reinterpret_cast<T *>(B + 1)); in emitGetLocal()
230 *reinterpret_cast<T *>(B + 1) = S.Stk.pop<T>(); in emitSetLocal()
DContext.cpp50 ByteCodeExprGen<EvalEmitter> C(*this, *P, Parent, Stk, Result); in evaluateAsRValue()
56 ByteCodeExprGen<EvalEmitter> C(*this, *P, Parent, Stk, Result); in evaluateAsInitializer()
114 InterpState State(Parent, *P, Stk, *this); in Run()
118 Stk.clear(); in Run()
DInterpState.cpp24 InterpState::InterpState(State &Parent, Program &P, InterpStack &Stk, in InterpState() argument
26 : Parent(Parent), M(M), P(P), Stk(Stk), Ctx(Ctx), Current(nullptr), in InterpState()
DContext.h60 InterpStack &getStack() { return Stk; } in getStack()
78 InterpStack Stk; variable
DInterp.cpp36 const T &Ret = S.Stk.pop<T>(); in Ret()
38 assert(S.Current->getFrameOffset() == S.Stk.size() && "Invalid frame"); in Ret()
46 S.Stk.push<T>(Ret); in Ret()
59 assert(S.Current->getFrameOffset() == S.Stk.size() && "Invalid frame"); in RetVoid()
88 if (S.Stk.pop<bool>()) { in Jt()
95 if (!S.Stk.pop<bool>()) { in Jf()
DInterpState.h36 InterpState(State &Parent, Program &P, InterpStack &Stk, Context &Ctx,
100 InterpStack &Stk; variable
DInterpFrame.cpp24 Args(static_cast<char *>(S.Stk.top())), FrameOffset(S.Stk.size()) { in InterpFrame()
53 TYPE_SWITCH(Ty, S.Stk.discard<T>()); in popArgs()
DEvalEmitter.h46 EvalEmitter(Context &Ctx, Program &P, State &Parent, InterpStack &Stk,