[LLVMdev] Getting the DSNode from a Pool Descriptor?

Andrew Lenharth andrewl at lenharth.org
Wed Mar 17 05:45:21 PDT 2010


On Tue, Mar 16, 2010 at 3:46 PM, Patrick Alexander Simmons
<simmon12 at cs.uiuc.edu> wrote:
> I figure (hopefully correctly) that I can iterate over all pool
> descriptors in a program by iterating over all users of poolinit and
> looking at the first argument.  However, once I have a pool descriptor,
> I need to get its corresponding DSNode in the function in which it is
> complete (or in the global graph if it is a global).  How do I do this?

How is different than the function in which the poolinit appears (or
main if it is global)?

Andrew




More information about the llvm-dev mailing list