Abstract base class for all register types in the AST. More...
#include <ast.hh>
Public Member Functions | |
virtual uint16_t | interpret (Interpreter::State &)=0 |
Returns the value in this register (when interpreting the AST). | |
virtual void | assign (Interpreter::State &, uint16_t)=0 |
Assigns a value to the register (when interpreting the AST). | |
virtual llvm::Value * | compile (Compiler::State &)=0 |
Returns an LLVM value representing an access to this register (when compiling). | |
virtual void | assign (Compiler::State &, llvm::Value *)=0 |
Generates code for assigning the specified value to this register (when compiling). | |