[LLVMdev] loadable passes with dependencies?

ret val retval386 at gmail.com
Tue Nov 8 12:15:32 PST 2011


I changed it to virtual void getAnalysisUsage(AnalysisUsage &AU) const
with no luck.

The function does get called, I see the errs() call I inserted before
the asserted is tripped. Really not sure how to go about debugging
this now.

Thanks again

On Tue, Nov 8, 2011 at 2:57 PM, Tobias Grosser <tobias at grosser.es> wrote:
> On 11/08/2011 08:50 PM, ret val wrote:
>>
>> Just shows me what I expect
>>        void getAnalysisUsage(AnalysisUsage&AU) const {
>>                DominatorTree *dt =&getAnalysis<DominatorTree>();
>>
>> So I'm only using it for DominatorTree(so I can use PromoteMemToReg).
>
> Interesting. Is the same assert triggered when you use RegisterPass to
> register the pass? Is getAnalysisUsage() called  at all?
>
> My definition of getAnalysisUsage looks like:
>
> virtual void getAnalysisUsage(AnalysisUsage &AU) const
> ^^^^^^^
>
> Why do you omit the 'virtual'?
>
> Cheers
> Tobi
>




More information about the llvm-dev mailing list