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
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