fhelium.compile.passes.codegen._backend_python
Emit direct Backend implementation calls from a flat Program.
EmitBackendPythonPass
class View source
python
EmitBackendPythonPass(registry: OperationImplementationRegistry | None = None, entry_point: str = 'generated_backend', name: str = 'emit-backend-python')1
Publish direct Backend Python for the Program at this pass position.
Attributes
| Name | Type | Default/value |
|---|---|---|
registry | OperationImplementationRegistry | None | None |
entry_point | str | 'generated_backend' |
name | str | 'emit-backend-python' |
run
method
python
def run(compilation: 'Compilation') -> PassResult: ...1
emit_backend_python
function View source
python
def emit_backend_python(program: Program, *, registry: OperationImplementationRegistry, entry_point: str='generated_backend') -> BackendPythonSource: ...1
Export the host control flow used by linked execution.