[llvm] [ARM][TableGen][MC] Change the ARM mnemonic operands to be optional for ASM parsing (PR #83436)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 04:56:41 PST 2024
================
@@ -155,7 +155,12 @@ def iflags_op : Operand<i32> {
// ARM Predicate operand. Default to 14 = always (AL). Second part is CC
// register whose default is 0 (no register).
-def CondCodeOperand : AsmOperandClass { let Name = "CondCode"; }
+def CondCodeOperand : AsmOperandClass {
+ let Name = "CondCode";
+ let PredicateMethod = "isCondCode";
----------------
s-barannikov wrote:
Looks redundant (the name of the method should be correctly inferred).
https://github.com/llvm/llvm-project/pull/83436
More information about the llvm-commits
mailing list