[LLVMdev] How do I get my pass into the JIT?

Andreas Baier
Thu, 23 Feb 2012 15:40:09 -0000

Hi Duncan,

Thank you, this would be a workaround but I hoped it would be possible
to run it lazily with all the other passes to avoid the overhead on
large bc-files.

But it seems that this is not possible without modifying the JIT itself,
is it?

Greetings Andreas

Am 23.02.2012 15:04, schrieb Duncan Sands:
> Hi Andreas, you can run any set of passes you like on your module before
> handing it to the JIT.
>
> Ciao, Duncan.
>
>> I managed to write my own pass =) and now I want it to be executed by
the LLVM-JIT but I don't see the right way to do it.
>> The EngineBuilder only allows to set an opt level and as far as I can
see the ExecutionEngine does not provide access to the jitstate which holds its
passmanager.
>>
>> Could anyone give me a hint what I have to do to add my pass to the
passmanager of the jit?
>>
>> Thank you in advance.
>>
>> Greetings Andreas
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev