[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc

Duncan Sands baldrick at free.fr
Mon Apr 12 00:39:15 PDT 2010

Hi Felipe,

> I'm very new to llvm, and I'm trying to compile a C file using llvm-gcc,
> but I'd like to specify the optimization passes sequence by myself. How
> can I do this?

try something like this:

llvm-gcc -c -emit-llvm -o - | opt ...list.transforms.here... > result.bc

This results in optimized bitcode in result.bc.



More information about the llvm-dev mailing list