[llvm-dev] How to get analysis in a class which is not a LLVM pass?

vivek pandya via llvm-dev llvm-dev at lists.llvm.org
Wed Jul 13 01:03:55 PDT 2016


Hello,

I want to use ProfileSummaryInfo in a class which is not a LLVM pass like
TargetFrameLowering class (lib/CodeGen/TargetFrameLoweringImpl.cpp)

one way I know to get ProfileSummaryInfo is
getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(M);
but I can't use this.

Is this really possible?

 Sincerely,
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160713/3ccc1802/attachment.html>


More information about the llvm-dev mailing list