This statement acts as a companion to the existing erase
statement, and is the corresponding PDLL construct for the
PatternRewriter::replaceOp C++ API. This statement replaces a
given operation with a set of values.
Depends On D115297
Paths
| Differential D115298
[PDLL] Add a `replace` rewrite statement for replacing operations ClosedPublic Authored by rriddle on Dec 7 2021, 3:22 PM.
Details Summary This statement acts as a companion to the existing erase Depends On D115297
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 20 others. · View Herald TranscriptDec 7 2021, 3:22 PM rriddle added a child revision: D115299: [PDLL] Add a `rewrite` statement to enable complex rewrites.Dec 7 2021, 3:23 PM This revision is now accepted and ready to land.Dec 8 2021, 4:42 AM Comment Actions It would be good to add a multi-op replacement example utilizing single op replacement too This revision was landed with ongoing or failed builds.Dec 15 2021, 6:17 PM Closed by commit rG12eebb8e378a: [PDLL] Add a `replace` rewrite statement for replacing operations (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 394706 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/stmt-failure.pdll
mlir/test/mlir-pdll/Parser/stmt.pdll
|
nl