search for: annotatefunctionpass

Displaying 2 results from an estimated 2 matches for "annotatefunctionpass".

Did you mean: annotatedfunctionpass
2017 Oct 03
1
About LLVM Pass dependency
...s also. e.g. void MyInliner::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<SimplifyCFGPass>(); // Transformation Pass AU.addRequired<AnnotatedFunctionPass>(); // Transformation like pass AU.addRequired<CallGraphSCCPass>(); // Analysis Pass } here AnnotateFunctionPass is adding meta information,so technically nothing Functional transformational in module and not Analysis either. Would that be right way? Thanks Mahesh On Tue, Oct 3, 2017 at 9:43 PM, Hongbin Zheng <etherzhhb at gmail.com> wrote: > Hi Mahesh, > > Did you override getAnalysisUsage...
2017 Oct 03
2
About LLVM Pass dependency
Hello I am working on pass which has dependency on multiple passes. Say D1,D2,D3 I used INITIALIZE_PASS_BEGIN INITIALIZE_PASS_DEPENDENCY(D1) INITIALIZE_PASS_DEPENDENCY(D2) INITIALIZE_PASS_DEPENDENCY(D3) INITIALIZE_PASS_END. While running it through opt tool it, I had to specify this D1,D2,D3 pass names to get this pass executed before my pass. Is there way, to let llvm pass manager to know