target dependent bitcode pass

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.

Reed

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

-Tom