|
IRON 1.0
|


Public Member Functions | |
| __init__ (self, str name, list[type[np.ndarray]|np.dtype] arg_types=[]) | |
| None | resolve (self, ir.Location|None loc=None, ir.InsertionPoint|None ip=None) |
| __call__ (self, *args, **kwargs) | |
Protected Attributes | |
| _name | |
| _arg_types | |
| _op | |
Base class for kernel-like objects that resolve to FuncOp.
| iron.kernel.BaseKernel.__init__ | ( | self, | |
| str | name, | ||
| list[type[np.ndarray] | np.dtype] | arg_types = [] |
||
| ) |
Initialize base kernel.
Args:
name (str): The name of the function
arg_types (list[type[np.ndarray] | np.dtype], optional): The type signature of the function. Defaults to [].
Reimplemented in iron.kernel.Kernel, and iron.kernel.ExternalFunction.
| iron.kernel.BaseKernel.__call__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Call the kernel with the given arguments.
Reimplemented in iron.kernel.ExternalFunction.
| None iron.kernel.BaseKernel.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.resolvable.Resolvable.
Reimplemented in iron.kernel.Kernel, and iron.kernel.ExternalFunction.
|
protected |
|
protected |
|
protected |