[TableGen][AMDGPU][RFC] Stop emitting names for block registers
The block stores one name, and getName() builds the register name
from it and the member the register starts at: SGPR_128 and
member 4 give SGPR4_128. The Name field of a block register is
now the empty string.
getName() therefore returns a std::string rather than a const
char *. No caller keeps the result: each one prints it or appends
it to something and is done. Two callers hand out a StringRef
into the name, and they now hold the string in a local variable
for the reference to point at. The heaviest caller is the MIR
parser, which asks every register for its name to build the map
it looks names up in. It builds that map once and copies the
names into it anyway.
This is another step towards eliminating the descriptors of block
registers. The Name field is now the same for every register of a
block, and once every field is the same, one descriptor can serve
the whole block and we can drop the rest.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>