[LLVMdev] about getNodeForValue()

Vikram S. Adve vadve at cs.uiuc.edu
Mon Nov 11 06:12:00 PST 2002


There are no nodes for scalars like p in the graph any more.  So this will
return the malloc node that p points to.

--Vikram

-------------------------------------------------------------------------
 VIKRAM S. ADVE
 Assistant Professor                            E-MAIL: vadve at cs.uiuc.edu
 Department of Computer Science                 PHONE:  (217) 244-2016
 Univ. of Illinois at Urbana-Champaign          FAX:    (217) 244-6869
 1304 W. Springfield Ave.              WWW: http://www.cs.uiuc.edu/~vadve
 Urbana IL 61801-2987.
-------------------------------------------------------------------------


> -----Original Message-----
> From: llvmdev-admin at cs.uiuc.edu [mailto:llvmdev-admin at cs.uiuc.edu]On
> Behalf Of Xiaodong Li
> Sent: Monday, November 11, 2002 1:16 AM
> To: llvmdev at cs.uiuc.edu
> Subject: [LLVMdev] about getNodeForValue()
>
>
> I have a question about the getNodeForValue() function. If I have the
> following code:
>
> struct a *p;
> p = malloc( sizeof(struct a));
>
> If I call DSGraph->getNodeForValue(p).getNode(). Will the returned Node
> be p node or the actual memory location node?
>
> Thanks,
> xiaodong
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list