[LLVMdev] Get identifier for unnamed temporary

Chris Lattner clattner at apple.com
Thu Jul 2 14:48:22 PDT 2009


On Jul 2, 2009, at 2:24 PM, Scott Ricketts wrote:

> Is there a way through the Value class to get the identifier for an
> unnamed temporary? Or alternatively, could someone point me to the
> code where temporaries are assigned sequential numbers as identifiers
> so I can better understand this issue?

hi Scott,

VMCore will auto-unique value names for you.  Most passes just create  
all instructions with a name like "tmp" and let VMCore unique them.   
Is this enough for you?

-Chris



More information about the llvm-dev mailing list