[all-commits] [llvm/llvm-project] 431c8d: [mlir][IR] Add support for UnknownLoc to `verify-d...

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Apr 7 03:03:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 431c8dd0736c61176831750783d1195b9aa1a308
      https://github.com/llvm/llvm-project/commit/431c8dd0736c61176831750783d1195b9aa1a308
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    M mlir/include/mlir/IR/Diagnostics.h
    M mlir/lib/IR/Diagnostics.cpp
    R mlir/test/Conversion/MemRefToLLVM/invalid-uint.mlir
    M mlir/test/Conversion/MemRefToLLVM/invalid.mlir
    R mlir/test/Conversion/MemRefToLLVM/issue-70160.mlir

  Log Message:
  -----------
  [mlir][IR] Add support for UnknownLoc to `verify-diagnostics` (#134421)

Diagnostics at unknown locations can now be verified with
`-verify-diagnostics`.

Example:
```
// expected-error at unknown {{something went wrong}}
```

Also clean up some MemRefToLLVM conversion tests that had to redirect
all errors to stdout in order to FileCheck them. All of those tests can
now be stored in a single `invalid.mlir`. That was not possible before.



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