<div dir="ltr">Hello,<div><br></div><div>I need to analyze dependencies in my llvm ir by using polly. i created a new pass called mypass there i added polly dependency analysis pass but when i execute this pass in gdb i get no data.</div><div><br></div><div>Why is that so?</div><div><br></div><div>My code is follows;</div><div><br></div><div><br></div><div><br></div><div><div>namespace {</div><div>struct mypass : public FunctionPass {</div><div>static char ID;</div><div><br></div><div>mypass() : FunctionPass(ID) {</div><div>}</div><div> virtual bool runOnFunction(Function &F)</div><div>        {</div><div><div>polly::DependenceInfoWrapperPass dp;</div><div><br></div><div>auto &SI = *getAnalysis<polly::ScopInfoWrapperPass>().getSI();</div><div><br></div><div>  for (auto &It : SI) {</div><div>    assert(It.second && "Invalid SCoP object!");</div><div>    dp.recomputeDependences(It.second.get(), polly::Dependences::AL_Access); }</div></div></div><div><div>virtual void getAnalysisUsage(AnalysisUsage &AU) const</div><div>        {</div></div><div><br></div><div>  AU.addRequiredTransitive<polly::ScopInfoWrapperPass>();</div><div><div> AU.setPreservesAll();</div><div>        }</div><div>};</div><div>}</div><div>char mypass::ID = 0;</div><div>static RegisterPass<mypass> X("mypass", "mypass World Pass", false, false);</div><div><br></div></div><div>please help. i have been trying a lot. </div></div>