Specifying Additional Compilation Passes to lli


I'm interested in specifying some additional passes to the JIT via the command-line. The enclosed patch allows lli to take compiler passes as command-line arguments in the same way opt does. This is my first submission, so any comments, criticisms, or observations would be very welcome. Thanks.

Tom Jablin

PassArgumentsForLLI.diff (9.18 KB)

Hi Tom,

I don't think this is the right approach. May I ask you what passes you are trying to add? If you just want to run a number of llvm level optimization passes, the right approach is to add your own pass manager instead.