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

A reference to one of the ten local registers, whose values are initially zero on entry into the cell. More...

#include <ast.hh>

Inheritance diagram for AST::LocalRegister:
Inheritance graph
[legend]
Collaboration diagram for AST::LocalRegister:
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 local register that this references.
 

Detailed Description

A reference to one of the ten local registers, whose values are initially zero on entry into the cell.

Definition at line 159 of file ast.hh.


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