search for: getnumreferences

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

2012 Nov 28
1
[LLVMdev] Inconsistent result with CallGraph
...dule( Module & M ) { ... CallGraph &CG = this->getAnalysis<CallGraph>(); CallGraphNode *cgn; unsigned nref; for(CallGraph::const_iterator I=CG.begin(),E=CG.end();I!=E;I++) { cgn=I->second; if((cgn)&&(cgn->getFunction())) { nref=cgn->getNumReferences(); llvm::dbgs()<<"uses:"<<nref<<"\n"; cgn->dump(); } } ... } In a simple program with only one function (Main), this is the output: uses:0 Call graph node for function: 'main'<<0x7f928340c760>> #uses=1...
2012 Nov 22
0
[LLVMdev] possible bug in llvm-3.1
...le( Module & M ) { ... CallGraph &CG = this->getAnalysis<CallGraph>(); CallGraphNode *cgn; unsigned nref; for(CallGraph::const_iterator I=CG.begin(),E=CG.end();I!=E;I++) { cgn=I->second; if((cgn)&&(cgn->getFunction())) { nref=cgn->getNumReferences(); llvm::dbgs()<<"uses:"<<nref<<"\n"; cgn->dump(); } } ... } In a simple program with only one function (Main), this is the output: uses:0 Call graph node for function: 'main'<<0x7f928340c760>> #uses=1...