[llvm] [RISCV] Improve Errors for X1/X5/X1X5 Reg Classes (PR #126184)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 11:21:57 PST 2025
================
@@ -247,7 +247,11 @@ def GPR : GPRRegisterClass<(add (sequence "X%u", 10, 17),
(sequence "X%u", 0, 4))>;
def GPRX0 : GPRRegisterClass<(add X0)>;
+
+let DiagnosticType = "InvalidRegClassGPRX1" in
----------------
lenary wrote:
#126290 is a (NFC) PR to adopt DiagnosticString. I will rebase this change on that if/when it lands.
https://github.com/llvm/llvm-project/pull/126184
More information about the llvm-commits
mailing list