llvm-project
94fa1a12 - [TableGen][AMDGPU][RFC] Declare the AGPR register sequence

Commit
70 days ago
[TableGen][AMDGPU][RFC] Declare the AGPR register sequence Same as the previous patch, for the AGPRs. Again this needs no code changes, only the declaration, and again every AGPR tuple width forms a full-length block. The number of sequence blocks goes from 26 to 39, and they now cover 16,763 of AMDGPU's 21,267 registers. Comparing the generated tables before and after: MCRegisterDesc descriptors 7,746 -> 4,543 (-41.4%) RegDiffLists cells 66,376 -> 39,192 (-41.0%) In bytes, for the three tables that change: MCRegisterDesc 185,904 -> 109,032 RegDescIndexes 42,534 -> 42,534 RegDiffLists 132,752 -> 78,384 total 361,190 -> 229,950 (-36.3%) Taken with the patch before it, the three tables now come to 229,950 bytes where they came to 731,374 with only the SGPRs declared, a reduction of 69%. AMDGPUGenRegisterInfoEnums.inc goes from 465KB to 205KB. The test updates are the same rename as for the VGPRs, with $agpr0_agpr1 becoming $agpr0_64 and so on, and there are far fewer of them: 56 files against 777. Tuples over registers that do not follow one another keep their old names, because they form no block. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Author
Committer
Parents
Loading