Skip to content

Instantly share code, notes, and snippets.

View vollkorn's full-sized avatar

Lukas vollkorn

View GitHub Profile
@vollkorn
vollkorn / gist:61596aeea691691c0fed
Last active October 20, 2017 07:43
LLVM Cheat sheet

Print which passes are used in -O1, -O2, -O3...

opt -O2 -debug-pass=Arguments foo.ll -S -o bar.ll

Show control flow graph using opt, spawning a new background task.

opt -view-cfg -view-background foo.ll

Debugging mit gdb