[LLVMdev] implicit Pass Type dependencies between Analysis Pass and Transformation Pass

Devang Patel dpatel at apple.com
Tue Aug 2 10:45:48 PDT 2011


Chuck,

On Aug 1, 2011, at 4:53 PM, Chuck Zhao wrote:

> if the Optimization Pass needs to be a LoopPass, does it mean the 
> AnalysisPass _has to_ be a Loop Pass as well?

LoopDeletion is a LoopPass and it uses DominatorTree which is a FunctionPass.


http://llvm.org/docs/WritingAnLLVMPass.html is a really good starting point.
-
Devang



More information about the llvm-dev mailing list