VSCode LLVM Compiler ExplorerDownload from VSCode marketplace. This is a tool for compiler developers of LLVM. This vscode extension can support exploring LLVM IR and machine IR after each pass. Features
How to use
Compare ModeTo debug a pass, you may want to compare a clang command with and without the pass. Or you want to debug a different version of clang with the stable version. This extension can help you to compare the difference between two IRs after each pass. Source2Asm Mapping ViewInspired by Compiler Explorer, this extension can highlight the mapping between source code and the assembly code. Run Print Pass to View CallGraph/CFG/DOMTreeThere is a list of utility passes available in this plugin. You can run these passes to view the CallGraph, CFG, and DOMTree of an IR file. When you open an IR file, you can click the 'Print Call Graph' button to generate a callgraph.dot file. Then, you can use the Graphviz plugin to view the callgraph. Note: You need to have 'opt' tool in your PATH (or specify the path in settings) and installed Graphviz preview plugin. Syntax HighlightingThis plugin provides syntax highlighting for Clang AST and assembly language. You may need to install additional LLVM syntax highlighting plugins, there are some options: |