[all-commits] [llvm/llvm-project] ba23ee: [MLIR][parser] Add token type and parser methods f...

Andi Drebes via All-commits all-commits at lists.llvm.org
Wed May 14 09:33:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba23eedc68ee1363ae8c31afc0f4b5071779eb0b
      https://github.com/llvm/llvm-project/commit/ba23eedc68ee1363ae8c31afc0f4b5071779eb0b
  Author: Andi Drebes <47449897+andidr at users.noreply.github.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M mlir/include/mlir/IR/OpImplementation.h
    M mlir/lib/AsmParser/AsmParserImpl.h
    M mlir/lib/AsmParser/Lexer.cpp
    M mlir/lib/AsmParser/TokenKinds.def
    M mlir/test/IR/parser.mlir
    M mlir/test/lib/Dialect/Test/TestAttrDefs.td
    M mlir/test/lib/Dialect/Test/TestAttributes.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  [MLIR][parser] Add token type and parser methods for forward slashes (#125056)

This adds a token for a forward slash to the token definition list and
the methods to `AsmParser::parseSlash()` and
`AsmParser::parseOptionalSlash()`, similar to other tokens used as
operators (e.g., star, plus, etc.). This allows implementations of
attributes that contain arithmetic expressions to support operators with
a forward slash, e.g., a division.

The newly added check tests trigger the parsing of a slash in an
attribute.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list