Carter Cheng
2009-Aug-23 19:04 UTC
[LLVMdev] 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.
Eli Friedman
2009-Aug-23 19:24 UTC
[LLVMdev] Basic question concerning phi nodes and SSA variable labelling.
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
Maybe Matching Threads
- "nested" getInitial calls; variable scoping problems
- [LLVMdev] Beginner's question concerning JIT
- Finding label of basic block where a conditional branch merges
- [LLVMdev] Several basic questions about Builder
- [LLVMdev] Basic question- cross compiling LLVM