|
bool | visitFunc (const FunctionDecl *F) override |
|
bool | visitExpr (const Expr *E) override |
|
bool | visitDecl (const VarDecl *VD) override |
| Toplevel visitDecl().
|
|
void | emitCleanup () |
| Emits scope cleanup instructions.
|
|
const RecordType * | getRecordTy (QualType Ty) |
| Returns a record type from a record or pointer type.
|
|
Record * | getRecord (QualType Ty) |
| Returns a record from a record or pointer type.
|
|
Record * | getRecord (const RecordDecl *RD) |
|
const Function * | getFunction (const FunctionDecl *FD) |
|
std::optional< PrimType > | classify (const Expr *E) const |
| Classifies a type.
|
|
std::optional< PrimType > | classify (QualType Ty) const |
|
PrimType | classifyPrim (QualType Ty) const |
| Classifies a known primitive type.
|
|
bool | visit (const Expr *E) |
| Evaluates an expression and places the result on the stack.
|
|
bool | visitInitializer (const Expr *E) |
| Compiles an initializer.
|
|
bool | discard (const Expr *E) |
| Evaluates an expression for side effects and discards the result.
|
|
bool | delegate (const Expr *E) |
| Just pass evaluation on to E .
|
|
bool | visitVarDecl (const VarDecl *VD) |
| Creates and initializes a variable from the given decl.
|
|
bool | visitAPValue (const APValue &Val, PrimType ValType, const Expr *E) |
| Visit an APValue.
|
|
bool | visitBool (const Expr *E) |
| Visits an expression and converts it to a boolean.
|
|
bool | visitLocalInitializer (const Expr *Init, unsigned I) |
| Visits an initializer for a local.
|
|
bool | visitGlobalInitializer (const Expr *Init, unsigned I) |
| Visits an initializer for a global.
|
|
bool | visitThisInitializer (const Expr *I) |
| Visits a delegated initializer.
|
|
bool | visitInitList (ArrayRef< const Expr * > Inits, const Expr *E) |
|
bool | visitArrayElemInit (unsigned ElemIndex, const Expr *Init) |
| Pointer to the array(not the element!) must be on the stack when calling this.
|
|
unsigned | allocateLocalPrimitive (DeclTy &&Decl, PrimType Ty, bool IsConst, bool IsExtended=false) |
| Creates a local primitive value.
|
|
std::optional< unsigned > | allocateLocal (DeclTy &&Decl, bool IsExtended=false) |
| Allocates a space storing a local given its type.
|
|
template<class
Emitter>
class clang::interp::ByteCodeStmtGen< Emitter >
Compilation context for statements.
Definition at line 31 of file ByteCodeStmtGen.h.