[Mlir-commits] [mlir] [MLIR][TableGen] Make optional enum parser not consume the token when it is not matched (PR #188008)

Krzysztof Drewniak llvmlistbot at llvm.org
Mon Mar 23 08:38:35 PDT 2026


================
@@ -961,6 +967,12 @@ class AsmParser {
   /// Parse an optional keyword or string.
   virtual ParseResult parseOptionalKeywordOrString(std::string *result) = 0;
 
+  /// Parse an optional keyword or string, if present, and if one of the
----------------
krzysz00 wrote:

Similar rewording note. (also, LLVM style likes the comments to be sentences that end with a period)

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


More information about the Mlir-commits mailing list