[LLVMdev] Using Profile Information
ambika
ambika at cse.iitb.ac.in
Thu Feb 25 08:33:24 PST 2010
Hi,
How can I use profile information into my pass for performing some analysis.
I tried something like:
PassManager PassMgr = PassManager();
cl::opt<std::string> ProfileDataFile(cl::Positional,
cl::desc("<llvmprof.out file>"),
cl::Optional, cl::init("llvmprof.out"));
PassMgr.add(createProfileLoaderPass(ProfileDataFile));
PassMgr.run(M);
ProfileInfo *PI;
PI = &getAnalysis<ProfileInfo>();
But this dosent seem to work.
I want to perform profile guided analysis and thus want to use profile info.
regards,
Ambika
More information about the llvm-dev
mailing list