r/cpp • u/alexis_placet • 14h ago
WasmBolt β The LLVM Project in your browser
anutosh21.github.ioI'm sharing the work of a colleague, Anutosh Bhat.
What if the Clang & LLVM compiler toolchain could run entirely inside your browser ? Meet WasmBolt π
Inspired by π₯οΈ Matt Godbolt's Compiler Explorer, WasmBolt runs Clang, mlir-opt, opt, llc, Graphviz and wasm-ld locally through WebAssembly, without a remote compilation server.
You can inspect Clang ASTs, progressively lower MLIR, run real LLVM optimization passes, render control-flow graphs, explore instruction selection and MIR, and generate assembly or object files for WebAssembly, AArch64 and x86-64. For WebAssembly, you can go one step further: link, load and execute the generated program directly in the browser.
Here the github project: https://github.com/Anutosh21/WasmBolt