[LLVMdev] Registering a MachineFunctionPass to JIT codegen

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon Sep 14 22:54:35 PDT 2009

Hi all,

I can't find a way to add a MachineFunctionPass to the common codegen 
passes (LLVMTargetMachine::addPassesToEmitMachineCode) while JITting 
(the pass manager is associated with the jitstate of the JIT and I can't 
access it because it's private). Have I missed something? Or adding a 
MachineFunctionPass to codegen requires to change the 
LLVMTargetMachine::addPassesToEmitMachineCode function?


More information about the llvm-dev mailing list