CIRCT 24.0.0git
Loading...
Searching...
No Matches
Python.support Namespace Reference

Classes

class  ConnectionError
class  UnconnectedSignalError
class  BackedgeBuilder
class  OpOperand
class  NamedValueOpView

Functions

ir.Value get_value (obj)
 connect (destination, source)
ir.Attribute var_to_attribute (obj, bool none_on_fail=False)
ir.Type type_to_pytype (t)
 attribute_to_var (attr)
 get_canonical_type (mlir_type)
 get_self_or_inner (mlir_type)
 walk_with_filter (Operation operation, List[ir.OpView] op_views, callback, walk_order)

Variables

 _current_backedge_builder = ContextVar("current_bb")

Function Documentation

◆ attribute_to_var()

Python.support.attribute_to_var ( attr)

Definition at line 163 of file support.py.

References attribute_to_var().

Referenced by attribute_to_var().

◆ connect()

Python.support.connect ( destination,
source )
A convenient way to use BackedgeBuilder.

Definition at line 39 of file support.py.

References get_value().

◆ get_canonical_type()

Python.support.get_canonical_type ( mlir_type)
Return `mlir_type` with all type aliases stripped.

Definition at line 209 of file support.py.

◆ get_self_or_inner()

Python.support.get_self_or_inner ( mlir_type)

Definition at line 217 of file support.py.

References type_to_pytype().

◆ get_value()

ir.Value Python.support.get_value ( obj)
Resolve a Value from a few supported types.

Definition at line 27 of file support.py.

Referenced by Python.support.NamedValueOpView.__init__(), and connect().

◆ type_to_pytype()

ir.Type Python.support.type_to_pytype ( t)

Definition at line 81 of file support.py.

Referenced by get_self_or_inner().

◆ var_to_attribute()

ir.Attribute Python.support.var_to_attribute ( obj,
bool none_on_fail = False )
Create an MLIR attribute from a Python object for a few common cases.

Definition at line 57 of file support.py.

References var_to_attribute().

Referenced by var_to_attribute().

◆ walk_with_filter()

Python.support.walk_with_filter ( Operation operation,
List[ir.OpView] op_views,
callback,
walk_order )

Definition at line 428 of file support.py.

Variable Documentation

◆ _current_backedge_builder

Python.support._current_backedge_builder = ContextVar("current_bb")
protected

Definition at line 13 of file support.py.