Brick Library 0.1
Performance-portable stencil datalayout & codegen
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
st.codegen.printer.Printer Class Reference
Inheritance diagram for st.codegen.printer.Printer:
[legend]
Collaboration diagram for st.codegen.printer.Printer:
[legend]

Public Member Functions

def __init__ (self)
 
- Public Member Functions inherited from st.codegen.printer.PrinterBase
def __init__ (self)
 
def print_str (self, node, prec=255)
 
- Public Member Functions inherited from st.codegen.printer.Singleton
def __call__ (cls, *args, **kwargs)
 

Public Attributes

 precedence
 
- Public Attributes inherited from st.codegen.printer.PrinterBase
 print
 

Protected Member Functions

def _print_binOp (self, st.expr.BinOp node, StringIO stream, prec=255)
 
def _print_floatLiteral (self, st.expr.FloatLiteral node, StringIO stream, prec=255)
 
def _print_intLiteral (self, st.expr.IntLiteral node, StringIO stream, prec=255)
 
def _print_unOp (self, st.expr.UnOp node, StringIO stream, prec=255)
 
def _print_constRef (self, st.expr.ConstRef node, StringIO stream, prec=255)
 
def _print_if (self, st.expr.If node, StringIO stream, prec=255)
 
def _print_gridref (self, GridRef node, StringIO stream, prec=255)
 
def _print_callExpr (self, st.func.CallExpr call, StringIO stream, prec=255)
 
- Protected Member Functions inherited from st.codegen.printer.PrinterBase
def _print (self, node, StringIO stream, prec=255)
 

Additional Inherited Members

- Static Protected Attributes inherited from st.codegen.printer.Singleton
dict _instances = {}
 

Constructor & Destructor Documentation

◆ __init__()

def st.codegen.printer.Printer.__init__ (   self)

Reimplemented from st.codegen.printer.PrinterBase.

Reimplemented in st.codegen.backend.base.PrinterRed, st.codegen.backend.scalar.PrinterScalar, and st.codegen.backend.cuda.PrinterCUDA.

Here is the call graph for this function:

Member Function Documentation

◆ _print_binOp()

def st.codegen.printer.Printer._print_binOp (   self,
st.expr.BinOp  node,
StringIO  stream,
  prec = 255 
)
protected

◆ _print_callExpr()

def st.codegen.printer.Printer._print_callExpr (   self,
st.func.CallExpr  call,
StringIO  stream,
  prec = 255 
)
protected

◆ _print_constRef()

def st.codegen.printer.Printer._print_constRef (   self,
st.expr.ConstRef  node,
StringIO  stream,
  prec = 255 
)
protected

◆ _print_floatLiteral()

def st.codegen.printer.Printer._print_floatLiteral (   self,
st.expr.FloatLiteral  node,
StringIO  stream,
  prec = 255 
)
protected

◆ _print_gridref()

def st.codegen.printer.Printer._print_gridref (   self,
GridRef  node,
StringIO  stream,
  prec = 255 
)
protected

◆ _print_if()

def st.codegen.printer.Printer._print_if (   self,
st.expr.If  node,
StringIO  stream,
  prec = 255 
)
protected

◆ _print_intLiteral()

def st.codegen.printer.Printer._print_intLiteral (   self,
st.expr.IntLiteral  node,
StringIO  stream,
  prec = 255 
)
protected

◆ _print_unOp()

def st.codegen.printer.Printer._print_unOp (   self,
st.expr.UnOp  node,
StringIO  stream,
  prec = 255 
)
protected

Member Data Documentation

◆ precedence

st.codegen.printer.Printer.precedence

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