[all-commits] [llvm/llvm-project] 58abc8: [OpAsmParser] Add a parseCommaSeparatedList helper...

Chris Lattner via All-commits all-commits at lists.llvm.org
Mon Sep 20 20:59:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58abc8c34bde7021bbfa0a7bdfd2af9524cba263
      https://github.com/llvm/llvm-project/commit/58abc8c34bde7021bbfa0a7bdfd2af9524cba263
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M mlir/include/mlir/IR/OpImplementation.h
    M mlir/lib/Dialect/Async/IR/Async.cpp
    M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
    M mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/lib/Parser/AffineParser.cpp
    M mlir/lib/Parser/AttributeParser.cpp
    M mlir/lib/Parser/LocationParser.cpp
    M mlir/lib/Parser/Parser.cpp
    M mlir/lib/Parser/Parser.h
    M mlir/lib/Parser/TypeParser.cpp
    M mlir/test/IR/invalid-affinemap.mlir
    M mlir/test/IR/invalid.mlir

  Log Message:
  -----------
  [OpAsmParser] Add a parseCommaSeparatedList helper and beef up Delimeter.

Lots of custom ops have hand-rolled comma-delimited parsing loops, as does
the MLIR parser itself.  Provides a standard interface for doing this that
is less error prone and less boilerplate.

While here, extend Delimiter to support <> and {} delimited sequences as
well (I have a use for <> in CIRCT specifically).

Differential Revision: https://reviews.llvm.org/D110122




More information about the All-commits mailing list