[LLVMdev] A weird problem when try to output operand of instruction involving function pointer in a struct

Duncan Sands baldrick at free.fr
Sat Feb 16 00:15:37 PST 2013


Hi Robert,
> The output is:
> In function: main
> A,
> indirect call: tt1,
> indirect call: ff2,
> indirect call: tt4,
> indirect call: ppp,
> indirect call: kkk,
>
>
> You can find that there is a number after tt and ff, I have no idea where they
> are coming from. Can anyone give some hint?

names of local variables/registers have no meaning in LLVM (in fact they aren't
required to have a name at all) they only exist to make things more readable for
developers.  If you try to name something XYZ, but something called XYZ already
exists, then XYZ1 will be used instead; if the XYZ1 name is already used, then
XYZ2 will be used instead, etc.  Due to the way front-ends work it is quite
common to have such name collisions, resulting in getting a name with a number
on the end.

Ciao, Duncan.




More information about the llvm-dev mailing list