[all-commits] [llvm/llvm-project] 86445e: [AsmParser] Adopt emitWrongTokenError more, improv...

Chris Lattner via All-commits all-commits at lists.llvm.org
Wed May 11 12:43:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86445e8c63c7a15456149c88b99af03933268c5d
      https://github.com/llvm/llvm-project/commit/86445e8c63c7a15456149c88b99af03933268c5d
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M mlir/lib/Parser/AffineParser.cpp
    M mlir/lib/Parser/AttributeParser.cpp
    M mlir/lib/Parser/DialectSymbolParser.cpp
    M mlir/lib/Parser/LocationParser.cpp
    M mlir/lib/Parser/TypeParser.cpp
    M mlir/test/Dialect/SPIRV/IR/glsl-ops.mlir
    M mlir/test/Dialect/SPIRV/IR/logical-ops.mlir
    M mlir/test/Dialect/SPIRV/IR/misc-ops.mlir
    M mlir/test/Dialect/SPIRV/IR/ocl-ops.mlir
    M mlir/test/IR/invalid-locations.mlir
    M mlir/test/IR/invalid.mlir

  Log Message:
  -----------
  [AsmParser] Adopt emitWrongTokenError more, improving QoI

This is a full audit of emitError calls, I took the opportunity
to remove extranous parens and fix a couple cases where we'd
generate multiple diagnostics for the same error.

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




More information about the All-commits mailing list