[mlir] fix memory effects of transform::PDLMatchOp
authorAlex Zinenko <zinenko@google.com>
Fri, 7 Oct 2022 08:14:30 +0000 (08:14 +0000)
committerAlex Zinenko <zinenko@google.com>
Fri, 7 Oct 2022 08:14:30 +0000 (08:14 +0000)
commitcafaa9eb7056b8ce91cf08f62da982a898ab4c95
tree465563b58b949145ccfe33651b1599d3fcf43f12
parent3512721d52b3380ea4d3f5b2419d0b7b072e7797
[mlir] fix memory effects of transform::PDLMatchOp

The op was declaring the effects associated with payload IR as attached
to its operand since ODS doesn't allow otherwise. Implement the memory
effects query method in C++ instead to make the effect not attached to
the operand.
mlir/include/mlir/Dialect/Transform/IR/TransformOps.td
mlir/lib/Dialect/Transform/IR/TransformOps.cpp