[LLVMdev] How to get a Module DSGraph?
Juan Nicolas Ruiz
juanruiz at students.uiuc.edu
Sat Nov 30 17:58:01 PST 2002
I've been trying to obtain a DSGraph for a complete module, but
haven't succeeded. I tried
- getting the DSGraph for each function, and copying the nodes to a
Module graph. But since there are no nodehandles, apparently there is
no merging of nodes.
- modifying BUDataStructure Pass so that it will not execute
removeDeadNodes() or removeTriviallyDeadNodes().
- couldn't get mergeInGraph() to work, but tried.
My main interest is in situations like
void *M(int size) {
return malloc(size);
}
void F() {
void *p = M(....);
}
where I can identify that %p and the object returned by M() are the
same.
nicolas
More information about the llvm-dev
mailing list