[llvm] [ARM][TableGen][MC] Change the ARM mnemonic operands to be optional for ASM parsing (PR #83436)

Simon Tatham via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 03:56:41 PDT 2024


================
@@ -1347,6 +1368,14 @@ class ARMOperand : public MCParsedAsmOperand {
   bool isRegListWithAPSR() const {
     return Kind == k_RegisterListWithAPSR || Kind == k_RegisterList;
   }
+  bool isDReg() const {
+    return isReg() &&
+           ARMMCRegisterClasses[ARM::QPRRegClassID].contains(Reg.RegNum);
----------------
statham-arm wrote:

This looks identical to `isQReg` below – it still checks against `QPRRegClassID`. Shouldn't it have a different id?

https://github.com/llvm/llvm-project/pull/83436


More information about the llvm-commits mailing list