fhelium.compile.passes.codegen
Optional Python source emitters for caller-selected Program stages.
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
EmitEagerPythonPass
class View source
python
EmitEagerPythonPass(entry_point: str = 'generated_eager', name: str = 'emit-eager-python')1
Publish Eager-style Python for the CKKS Program at this pass position.
Attributes
| Name | Type | Default/value |
|---|---|---|
entry_point | str | 'generated_eager' |
name | str | 'emit-eager-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.
emit_eager_python
function View source
python
def emit_eager_python(program: Program, *, entry_point: str='generated_eager') -> EagerPythonSource: ...1
Emit one Eager function or fail on the first unsupported operation.