[AMDGPU] Don't bother to use OffsetMode to define Real SMEM instructions
authorJay Foad <jay.foad@amd.com>
Thu, 30 Mar 2023 16:31:33 +0000 (17:31 +0100)
committerJay Foad <jay.foad@amd.com>
Fri, 31 Mar 2023 14:00:30 +0000 (15:00 +0100)
commitbdf52b5dfe4c9d1074e51cd432c5364d8e69462a
treeb9c02a673daf1b9c383327fe779304b994b75c00
parent8bad806f298c4ddc476c708ece0664e21924ba41
[AMDGPU] Don't bother to use OffsetMode to define Real SMEM instructions

Various Real classes took an OffsetMode parameter, but only used it
to extract the suffix for the name of the corresponding pseudo. I found
this confusing because you couldn't usefully define and use a different
OffsetMode here, e.g. one with different operand types to affect how the
instruction was printed.

Overall I think it's simpler to just pass in the suffixed pseudo name
directly.

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