This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add AnyAttrOf tablegen attribute constraint
ClosedPublic

Authored by math-fehr on Oct 13 2021, 9:29 AM.

Details

Summary

AnyAttrOf, similar to AnyTypeOf, expects the attribute to be one of the
given attributes.
For instance, AnyAttrOf<[I32Attr, StrAttr]> expects either a I32Attr,
or a StrAttr.

Diff Detail

Event Timeline

math-fehr created this revision.Oct 13 2021, 9:29 AM
math-fehr requested review of this revision.Oct 13 2021, 9:29 AM
rriddle accepted this revision.Oct 13 2021, 12:28 PM
This revision is now accepted and ready to land.Oct 13 2021, 12:28 PM

Thanks, would it be possible to land it for me?

This revision was automatically updated to reflect the committed changes.