Pegmatite
 All Classes Functions Variables Enumerations
Public Member Functions | Public Attributes | List of all members
AST::GlobalRegister Struct Reference

A reference to one of the ten global registers, whose values are only reset after updating an entire grid. More...

#include <ast.hh>

Inheritance diagram for AST::GlobalRegister:
Inheritance graph
[legend]
Collaboration diagram for AST::GlobalRegister:
Collaboration graph
[legend]

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.
 

Detailed Description

A reference to one of the ten global registers, whose values are only reset after updating an entire grid.

Definition at line 177 of file ast.hh.


The documentation for this struct was generated from the following files: