A reference to one of the ten global registers, whose values are only reset after updating an entire grid. More...
#include <ast.hh>
Public Member Functions | |
virtual void | construct (const pegmatite::InputRange &r, pegmatite::ASTStack &st) override |
virtual uint16_t | interpret (Interpreter::State &) override |
Returns the value in this register (when interpreting the AST). | |
virtual void | assign (Interpreter::State &, uint16_t) override |
Assigns a value to the register (when interpreting the AST). | |
virtual llvm::Value * | compile (Compiler::State &) override |
Returns an LLVM value representing an access to this register (when compiling). | |
virtual void | assign (Compiler::State &, llvm::Value *) override |
Generates code for assigning the specified value to this register (when compiling). | |
Public Attributes | |
int | registerNumber |
The number of the global register that this references. | |
A reference to one of the ten global registers, whose values are only reset after updating an entire grid.