================ @@ -403,6 +403,7 @@ void DefFormat::genLiteralParser(StringRef value, FmtContext &ctx, .Case("]", "RSquare") .Case("?", "Question") .Case("+", "Plus") + .Case("-", "Minus") ---------------- Meinersbur wrote:
I am confident the omission is accidental. The `-` token can already be parsed using `hasCustomAssemblyFormat = 1` and calling https://github.com/llvm/llvm-project/blob/3bfcbfc327ad5ca8bcec086a6d837f105d58e801/mlir/lib/AsmParser/AsmParserImpl.h#L239-L242 The omission here only means that one could not use the `-` token in `assemblyFormat` to let mlir-tblgen generate the parser for you. It will actually generate a call to the `parseMinus` function above. https://github.com/llvm/llvm-project/pull/160292 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits