[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-dev
Subject:    [LLVMdev] How to get a Module DSGraph?
From:       Juan Nicolas Ruiz <juanruiz () students ! uiuc ! edu>
Date:       2002-11-30 17:58:01
Message-ID: Pine.GSO.4.31.0211301747180.25417-100000 () ux8 ! cso ! uiuc ! edu
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic