search for: getfunctioncalls

Displaying 3 results from an estimated 3 matches for "getfunctioncalls".

2002 Nov 12
0
[LLVMdev] (no subject)
...; > > Chris told you how to get results of any pass > (BUDataStructure, TDDataStructure, etc.). > > The CallGraph pass right now is very imprecise. Instead, the > best way to get CallGraph information is to do the following: > -- Get the TDGraph > -- Call tdGraph->getFunctionCalls(). This returns a > list of call site objects, which contain information about > the potential callees at each call site (if it is a direct > call there is only one of course; if it is a call through a > function pointer, this tells you what callees may be called, > based on th...
2002 Nov 12
2
[LLVMdev] (no subject)
Dear LLVM, I need to do interprocedural analysis for my project. I was wondering if you can tell me how to create Bottom Up DSGraph and Call Graph in the program. I know DSGraph *dsg = new DSGraph( F ) can create a DSGraph, but looks like that's only local DSGraph. I also need to know how to create the call graph for the whole module in the program. Thanks, xiaodong
2002 Nov 24
4
[LLVMdev] globals in DS graph
I have some questions regarding how globals are represented in DS graph. Specifically, I wrote the following simple program: List *g; void alloc_func(){ g = ( List* ) malloc( sizeof( List ) ); } void free_func(){ free( g ); } int main(){ alloc_func(); free_func(); } I noticed that the DSnode for g in alloc_func is different from that of free_func and NEITHER of them had GlobalNode