<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64543>64543</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[MLIR] Canonicalizer does not copy over rewrite listener from the config
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Kuree
</td>
</tr>
</table>
<pre>
https://github.com/llvm/llvm-project/blob/211c9752c8200fbb3ff7be1f6aa98037901758ce/mlir/lib/Transforms/Canonicalizer.cpp#L54-L60
`listener` is not copied over and therefore disallows the use cases where we want to insert attributes to newly created operations.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUksGu1CAUhp-Gbsht6KHQdtHF1UkT47gxvgDQ0xkMA82B3mZ8etPq1bh0A8kP_IHvw-TsbxFxZOoDU5fKbOWeaPy8EWJl0_wc76WsmclXBhOD6ebLfbO1Sw8GUwhv79PLSuk7usJgsiFZBhM0jRs6Ba4HIRZr5bJ0FptFGzP0QnaDaDrVO2QwPYKno8cf576RiXlJ9MgMpo8mpuidCf4HUu3WlYG8qvblqgUTFyZef49aBJ8LRiSmBfeZx1S4S6vHmac3JG7izMsdCZdEyGefTQhpz0fGt4zcmYyZ78cOviPfTSy8JO5jRirclELebgXzEUbcw5M7QlOO-hXJFJ9irqt5lPMgB1Ph2OihUSAl6Oo-KqeGDq3qYB76XqhOg8RFaC2GZnDCVH4EAVL0om8GqUDX1inVNbrvdAemXSxrBT6MD_UBu050q3zOG466Va2sgrEY8ukQIOLOz0UGcCil8RRkt1tm7ckp_20pvoRT_pfrp69MXfg_xPmc8A_L5y-ShDv5gvwdOF8oPU6OLsXF36qNwv9_mvPCh_HzQT8DAAD__0Yx17M">