[llvm-dev] llvm pass - getAnalysisUsage() problem
Syed Rafiul Hussain via llvm-dev
llvm-dev at lists.llvm.org
Wed Jan 20 21:01:20 PST 2016
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(*F), all the required passes, i.e., X, Y
and Z are being invoked. However, I want to invoke only the X. Could
anyone help me in this regard?
Thanks
--
Rafiul
More information about the llvm-dev
mailing list