[LLVMdev] dynamic passes

reed kotler rkotler at mips.com
Fri Mar 29 15:38:03 PDT 2013


Is it possible to dynamically add and remove passes once llc starts to run?

Currently I have to add some machine function passes and only once they 
are running, I have them return right away because they are not relevant 
at that time. For example, mips16 does not use the delay slot optimizer 
but now I would need to add the pass all the time just in case someone 
specified that a particular function be compiled as mips32.

It seems from the pass manager that you can add and subtract passes but 
I was unclear as to whether this was something you have to do before the 
pass manager starts to run passes.

Tia.

Reed







More information about the llvm-dev mailing list