#llvm #parser #binary #binary-encoding #encoding

llvm-bitstream

A content-agnostic parser for LLVM's bitstream container format

6 releases

0.0.3 Jan 28, 2022
0.0.2 Nov 18, 2021
0.0.2-rc.5 Sep 2, 2021
0.0.2-rc.4 Aug 20, 2021
0.0.2-rc.3 Aug 11, 2021

#77 in #llvm


Used in llvm-mapper

MIT license

155KB
3K SLoC

llvm-bitstream

Crates.io Documentation

A content-agnostic parser for LLVM's bitstream container format.

Conceptually, this library is one step below a full LLVM bitcode parser: it can interpret the entries in a bitstream, but isn't aware of their semantics and isn't responsible for composing them into an LLVM IR program (or any other concrete structure that's been serialized as a bitstream).

This library uses llvm-bitcursor under the hood.


lib.rs:

llvm-bitstream is a library for interpreting files in LLVM's bitstream format.

Dependencies

~0.8–1.4MB
~30K SLoC