Lines Matching refs:Emitter
29 template <class Emitter> class DeclScope final : public LocalScope<Emitter> {
31 DeclScope(ByteCodeExprGen<Emitter> *Ctx, const VarDecl *VD) in DeclScope()
32 : LocalScope<Emitter>(Ctx), Scope(Ctx->P, VD) {} in DeclScope()
43 template <class Emitter> class OptionScope {
45 using InitFnRef = typename ByteCodeExprGen<Emitter>::InitFnRef;
49 OptionScope(ByteCodeExprGen<Emitter> *Ctx, bool NewDiscardResult) in OptionScope()
57 OptionScope(ByteCodeExprGen<Emitter> *Ctx, InitFnRef NewInitFn) in OptionScope()
65 OptionScope(ByteCodeExprGen<Emitter> *Ctx, ChainedInitFnRef NewInitFn) in OptionScope()
79 ByteCodeExprGen<Emitter> *Ctx;
89 template <class Emitter>
90 bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) { in VisitCastExpr()
128 template <class Emitter>
129 bool ByteCodeExprGen<Emitter>::VisitIntegerLiteral(const IntegerLiteral *LE) { in VisitIntegerLiteral()
140 template <class Emitter>
141 bool ByteCodeExprGen<Emitter>::VisitParenExpr(const ParenExpr *PE) { in VisitParenExpr()
145 template <class Emitter>
146 bool ByteCodeExprGen<Emitter>::VisitBinaryOperator(const BinaryOperator *BO) { in VisitBinaryOperator()
208 template <class Emitter>
209 bool ByteCodeExprGen<Emitter>::discard(const Expr *E) { in discard()
210 OptionScope<Emitter> Scope(this, /*discardResult=*/true); in discard()
214 template <class Emitter>
215 bool ByteCodeExprGen<Emitter>::visit(const Expr *E) { in visit()
216 OptionScope<Emitter> Scope(this, /*discardResult=*/false); in visit()
220 template <class Emitter>
221 bool ByteCodeExprGen<Emitter>::visitBool(const Expr *E) { in visitBool()
229 template <class Emitter>
230 bool ByteCodeExprGen<Emitter>::visitZeroInitializer(PrimType T, const Expr *E) { in visitZeroInitializer()
256 template <class Emitter>
257 bool ByteCodeExprGen<Emitter>::dereference( in dereference()
281 template <class Emitter>
282 bool ByteCodeExprGen<Emitter>::dereferenceParam( in dereferenceParam()
323 template <class Emitter>
324 bool ByteCodeExprGen<Emitter>::dereferenceVar( in dereferenceVar()
393 template <class Emitter>
394 bool ByteCodeExprGen<Emitter>::emitConst(PrimType T, unsigned NumBits, in emitConst()
422 template <class Emitter>
423 unsigned ByteCodeExprGen<Emitter>::allocateLocalPrimitive(DeclTy &&Src, in allocateLocalPrimitive()
435 template <class Emitter>
437 ByteCodeExprGen<Emitter>::allocateLocal(DeclTy &&Src, bool IsExtended) { in allocateLocal()
463 template <class Emitter>
464 bool ByteCodeExprGen<Emitter>::visitInitializer( in visitInitializer()
466 OptionScope<Emitter> Scope(this, InitFn); in visitInitializer()
470 template <class Emitter>
471 bool ByteCodeExprGen<Emitter>::getPtrVarDecl(const VarDecl *VD, const Expr *E) { in getPtrVarDecl()
482 template <class Emitter>
484 ByteCodeExprGen<Emitter>::getGlobalIdx(const VarDecl *VD) { in getGlobalIdx()
497 template <class Emitter>
498 const RecordType *ByteCodeExprGen<Emitter>::getRecordTy(QualType Ty) { in getRecordTy()
505 template <class Emitter>
506 Record *ByteCodeExprGen<Emitter>::getRecord(QualType Ty) { in getRecord()
513 template <class Emitter>
514 Record *ByteCodeExprGen<Emitter>::getRecord(const RecordDecl *RD) { in getRecord()
518 template <class Emitter>
519 bool ByteCodeExprGen<Emitter>::visitExpr(const Expr *Exp) { in visitExpr()
520 ExprScope<Emitter> RootScope(this); in visitExpr()
530 template <class Emitter>
531 bool ByteCodeExprGen<Emitter>::visitDecl(const VarDecl *VD) { in visitDecl()
538 DeclScope<Emitter> LocalScope(this, VD); in visitDecl()
552 DeclScope<Emitter> LocalScope(this, VD); in visitDecl()
567 template <class Emitter>
568 void ByteCodeExprGen<Emitter>::emitCleanup() { in emitCleanup()
569 for (VariableScope<Emitter> *C = VarScope; C; C = C->getParent()) in emitCleanup()