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

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 19 23:54:35 PST 2026


================
@@ -947,8 +947,6 @@ class AsmOperandClass {
   /// instruction if it hasn't matched all the operands yet.  However, this
   /// error will be suppressed if all of the remaining unmatched operands are
   /// marked as IsOptional.
-  ///
-  /// Optional arguments must be at the end of the operand list.
----------------
woruyu wrote:

Ask a question, could you share why it’s no longer needed? Does the matcher now allow optional operands to appear in the middle, or is the “optional operands must be trailing” rule still true and the comment just became outdated?

If there’s a motivating example or test case for optional operands in the middle, I’d love to take a look.

Thanks again!

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


More information about the llvm-commits mailing list