[LLVMdev] Running a pass during JIT

Duncan Sands baldrick at free.fr
Mon Dec 5 00:23:07 PST 2011


Hi,

> I would like to run a pass that I have wrote during the JIT (lli). But LLVM does
> not seem to have such an option. I can't even call standard LLVM's passes (for
> exmple, -adce). I have also tried to use lli -load=<path to the .so file of my
> pass>. But that won't help either.
> Anyway, is there a way do to that?

you can run your pass using opt then run lli on the result.

Ciao, Duncan.



More information about the llvm-dev mailing list