Arvind Sudarsanam via llvm-dev
2017-Sep-14 15:57 UTC
[llvm-dev] [GlobalISel][RFC] Thoughts on MachineModulePass
Hi all, I am interested in this as I want to perform Call Graph analysis at the Machine IR level. Has there been any updates on this? Thanks and Best Regards Arvind -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170914/230f9bd2/attachment.html>
Matthias Braun via llvm-dev
2017-Sep-14 16:42 UTC
[llvm-dev] [GlobalISel][RFC] Thoughts on MachineModulePass
You can insert module passes into the machine pipeline as of r279602 (and some followups I don't remember right now fixing some bugs). You basically write a ModulePass, query the MachineModuleInfo analysis and can then get the machine function for every IR function by calling MMI.getOrCreateMachineFunction(). The MachineOutliner is using this if you want to see an examples. - Matthias> On Sep 14, 2017, at 8:57 AM, Arvind Sudarsanam via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi all, > > I am interested in this as I want to perform Call Graph analysis at the Machine IR level. Has there been any updates on this? > > Thanks and Best Regards > Arvind > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev