This is an archive of the discontinued LLVM Phabricator instance.

[PDLL] Add support for literal Attribute and Type expressions
ClosedPublic

Authored by rriddle on Dec 7 2021, 3:19 PM.

Details

Summary

This allows for using literal attributes and types within PDLL,
which simplifies building both constraints and rewriters. For
example, checking if an attribute is true is as simple as
attr<"true">.

Depends On D115294

Diff Detail

Event Timeline

rriddle created this revision.Dec 7 2021, 3:19 PM
rriddle requested review of this revision.Dec 7 2021, 3:19 PM
nicolasvasilache accepted this revision.Dec 7 2021, 11:59 PM
nicolasvasilache added inline comments.
mlir/test/mlir-pdll/Parser/expr-failure.pdll
99

nit:nl

This revision is now accepted and ready to land.Dec 7 2021, 11:59 PM
Mogball accepted this revision.Dec 10 2021, 8:15 AM
jpienaar accepted this revision.Dec 12 2021, 6:01 PM
This revision was landed with ongoing or failed builds.Dec 15 2021, 6:17 PM
This revision was automatically updated to reflect the committed changes.