|
Brick Library 0.1
Performance-portable stencil datalayout & codegen
|
Public Member Functions | |
| def | __init__ (self, *args, **kwargs) |
| def | visit (self, init, func) |
| def | mk_child (self, child) |
| def | str_attr (self) |
| def | get_attr (self, attr) |
| def | __str__ (self) |
| def | __add__ (self, other) |
| def | __radd__ (self, other) |
| def | __sub__ (self, other) |
| def | __rsub__ (self, other) |
| def | __mul__ (self, other) |
| def | __rmul__ (self, other) |
| def | __truediv__ (self, other) |
| def | __rtruediv__ (self, other) |
| def | __mod__ (self, other) |
| def | __rmod__ (self, other) |
| def | __and__ (self, other) |
| def | __rand__ (self, other) |
| def | __xor__ (self, other) |
| def | __rxor__ (self, other) |
| def | __or__ (self, other) |
| def | __ror__ (self, other) |
| def | __lshift__ (self, other) |
| def | __rlshift__ (self, other) |
| def | __rshift__ (self, other) |
| def | __rrshift__ (self, other) |
| def | __neg__ (self) |
| def | __lt__ (self, other) |
| def | __le__ (self, other) |
| def | __eq__ (self, other) |
| def | __ne__ (self, other) |
| def | __gt__ (self, other) |
| def | __ge__ (self, other) |
| def | logical_and (self, other) |
| def | logical_or (self, other) |
| def | logical_not (self) |
| def | __hash__ (self) |
Public Member Functions inherited from st.expr_meta.ExprMeta | |
| def | __new__ (cls, name, bases, namespace) |
Public Attributes | |
| children | |
| attr | |
| parent | |
Static Public Attributes | |
| Dict | attr |
Static Protected Attributes | |
| list | _children = [] |
| None | _arg_sig = None |
| dict | _attr = dict() |
Generic AST node
Contains a list of children and forms a multiway tree.
Attributes:
children List[Node]: The list of children.
scope (optional): The current scope additions.
attr: record information attached to the node, can be initialized for all classes using _attr
| def st.expr.Expr.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
| def st.expr.Expr.__add__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__and__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__eq__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__ge__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__gt__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__hash__ | ( | self | ) |
| def st.expr.Expr.__le__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__lshift__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__lt__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__mod__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__mul__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__ne__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__neg__ | ( | self | ) |
| def st.expr.Expr.__or__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__radd__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rand__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rlshift__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rmod__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rmul__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__ror__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rrshift__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rshift__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rsub__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rtruediv__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__rxor__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__str__ | ( | self | ) |
| def st.expr.Expr.__sub__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__truediv__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.__xor__ | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.get_attr | ( | self, | |
| attr | |||
| ) |
| def st.expr.Expr.logical_and | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.logical_not | ( | self | ) |
| def st.expr.Expr.logical_or | ( | self, | |
| other | |||
| ) |
| def st.expr.Expr.mk_child | ( | self, | |
| child | |||
| ) |
Make one node a child
This does not append the child but rather fixes the parent-child
relationship
| def st.expr.Expr.str_attr | ( | self | ) |
Extra attributes that should be printed in str representation
Reimplemented in st.codegen.reduction.Reduction, st.expr.Index, st.expr.BinOp, st.expr.UnOp, st.expr.ConstRef, st.func.CallExpr, and st.grid.GridRef.
| def st.expr.Expr.visit | ( | self, | |
| init, | |||
| func | |||
| ) |
Preorder traversal
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
| st.expr.Expr.attr |
| st.expr.Expr.children |
| st.expr.Expr.parent |