[LLVMdev] where does %a_addr.0 come from?

Duncan Sands baldrick at free.fr
Thu Sep 23 07:02:55 PDT 2010


Hi Maarten,

> I am studying SSA and some time ago I asked on this list how to see the
> phi nodes in the llvm ir output. I learned then to use this command:
> opt -mem2reg test.ll -S>  test_mem2reg.ll
>
> However, if you look at the output (attached to this message) there is
> something I do not understand. At the end of the function @f at line 18,
> the function returns the variable %a_addr.0. However, this variable is
> never defined or set.

it is defined here:

   %a_addr.0 = phi i32 [ 1, %bb ], [ 0, %bb1 ]     ; <i32> [#uses=1]

Ciao,

Duncan.



More information about the llvm-dev mailing list