[LLVMdev] MachineFunction::get

Sumesh Udayakumaran sumesh.uk at gmail.com
Fri Nov 6 17:43:11 PST 2009


Hi
I have a ModulePass in LLC that runs after most of codegen completes,
right before OBJ emission.  I want the ModulePass to iterate over all
MachineFunctions, emulating them.  I used to do this by iterating over
all Module Function's, and using MachineFunction::get() to get the
MachineFunction associated with said Function.

In LLVM 2.6, MachineFunction::get() is gone.  What is the  new way  of
doing what I need?

thanks
Sumesh



More information about the llvm-dev mailing list