vscode-llvm

所属分类:编译器/解释器
开发工具:SWIG
文件大小:0KB
下载次数:0
上传日期:2023-12-04 02:53:51
上 传 者sh-1993
说明:  VSCode LLVM编译器资源管理器
(VSCode LLVM Compiler Explorer)

文件列表:
.eslintrc.json (516, 2023-12-04)
.vscode/ (0, 2023-12-04)
.vscode/extensions.json (197, 2023-12-04)
.vscode/launch.json (1027, 2023-12-04)
.vscode/settings.json (729, 2023-12-04)
.vscode/tasks.json (739, 2023-12-04)
.vscodeignore (174, 2023-12-04)
.yarnrc (21, 2023-12-04)
CHANGELOG.md (874, 2023-12-04)
CONTRIBUTING.md (783, 2023-12-04)
LICENSE (1068, 2023-12-04)
doc/ (0, 2023-12-04)
doc/callgraph.png (328539, 2023-12-04)
doc/compare.png (365825, 2023-12-04)
doc/highlight.png (310622, 2023-12-04)
doc/pass-view.png (486488, 2023-12-04)
doc/step1.png (107068, 2023-12-04)
doc/step2.png (147575, 2023-12-04)
doc/鍔熻兘闇姹.md (1441, 2023-12-04)
example/ (0, 2023-12-04)
example/.vscode/ (0, 2023-12-04)
example/.vscode/launch.json (535, 2023-12-04)
example/main.S (10276, 2023-12-04)
example/main.bc (9256, 2023-12-04)
example/main.c (101, 2023-12-04)
example/main.i (130852, 2023-12-04)
example/main.ll (3405, 2023-12-04)
image.png (328426, 2023-12-04)
media/ (0, 2023-12-04)
media/main.css (759, 2023-12-04)
media/main.js (4879, 2023-12-04)
media/reset.css (233, 2023-12-04)
media/vscode.css (1977, 2023-12-04)
package.json (4405, 2023-12-04)
resources/ (0, 2023-12-04)
resources/LLVM.svg (13322, 2023-12-04)
resources/disassembly.json (879, 2023-12-04)
... ...

# VSCode LLVM Compiler Explorer Download from [VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=XiaofanSun.vscode-llvm). This is a tool for compiler developers of LLVM. This vscode extension can support exploring LLVM IR and machine IR after each pass. ## Features 1. Run a clang command and explore preprocessing phase, clang AST building phase, each phase of LLVM passes, and final generated assembly code. 2. Compare difference between IRs before and after running a pass. 3. Support custom clang or modified version. ## How to use ![](./doc/step1.png) 1. Click 'New config' for creating a new configuration 2. Type your command to compile the file ![](./doc/step2.png) 3. (Optional) If you want to focus on one function. You can type the function name in the 'filter function' field. Please note, this function name should be mangle name if it's C++. Then, click the command name to run the command. 4. Now, you can explore the IRs after each pass. ![](./doc/pass-view.png) ## Compare Mode To 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. ![](./doc/compare.png) ## Source2Asm Mapping View Inspired by Compiler Explorer, this extension can highlight the mapping between source code and the assembly code. ![](./doc/highlight.png) ## Run Print Pass to View CallGraph/CFG/DOMTree There 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](https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview). ![](./doc/callgraph.png) ## Syntax Highlighting This plugin provides syntax highlighting for Clang AST and assembly language. You may need to install additional LLVM syntax highlighting plugins, there are some options: [RReverser.llvm](https://marketplace.visualstudio.com/items?itemName=RReverser.llvm) [colejcummins.llvm-syntax-highlighting](https://marketplace.visualstudio.com/items?itemName=colejcummins.llvm-syntax-highlighting)

近期下载者

相关文件


收藏者