[LLVMdev] loadable passes with dependencies?
Tobias Grosser
tobias at grosser.es
Tue Nov 8 11:57:02 PST 2011
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