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

Public Member Functions

 State ()
 Construct the compiler state object. More...
 
automaton getAutomaton (int optimiseLevel)
 Returns a function pointer for the automaton at the specified optimisation level.
 

Public Attributes

LLVMContext & C
 LLVM uses a context object to allow multiple threads.
 
Module * Mod
 The compilation unit that we are generating.
 
Function * F
 The function representing the program.
 
IRBuilder B
 A helper class for generating instructions.
 
Value * a [10]
 The 10 local registers in the source language.
 
Value * g [10]
 The 10 global registers in the source language.
 
Value * oldGrid
 The input grid (passed as an argument)
 
Value * newGrid
 The output grid (passed as an argument)
 
Value * width
 The width of the grid (passed as an argument)
 
Value * height
 The height of the grid (passed as an argument)
 
Value * x
 The x coordinate of the current cell (passed as an argument)
 
Value * y
 The y coordinate of the current cell (passed as an argument)
 
Value * v
 The value of the current cell (passed as an argument, returned at the end)
 
Type * regTy
 The type of our registers (currently i16)
 

Detailed Description

Definition at line 60 of file compiler.cc.

Constructor & Destructor Documentation

Compiler::State::State ( )
inline

Construct the compiler state object.

This loads the runtime.bc support file and prepares the module, including setting up all of the LLVM state required.

Definition at line 98 of file compiler.cc.


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