[PATCH] D15755: TableGen: Add IsOptional field to AsmOperandClass

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 23 13:19:29 PST 2015


arsenm added a subscriber: arsenm.

================
Comment at: include/llvm/Target/Target.td:608-611
@@ -607,2 +607,6 @@
   string DiagnosticType = "";
+
+  /// Set to 1 if this operand is optional and not always required.  Optional
+  /// operands must be at the end of the operand list.
+  bit IsOptional = 0;
 }
----------------
This comment should have more detail. Is this just talking about the assembler? What default value is used?


http://reviews.llvm.org/D15755





More information about the llvm-commits mailing list