File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed
include/mlir/Dialect/EmitC/Transforms
lib/Dialect/EmitC/Transforms Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 1414namespace mlir {
1515namespace emitc {
1616
17- // ===----------------------------------------------------------------------===//
18- // Passes
19- // ===----------------------------------------------------------------------===//
20-
21- // / Creates an instance of the C-style expressions forming pass.
22- std::unique_ptr<Pass> createFormExpressionsPass ();
17+ #define GEN_PASS_DECL_FORMEXPRESSIONSPASS
18+ #include " mlir/Dialect/EmitC/Transforms/Passes.h.inc"
2319
2420// ===----------------------------------------------------------------------===//
2521// Registration
Original file line number Diff line number Diff line change 1111
1212include "mlir/Pass/PassBase.td"
1313
14- def FormExpressions : Pass<"form-expressions"> {
14+ def FormExpressionsPass : Pass<"form-expressions"> {
1515 let summary = "Form C-style expressions from C-operator ops";
1616 let description = [{
1717 The pass wraps emitc ops modelling C operators in emitc.expression ops and
1818 then folds single-use expressions into their users where possible.
1919 }];
20- let constructor = "mlir::emitc::createFormExpressionsPass()";
2120 let dependentDialects = ["emitc::EmitCDialect"];
2221}
2322
Original file line number Diff line number Diff line change 1818
1919namespace mlir {
2020namespace emitc {
21- #define GEN_PASS_DEF_FORMEXPRESSIONS
21+ #define GEN_PASS_DEF_FORMEXPRESSIONSPASS
2222#include " mlir/Dialect/EmitC/Transforms/Passes.h.inc"
2323} // namespace emitc
2424} // namespace mlir
@@ -28,7 +28,7 @@ using namespace emitc;
2828
2929namespace {
3030struct FormExpressionsPass
31- : public emitc::impl::FormExpressionsBase <FormExpressionsPass> {
31+ : public emitc::impl::FormExpressionsPassBase <FormExpressionsPass> {
3232 void runOnOperation () override {
3333 Operation *rootOp = getOperation ();
3434 MLIRContext *context = rootOp->getContext ();
@@ -56,7 +56,3 @@ struct FormExpressionsPass
5656 }
5757};
5858} // namespace
59-
60- std::unique_ptr<Pass> mlir::emitc::createFormExpressionsPass () {
61- return std::make_unique<FormExpressionsPass>();
62- }
You can’t perform that action at this time.
0 commit comments