Extract whole-program LLVM bitcode from any build.
Point your build system at rllvm's compiler wrappers, build normally, then pull
the bitcode for the whole program back out of the finished binary, and ask it
source-level questions across C, C++ and Rust.
Coming from wllvm or gllvm?
rllvm keeps the CC/CXX → build → extract workflow of
wllvm and
gllvm: rllvm-cc and rllvm-cxx stand in
for wllvm/gclang, rllvm-get-bc for extract-bc/get-bc.
On first run, tool paths are detected from llvm-config and written to
~/.rllvm/config.toml.
How it works
The wrappers run the real compiler and also emit bitcode. Each object gets a
section recording its bitcode path; the linker concatenates those sections, so
the binary lists every module that went into it. Extraction reads the paths
back and merges the modules.
Capture covers only what you build through the wrappers. A prebuilt native
library contributes no bitcode, so build every dependency you need in the
whole-program view.
Installs rllvm and rllvm-query with your approval, picks a compatible LLVM, configures, and troubleshoots
capture skill
Chooses how to capture your build and what to extract
query skill
Picks the query that answers your question and reports what the answer does not cover
complete-callgraph skill
Resolves unresolved indirect calls into a labeled overlay, never reported as proven
/overlay-view
A read-only pane of the overlay's candidates and edges
MCP server
rllvm-query mcp, configured automatically
Builds run as ordinary shell commands you approve, never inside the server.
See the plugin example.
Capturing bitcode
CC=rllvm-cc CXX=rllvm-cxx ./configure && make # Autotools, Make
CC=rllvm-cc CXX=rllvm-cxx cmake -S . -B build && cmake --build build
RUSTC_WRAPPER=rllvm-rustc cargo build # Rust and its C/C++
rllvm-compdb generate build/ --output-dir analysis/all # compile_commands.json
rllvm-cc wraps clang and rllvm-cxx wraps clang++, Objective-C included.
rllvm-compdb compiles an existing compilation database without rebuilding,
so its modules describe the source tree rather than a real link.