Skip to content

bloqade.lanes.bytecode.decode.load_program

← Module overview

functionload_programsource

bloqade.lanes.bytecode.decode.load_program

Signature
def load_program(program: 'Program', kernel_name: str = 'main') -> ir.Method

Decode a bytecode Program into a stack_move ir.Method and run Kirin’s type-inference pass on the result.

The returned method carries inferred types on every SSA value, including the method’s overall return type — useful for downstream passes (analysis, rewrites) that rely on type information.

Parameters

NameTypeDefaultDescription
program'Program'required
kernel_namestr'main'

Returns

ir.Method

source