Lesson 7: LLVM

Gist

What is LLVM?

Getting Started

Writing a Pass

Please follow the “LLVM for Grad Students” tutorial. (The second video walks through the same steps.)

The command in the video for running your pass is out of date. (It’s correct in the blog post.) Instead of that -Xclang business, you want:

$ clang -fpass-plugin=build/skeleton/SkeletonPass.so something.c

…or possibly .dylib instead of .so, if you’re on macOS.

Tasks