Getting number of "unnamed temporory"


I am trying to print out output name of “unnamed temporary”. For instance, for %3 = add i32 %21, i32 %index.01, I would like to print out %3. Can anybody please let me know how I can get it?

Thank you

You can run the instnamer pass. So all instructions will get a name.

I hope it helps.



Just forwarding it to the list.