Skip to main content

write_bitcode

Function write_bitcode 

Source
pub fn write_bitcode(ctx: &Context, module: &Module) -> Vec<u8> 
Expand description

Serialize (ctx, module) into the LRIR binary format.

Returns the encoded bytes. The encoding is always valid; no Result is needed because we never encounter unrepresentable values in the IR model.