[mlir][MemRef][TransformOps] Fix error reporting for multibuffer
authorQuentin Colombet <quentin.colombet@gmail.com>
Fri, 10 Feb 2023 12:43:33 +0000 (13:43 +0100)
committerQuentin Colombet <quentin.colombet@gmail.com>
Mon, 13 Feb 2023 11:28:10 +0000 (12:28 +0100)
commit8b28500f60b716a353b733a0111aae6a4a5e9854
tree1a1138d9a5d7e36051df488c77cbe4cb697a6731
parent4c273cd071150912fd6f1e4aee12148cf78a6410
[mlir][MemRef][TransformOps] Fix error reporting for multibuffer

Multibuffer will fail to apply on allocs that are used outside of loops.
This was properly caught in the current implementation but the way we report
it was broken.
Notes cannot be emitted on their own, they need to be attached to another
main diagnostic.

Long story short, change the severity of the report from Note to Error.

Differential Revision: https://reviews.llvm.org/D143729
mlir/lib/Dialect/MemRef/TransformOps/MemRefTransformOps.cpp
mlir/test/Dialect/MemRef/transform-ops.mlir