[LLVMdev] reg_iterator Caveats

Chris Lattner sabre at nondot.org
Sun Mar 30 22:57:32 PDT 2008


On Mar 30, 2008, at 10:42 PM, David A. Greene wrote:
>> SSA form, it is reasonable to say "give me the first def" and expect
>> it to be the only def.  For multiply defined values like physregs,
>> this is not true, because the reg can have multiple defs.
>
> Gotcha.  This is exactly what I want.  Thanks for the explanation.
>
> For non-SSA values, is there some indication of which defs reach which
> uses?  I don't need this right now but I can imagine using it in the  
> future.

The reg def/kill/dead flags are all that there is.

-Chris



More information about the llvm-dev mailing list