Basic question concerning phi nodes and SSA variable labelling.

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?).

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

Thanks in advance,

Carter.

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