Skip to main content

Crate llvm_bitcode

Crate llvm_bitcode 

Source
Expand description

LLVM-in-Rust IR binary format (LRIR) reader and writer.

This crate implements a compact binary serialization format for (Context, Module) pairs, enabling round-trip fidelity without depending on the full LLVM bitcode bitstream format.

Re-exports§

pub use error::BitcodeError;
pub use reader::read_bitcode;
pub use writer::write_bitcode;

Modules§

error
Bitcode error types.
reader
Public API for reader. Bitcode reader: parses the LRIR binary format and reconstructs a (Context, Module).
writer
Public API for writer. Bitcode writer: serializes an IR Module to the LRIR binary format.