[all-commits] [llvm/llvm-project] 7e3e9d: [AMDGPU] Change getLdStRegisterOperand to !cond fo...
Joe Nash via All-commits
all-commits at lists.llvm.org
Fri Jun 14 06:33:24 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7e3e9d43086d21f9996a52f0d4f24e0edeb34991
https://github.com/llvm/llvm-project/commit/7e3e9d43086d21f9996a52f0d4f24e0edeb34991
Author: Joe Nash <joseph.nash at amd.com>
Date: 2024-06-14 (Fri, 14 Jun 2024)
Changed paths:
M llvm/lib/Target/AMDGPU/BUFInstructions.td
M llvm/lib/Target/AMDGPU/SIInstrInfo.td
Log Message:
-----------
[AMDGPU] Change getLdStRegisterOperand to !cond for better diagnostic (#95475)
If you would hit the unexpected case in these !if trees, you'd get an
error message like "error: Not a known RegisterClass! def VReg_1..."
This can happen when changing code quite indirectly related to these
class definitions. We can use !cond here, which has a builtin facility
to throw an error if no case in the !cond statement is hit.
NFC.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list