[llvm-dev] LLVM - getAnalysisUsage()
Syed Rafiul Hussain via llvm-dev
llvm-dev at lists.llvm.org
Fri Jan 22 08:46:03 PST 2016
No, X, Y and Z are independent to each other.
On Fri, Jan 22, 2016 at 11:20 AM, Daniel Berlin <dberlin at dberlin.org> wrote:
> Does analysis X require X, Y, and Z itself?
>
>
> On Thu, Jan 21, 2016 at 9:05 PM, Syed Rafiul Hussain via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>>
>> 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
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
--
Rafi
More information about the llvm-dev
mailing list