I found that ProfileInfo is contained in an analysis group, but ProfileInfo class itself is not derived from any base classes of passes, so it appears not to be a pass. Anything I missed here? Thanks, -Thomson -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120624/7f26ca93/attachment.html>
On 6/24/12 10:37 AM, Thomson wrote:> I found that ProfileInfo is contained in an analysis group, but > ProfileInfo class itself is not derived from any base classes of > passes, so it appears not to be a pass. Anything I missed here?This is just a guess, but I suspect that the ProfileInfo class defines the interface which all passes in that analysis group are expected to implement. I think I've seen other analysis groups use this approach. -- John T.> > Thanks, > -Thomson > > > _______________________________________________ > 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/20120625/f73937c7/attachment.html>
Thanks, John. This sounds reasonable that the analysis group just provides an interface to its implementors (pass). Then I have another question, is it allowed to specify multiple pass in the same analysis group in the command line for opt? If yes, which pass will be used for the call of getAnaysis<AnalysisGroup>()? -Thomson On Mon, Jun 25, 2012 at 10:34 PM, John Criswell <criswell at illinois.edu>wrote:> On 6/24/12 10:37 AM, Thomson wrote: > > I found that ProfileInfo is contained in an analysis group, but > ProfileInfo class itself is not derived from any base classes of passes, so > it appears not to be a pass. Anything I missed here? > > > This is just a guess, but I suspect that the ProfileInfo class defines the > interface which all passes in that analysis group are expected to > implement. I think I've seen other analysis groups use this approach. > > -- John T. > > > Thanks, > -Thomson > > > _______________________________________________ > LLVM Developers mailing listLLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120626/db46b9b3/attachment.html>
Maybe Matching Threads
- [LLVMdev] Does anaysis group only contain passes?
- [LLVMdev] Does anaysis group only contain passes?
- [LLVMdev] Does anaysis group only contain passes?
- Queries Regarding Usage of PGOInstrumentation Passes instead of Deprecated ProfileInfo
- [LLVMdev] Profiling in LLVM Patch Followup 1