You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[mlir][vector] Always print the in_bounds attribute
This patch updates the printer for vector ops attributes so that the
`in_bounds` attribute, when present, is always printed (regardless of the
contents).
ATM, an attribute with all values equal `false`, e.g. `in_bounds =
{false, false}`, wouldn't be printed. This makes testing certain
behaviours impossible (i.e. to make sure that the attribute is correctly
preserved/transformed by patterns that modify it). See e.g. #12345
Separately, it's not clear whether the absence of the `in_bounds`
attribute in the printed IR is meant to mean that:
* the attribute is absent,
* the attribute is present and set to all-true,
* the attribute is present and set to all-false.
By making sure that the attribute is always present, we are removing
this ambiguity.
0 commit comments