[LLVMdev] Basic question concerning phi nodes and SSA variable labelling.

Eli Friedman eli.friedman at gmail.com
Sun Aug 23 12:24:42 PDT 2009


On Sun, Aug 23, 2009 at 12:04 PM, Carter Cheng<carter_cheng at yahoo.com> wrote:
> I have a basic question concerning how LLVM assigns labels to the LHS of an SSA assignment. My impression from the interface is you can pick a string which becomes the label for the result. However if you multiple labels which share the same name in a function a number gets added to the end of the label (is this correct?).

Yes, exactly.

> In cases where you need to know what these resulting labels are is it best to do you own enumeration?

It's usually best not to use the names for anything within a pass;
they're primarily intended to be a debugging aid.

-Eli




More information about the llvm-dev mailing list