<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57015>57015</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [PDL] Support optional attribute matching and rewriting
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir:core
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            Mogball
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Mogball
      </td>
    </tr>
</table>

<pre>
    `pdl.attr` doesn't support optional attributes. It should with a syntax like

```
%optionalAttr = pdl.attr ?
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1T9FqxCAQ_Bp9kQY1mrs8-HDlOCi0UOgXmGgSWxODrr3e39e75igUCou74-jOTBfMRaGGrsZXGiCWkZhg04L4DkjK6xoikLCCC4v25PrEdRlsqshT4aeQvSFnBxPRJF0W0F_Euw-L6BHRw3Y2dKsfyOV93aFsI6g-krt6Aac_n7BVrJFt29K6Ydio2rR1qzE48FYh-fh6fEbySN7-dUpmDf3klpHoxZBoz9FBQThHryaANaG6eDqVGkuM3FV9mAvw_vPeHtYY3m0PBbqUsk1lkDvKJJ6UqAXlTIrBMlHTYaiN7DnbScNE37FBYK8769PVKeJ89i4WuT5EW1DxjZ3ilHO6p_vSG0orzjrNW9NLNhhh6B4JamftfHV1UoU44qhupro8pkJ6lyD9kjolNy7WboIvYey095uYzjCFqLZLfAujbkm-AUW0ors">