LLVM Tips/Tricks

LLVM Tips/Tricks This is a collection of tips/tricks that I have learned while working with LLVM. I will keep updating this page as I learn more. (Last updated: 31st October 2022) Debugging LLVM (opt) passes with VSCode Refer to this blog post: Debugging LLVM (opt) passes with VSCode to ease the process of debugging LLVM passes using VSCode’s amazing debugging capabilities. Generating the CFG for a function Using IDA Pro for reverse engineering binaries, has made me a huge fan of CFGs, for analyzing control flows for low level applications....

October 31, 2022 · 3 min · Siddharth Muralee

Debugging LLVM (opt) passes with VSCode

Debugging LLVM (opt) passes with VSCode In this blog, I plan to look at how to debug LLVM passes (specifically opt passes) with VSCode. I have been working with opt passes in VSCode for a while, and realized that people have a really hard time debugging them. I have had labmates switch to CLion for writting LLVM passes. So, here’s a guide on setting up VSCode for debugging llvm-opt passes....

September 4, 2022 · 5 min · Siddharth Muralee