[AMDGPU] Reduce repetition in SMEM instruction definitions
authorJay Foad <jay.foad@amd.com>
Thu, 30 Mar 2023 11:24:53 +0000 (12:24 +0100)
committerJay Foad <jay.foad@amd.com>
Thu, 30 Mar 2023 13:47:22 +0000 (14:47 +0100)
commit939fbef3ea2ea75eeba12d3d166fc4de369a7247
tree0de62eda1d6ce50978920b586d8b68e8f0cd06ba
parent3930e3331e7173bbacb7181015d8f7ca93f4aaef
[AMDGPU] Reduce repetition in SMEM instruction definitions

This tries to remove all cases where we repeat the instruction name as
both an identifier (the tablegen name) and as a string (the assembler/
disassembler name). It uses tablegen's new !tolower operator.

Differential Revision: https://reviews.llvm.org/D147216
llvm/lib/Target/AMDGPU/SMInstructions.td