llvm-bcanalyzer

analyzes LLVM bitcode files

TLDR

Analyze bitcode file
$ llvm-bcanalyzer [file.bc]
Show detailed dump
$ llvm-bcanalyzer --dump [file.bc]
Show only statistics
$ llvm-bcanalyzer --dump-blockinfo [file.bc]

SYNOPSIS

llvm-bcanalyzer [options] file

DESCRIPTION

llvm-bcanalyzer analyzes LLVM bitcode files. Shows statistics about bitcode structure, including block types, record counts, and bit distribution. Useful for debugging bitcode generation and understanding LLVM IR serialization.

PARAMETERS

--dump

Dump low-level bitcode contents.
--dump-blockinfo
Show block info statistics.
--show-binary-blobs
Show binary blob data.

INSTALL

sudo apt install llvm
sudo dnf install llvm
sudo pacman -S llvm
sudo apk add llvm
sudo zypper install llvm
brew install llvm
nix profile install nixpkgs#llvm

SEE ALSO

llvm-dis(1), llvm-as(1)