fhelium.compile.passes.codegen._common
Shared source-emission helpers for optional Python tool passes.
program_block
function View source
def program_block(program: Program, *, target: str) -> Block: ...Return the flat main block accepted by one Python emitter.
entry_point_name
function View source
def entry_point_name(value: str) -> str: ...Require one callable Python identifier for emitted source.
SourceNames
class View source
SourceNames()Assign readable unique Python identifiers to SSA values.
input
method
def input(value: SSAValue, index: int) -> str: ...results
method
def results(operation: Operation) -> tuple[str, ...]: ...operand
method
def operand(value: SSAValue) -> str: ...assignment
function View source
def assignment(results: tuple[str, ...], expression: str) -> str: ...Return one indented assignment or expression statement.
return_statement
function View source
def return_statement(values: tuple[str, ...]) -> str: ...Return Python source matching ProgramExecutable's result convention.
integer
function View source
def integer(attribute: object, *, label: str) -> int: ...floating
function View source
def floating(attribute: object, *, label: str) -> float: ...string
function View source
def string(attribute: object, *, label: str) -> str: ...constant_literal
function View source
def constant_literal(operation: core.ConstantOp) -> object: ...Decode one portable constant descriptor for safe Python repr emission.
append_unique
function View source
def append_unique(items: list[str], values: Iterable[str]) -> None: ...Append strings once while preserving first Program order.
unsupported
function View source
def unsupported(target: str, index: int, operation: Operation) -> PythonCodegenError: ...Describe the first operation outside one emitter's supported surface.