[LLVMdev] Registering a MachineFunctionPass to JIT codegen
clattner at apple.com
Mon Sep 14 22:59:45 PDT 2009
On Sep 14, 2009, at 10:54 PM, Nicolas Geoffray wrote:
> 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
> access it because it's private). Have I missed something? Or adding a
> MachineFunctionPass to codegen requires to change the
> LLVMTargetMachine::addPassesToEmitMachineCode function?
You haven't missed anything, there isn't currently a way to do this.
More information about the llvm-dev