[llvm-dev] LLVM - getAnalysisUsage()

Syed Rafiul Hussain via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 21 21:05:03 PST 2016


Hi,

I am using llvm-3.8 for my project. Following is my getAnalysisUsage() method:

virtual void getAnalysisUsage(AnalysisUsage &AU) const override
{
   AU.setPreservesAll();
   AU.addRequired<X>();
   AU.addRequired<Y>();
   AU.addRequired<Z>();
}

Now, if I call getAnalysis<X>(*F), instead of invoking just the X
pass, all the passes, i.e., X, Y and Z are being invoked. Could anyone
help me in this regard?

Thanks

-- 
Syed


More information about the llvm-dev mailing list