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
Paths
| Differential D115295
[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, Depends On D115294
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 20 others. · View Herald TranscriptDec 7 2021, 3:19 PM rriddle added a child revision: D115296: [PDLL] Add support for `op` Operation expressions.Dec 7 2021, 3:20 PM This revision is now accepted and ready to land.Dec 7 2021, 11:59 PM This revision was landed with ongoing or failed builds.Dec 15 2021, 6:17 PM Closed by commit rGd7e7fdf3aaaf: [PDLL] Add support for literal Attribute and Type expressions (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 394703 mlir/include/mlir/Tools/PDLL/AST/Nodes.h
mlir/lib/Tools/PDLL/AST/NodePrinter.cpp
mlir/lib/Tools/PDLL/AST/Nodes.cpp
mlir/lib/Tools/PDLL/Parser/Parser.cpp
mlir/test/mlir-pdll/Parser/expr-failure.pdll
mlir/test/mlir-pdll/Parser/expr.pdll
|
nit:nl