[all-commits] [llvm/llvm-project] 7306dc: [mlir] Add support for regex within `expected-*` d...
River Riddle via All-commits
all-commits at lists.llvm.org
Mon Jul 11 21:23:37 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7306dc91e091421779b5a28fde8dad6aa73aa56f
https://github.com/llvm/llvm-project/commit/7306dc91e091421779b5a28fde8dad6aa73aa56f
Author: River Riddle <riddleriver at gmail.com>
Date: 2022-07-11 (Mon, 11 Jul 2022)
Changed paths:
M mlir/docs/Diagnostics.md
M mlir/lib/IR/Diagnostics.cpp
M mlir/test/Dialect/SPIRV/IR/memory-ops.mlir
A mlir/test/IR/diagnostic-handler-verify-regex.mlir
Log Message:
-----------
[mlir] Add support for regex within `expected-*` diagnostics
This can be enabled by using a `-re` suffix when defining the expected line,
e.g. `expected-error-re`. This support is similar to what clang provides in its "expected"
diagnostic framework(e.g. the `-re` is also the same). The regex definitions themselves are
similar to FileCheck in that regex blocks are specified within `{{` `}}` blocks.
Differential Revision: https://reviews.llvm.org/D129343
More information about the All-commits
mailing list