Skip to main content

compile_to_c_via_bytecode_offloaded

Function compile_to_c_via_bytecode_offloaded 

Source
pub fn compile_to_c_via_bytecode_offloaded(
    source: &str,
    offloads: impl FnOnce(&CompiledProgram, &Interner) -> Vec<Offload>,
) -> Result<OffloadedC, ParseError>
Expand description

The bytecode→C walker with an offload table: offloads chooses, from the optimized program and the interner that names its functions, the functions a device may answer (crate::codegen_c::from_program::compile_program_to_c_offloaded). An empty table is compile_to_c_via_bytecode.