[mlir] Forward listeners when utilizing scf::IfOp::get*BodyBuilder.
authorTres Popp <tpopp@google.com>
Fri, 9 Oct 2020 13:37:42 +0000 (15:37 +0200)
committerTres Popp <tpopp@google.com>
Fri, 9 Oct 2020 16:03:01 +0000 (18:03 +0200)
commit46dd827232e73135eca1b6f05dc5bebdb277c9db
tree3af3ad674676c406a996bb6b10eb58b9c67b33f4
parent8a836daaa97bc979cd589f5efb060d2223225d8d
[mlir] Forward listeners when utilizing scf::IfOp::get*BodyBuilder.

Without this PatternRewriting infrastructure does not know of modifications and
cannot properly legalize nor rollback changes.

Differential Revision: https://reviews.llvm.org/D89129
mlir/include/mlir/Dialect/SCF/SCFOps.td