search for: cgnode

Displaying 13 results from an estimated 13 matches for "cgnode".

2011 Nov 30
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...lGraphSCCPass { static char ID; myPass() : CallGraphSCCPass(ID) {} virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); AU.addRequired<LoopInfo>(); } virtual bool runOnSCC(CallGraphSCC &SCC) { for (CallGraphSCC::iterator CGNodeItr = SCC.begin(), CFNodeItrE=SCC.end();CGNodeItr!=CGNodeItrE;++CGNodeItr) } const CallGraphNode *CGNode = *CGNodeItr; Function *F = CGNode->getFunction(); if (!F->isDeclaration()) LoopInfo &LI = getAnaly...
2011 Nov 21
5
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
I would have thought this would have been possible. On Thu, Nov 17, 2011 at 3:49 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: > So is this simply not possible? > > > On Thu, Nov 17, 2011 at 10:31 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > >> Nick, >> >> Thanks for this info, though this didn't help my problem at all. >> >>
2011 Nov 30
2
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...gt;   myPass() : CallGraphSCCPass(ID) {} >   virtual void getAnalysisUsage(AnalysisUsage &AU) const { >            AU.setPreservesAll(); >            AU.addRequired<LoopInfo>(); >   } >   virtual bool runOnSCC(CallGraphSCC &SCC) { >        for (CallGraphSCC::iterator CGNodeItr = SCC.begin(), > CFNodeItrE=SCC.end();CGNodeItr!=CGNodeItrE;++CGNodeItr)  } >                   const CallGraphNode *CGNode = *CGNodeItr; >                   Function *F = CGNode->getFunction(); >                   if (!F->isDeclaration()) >                                Lo...
2011 Dec 01
1
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
...D; >  myPass() : CallGraphSCCPass(ID) {} >  virtual void getAnalysisUsage(AnalysisUsage &AU) const { >            AU.setPreservesAll(); >            AU.addRequired<LoopInfo>(); >  } >  virtual bool runOnSCC(CallGraphSCC &SCC) { >        for (CallGraphSCC::iterator CGNodeItr = SCC.begin(), CFNodeItrE=SCC.end();CGNodeItr!=CGNodeItrE;++CGNodeItr)  } >                  const CallGraphNode *CGNode = *CGNodeItr; >                  Function *F = CGNode->getFunction(); >                  if (!F->isDeclaration()) >                                LoopInfo...
2011 Oct 19
1
[LLVMdev] CallGraphSCCPass
...ion->BasicBlock->Instruction, is this not the case? virtual bool runOnSCC(CallGraphSCC &SCC) { errs() << "CDFGPass: " << "\n"; errs() <<"Size of SCC: "<<SCC.size()<<"\n"; for(CallGraphSCC::iterator CGNodeItr = SCC.begin(); CGNodeItr != SCC.end();++CGNodeItr) { errs()<<"Iterating CallNodeGraphs"<<"\n"; const CallGraphNode *CGNode = cast<CallGraphNode>(&*CGNodeItr); errs()<<"Getting Function&qu...
2011 Nov 30
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...ass(ID) {} > > virtual void getAnalysisUsage(AnalysisUsage &AU) const { > > AU.setPreservesAll(); > > AU.addRequired<LoopInfo>(); > > } > > virtual bool runOnSCC(CallGraphSCC &SCC) { > > for (CallGraphSCC::iterator CGNodeItr = SCC.begin(), > > CFNodeItrE=SCC.end();CGNodeItr!=CGNodeItrE;++CGNodeItr) } > > const CallGraphNode *CGNode = *CGNodeItr; > > Function *F = CGNode->getFunction(); > > if (!F->isDeclaration()) > >...
2011 Dec 01
0
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
...CCPass(ID) {} > > virtual void getAnalysisUsage(AnalysisUsage &AU) const { > > AU.setPreservesAll(); > > AU.addRequired<LoopInfo>(); > > } > > virtual bool runOnSCC(CallGraphSCC &SCC) { > > for (CallGraphSCC::iterator CGNodeItr = SCC.begin(), > CFNodeItrE=SCC.end();CGNodeItr!=CGNodeItrE;++CGNodeItr) } > > const CallGraphNode *CGNode = *CGNodeItr; > > Function *F = CGNode->getFunction(); > > if (!F->isDeclaration()) > >...
2013 Sep 23
0
[LLVMdev] Cannot get Alias Analysis?
...passMgr.add(this);* *}* * * *bool AnalysisDriver::run(Module &module) {* * passMgr.run(module);* *}* * * *bool AnalysisDriver::runOnSCC(CallGraphSCC &scc) {* * for (CallGraphSCC::iterator i = scc.begin(),* * e = scc.end(); i != e; ++i) {* * CallGraphNode *cgnode = *i;* * Function *f = cgnode->getFunction();* * if (f == NULL || f->isDeclaration())* * continue;* * * * runOnFunction(f);* * }* * return false;* *}* * * *bool AnalysisDriver::runOnFunction(Function *f) {* * AliasAnalysis &aa = getAnalysis<AliasAnalysis>(*f);* * ....
2011 Nov 10
1
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
...ither have to wait for someone else to respond or just figure it out using trial and error. Third, are you including the header file that provides the definition of LoopInfo? If not, that could be a problem. -- John T. > > Here is the code I'm using: > > Function *F = CGNode->getFunction(); > errs()<<"#Get Loop Info\n"; > if (!(F->getDeclaration())) > LoopInfo &LI = getAnalysis<LoopInfo>(F); > > > On Thu, Nov 10, 2011 at 9:13 AM, John Criswell <criswell at illinois.edu > <mailto...
2011 Nov 10
4
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
...g trial and error. >> >> Third, are you including the header file that provides the definition of >> LoopInfo? If not, that could be a problem. >> >> -- John T. >> >> >> >> Here is the code I'm using: >> >> Function *F = CGNode->getFunction(); >> errs()<<"#Get Loop Info\n"; >> if (!(F->getDeclaration())) >> LoopInfo &LI = getAnalysis<LoopInfo>(F); >> >> >> On Thu, Nov 10, 2011 at 9:13 AM, John Criswell <criswell at illin...
2011 Nov 10
0
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
...e else to respond or just figure it out using trial and error. > > Third, are you including the header file that provides the definition of > LoopInfo? If not, that could be a problem. > > -- John T. > > > > Here is the code I'm using: > > Function *F = CGNode->getFunction(); > errs()<<"#Get Loop Info\n"; > if (!(F->getDeclaration())) > LoopInfo &LI = getAnalysis<LoopInfo>(F); > > > On Thu, Nov 10, 2011 at 9:13 AM, John Criswell <criswell at illinois.edu>wrote: > &...
2011 Nov 10
3
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
LLVMers, I am doing a CallGraphPass but would like to get the LoopInfo of the functions inside this pass, is this possible? Currently I have a function inside the CallGraph struct: void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LoopInfo>(); AU.addPreserved<LoopInfo>(); } And later inside the pass I am calling: LoopInfo &LI =
2011 Nov 10
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...Third, are you including the header file that provides the definition of >>> LoopInfo? If not, that could be a problem. >>> >>> -- John T. >>> >>> >>> >>> Here is the code I'm using: >>> >>> Function *F = CGNode->getFunction(); >>> errs()<<"#Get Loop Info\n"; >>> if (!(F->getDeclaration())) >>> LoopInfo &LI = getAnalysis<LoopInfo>(F); >>> >>> >>> On Thu, Nov 10, 2011 at 9:13 AM, John Criswe...