This %0is the name of the command, not the name of the register — there are no registers in the intermediate LLVM view.
In any case, all commands inherit from the class Valuethat defines the method getName()and what you should call. However, keep in mind that usually the command will be unnamed and thus getName()will not return anything useful - names such as %0are assigned only when the module is emitted as text and do not exist before that.
source
share