[AMDGPU] Allow register tuples to set asm names
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 19 Jul 2019 18:05:01 +0000 (18:05 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 19 Jul 2019 18:05:01 +0000 (18:05 +0000)
commit01fcf9238f8007c9469f8c536aacb959ffe6769d
tree7bdb1a9085bd1ad13e4f5027310effad60a2d117
parent7df225dfc25adc8371188dc57f3adf300b0bd697
[AMDGPU] Allow register tuples to set asm names

This change reverts most of the previous register name generation.
The real problem is that RegisterTuple does not generate asm names.
Added optional operand to RegisterTuple. This way we can simplify
register name access and dramatically reduce the size of static
tables for the backend.

Differential Revision: https://reviews.llvm.org/D64967

llvm-svn: 366598
llvm/include/llvm/Target/Target.td
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.h
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.td
llvm/utils/TableGen/CodeGenRegisters.cpp