diff options
author | Joe Nash <joseph.nash@amd.com> | 2024-06-14 09:33:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 09:33:03 -0400 |
commit | 7e3e9d43086d21f9996a52f0d4f24e0edeb34991 (patch) | |
tree | 1d7e40b960a17e2849d942fe44017285d9fe1eb1 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | c81d5b11cf7caf82749638752d819a061fdf4d9e (diff) | |
download | llvm-7e3e9d43086d21f9996a52f0d4f24e0edeb34991.zip llvm-7e3e9d43086d21f9996a52f0d4f24e0edeb34991.tar.gz llvm-7e3e9d43086d21f9996a52f0d4f24e0edeb34991.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions