search for: __getfunction

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

2013 Apr 26
0
[LLVMdev] CallGraph
...I try to make a big CFG (control flow graph) by combining all the CFG-s > from all > the functions of a module. I still have one problem : I want to get the > links > between functions. > > For CFG-s, I used CallGraphNode->second->__getFunction, then > Function_iterators > and succ_iterators, so I have all the links between BBs. Now, the > questions is > how do I link BBs from different functions? > > I can do it in a way not so elegant. Take the last BB of every function, >...
2013 Apr 26
2
[LLVMdev] CallGraph
Thanks for the response. I looked and I cannot see what exactly I need. I saw getCalledFunction() so I need CallSite CS(cast<Value>(II)) where II is a basic block iterator, so an instruction. It seems not easier than the "unelegant" version....if I am still at the Instruction level... I need a method that takes from a "leaf" basic block from a function (Maybe there is