shanmuk rao
2012-Apr-27 19:05 UTC
[LLVMdev] Problem in accessing Loops in other Functions Problem in accessing Loops in other Functions problem in accessing the Loops in other functions
Hi, I am using Loop pass ( runOnLoop() function ) In this function I want to access all the Loops in all the functions in the current Module the LoopInfo Pass only gives the Loops in the function where the current Loop resides :-( Is there any other Pass by which I can access the Loops in others functions as well ? ...... Regards, Shanmukha Rao -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120428/14b8700b/attachment.html>
John Criswell
2012-Apr-27 21:35 UTC
[LLVMdev] Problem in accessing Loops in other Functions Problem in accessing Loops in other Functions problem in accessing the Loops in other functions
On 4/27/12 2:05 PM, shanmuk rao wrote:> Hi, > I am using Loop pass ( runOnLoop() function ) > In this function I want to access all the Loops in all the functions > in the current Module > > the LoopInfo Pass only gives the Loops in the function where the > current Loop resides :-( > > Is there any other Pass by which I can access the Loops in others > functions as well ?I assume you're using a FunctionPass to do your analysis or optimization. Try writing your pass as a ModulePass instead; a FunctionPass should only operate on code within the function that it is analyzing/modifying. -- John T.> > > ...... > Regards, > Shanmukha Rao > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120427/26879d96/attachment.html>
shanmuk rao
2012-Apr-28 06:11 UTC
[LLVMdev] Problem in accessing Loops in other Functions Problem in accessing Loops in other Functions problem in accessing the Loops in other functions
I am using LoopPass because I need the LoopDependence analysis which seems to work with only LoopPass On Sat, Apr 28, 2012 at 3:05 AM, John Criswell <criswell at illinois.edu>wrote:> On 4/27/12 2:05 PM, shanmuk rao wrote: > > Hi, > I am using Loop pass ( runOnLoop() function ) > In this function I want to access all the Loops in all the functions in > the current Module > > the LoopInfo Pass only gives the Loops in the function where the current > Loop resides :-( > > Is there any other Pass by which I can access the Loops in others > functions as well ? > > > I assume you're using a FunctionPass to do your analysis or optimization. > Try writing your pass as a ModulePass instead; a FunctionPass should only > operate on code within the function that it is analyzing/modifying. > > -- John T. > > > > ...... > Regards, > Shanmukha Rao > > > _______________________________________________ > LLVM Developers mailing listLLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > >-- ...... Regards, Shanmukha Rao Compilers lab, Indian Institute of Science, Bangalore. mobile : nine 7even three one eight eight one two 7even two mail : shanmukrao AT csa DOT iisc DOT ernet DOT in shanmukDOTrao008 AT gmail DOT com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120428/d1a5d400/attachment.html>
Seemingly Similar Threads
- [LLVMdev] Problem in accessing Loops in other Functions Problem in accessing Loops in other Functions problem in accessing the Loops in other functions
- [LLVMdev] Problem with LoopDependenceAnalysis
- [LLVMdev] Problem with LoopDependenceAnalysis
- [LLVMdev] Problem with LoopDependenceAnalysis
- [LLVMdev] Problem with LoopDependenceAnalysis