[LLVMdev] target dependent bitcode pass

Tom Stellard tom at stellard.net
Thu Dec 6 12:54:18 PST 2012


On Thu, Dec 06, 2012 at 12:37:29PM -0800, Reed Kotler wrote:
> I need to add a Mips specific pass that adds some bitcode for
> special stub functions, to the normal bitcode prior to compiling the
> module.
> 
> Is there a simple way to have such target dependent passes in llvm?
> 
> tia.
> 

You can add bitcode pases to your target's normal codegen passes using
PassConfig::addPreISel()

-Tom



More information about the llvm-dev mailing list