2 ms·
The command to use is `clang -S -emit-llvm -O1 foo.c` It'll write it out to a foo.ll file. (I use -O1 so it cleans up a bit of the messy parts of the IR).
by mrathi12 6y ago
The command to use is `clang -S -emit-llvm -O1 foo.c`
It'll write it out to a foo.ll file.
(I use -O1 so it cleans up a bit of the messy parts of the IR).