IRON 1.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
iron.kernel.Kernel Class Reference
Inheritance diagram for iron.kernel.Kernel:
Inheritance graph
[legend]
Collaboration diagram for iron.kernel.Kernel:
Collaboration graph
[legend]

Public Member Functions

None __init__ (self, str name, str bin_name, list[type[np.ndarray]|np.dtype] arg_types=[])
 
str bin_name (self)
 
None resolve (self, ir.Location|None loc=None, ir.InsertionPoint|None ip=None)
 
- Public Member Functions inherited from iron.kernel.BaseKernel
 __call__ (self, *args, **kwargs)
 

Protected Attributes

 _bin_name
 
 _op
 
- Protected Attributes inherited from iron.kernel.BaseKernel
 _name
 
 _arg_types
 
 _op
 

Constructor & Destructor Documentation

◆ __init__()

None iron.kernel.Kernel.__init__ (   self,
str  name,
str  bin_name,
list[type[np.ndarray] | np.dtype]   arg_types = [] 
)
A Kernel is an externally defined function that eventually resolves to a FuncOp. If it is called,
a CallOp will be generated.

Args:
    name (str): The name of the function
    bin_name (str): The name of the binary (used for linking to a compute core)
    arg_types (list[type[np.ndarray]  |  np.dtype], optional): The type signature of the function. Defaults to [].

Reimplemented from iron.kernel.BaseKernel.

Member Function Documentation

◆ bin_name()

str iron.kernel.Kernel.bin_name (   self)

◆ resolve()

None iron.kernel.Kernel.resolve (   self,
ir.Location | None   loc = None,
ir.InsertionPoint | None   ip = None 
)
Resolve the kernel to a FuncOp. Must be implemented by subclasses.

Reimplemented from iron.kernel.BaseKernel.

Member Data Documentation

◆ _bin_name

iron.kernel.Kernel._bin_name
protected

◆ _op

iron.kernel.Kernel._op
protected

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