diff options
Diffstat (limited to 'mlir/docs/Interfaces.md')
-rw-r--r-- | mlir/docs/Interfaces.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/docs/Interfaces.md b/mlir/docs/Interfaces.md index bf590ac..7e1c5fe 100644 --- a/mlir/docs/Interfaces.md +++ b/mlir/docs/Interfaces.md @@ -563,7 +563,7 @@ def MyInterface : OpInterface<"MyInterface"> { template <typename ConcreteOp> struct Model : public Concept { Operation *create(OpBuilder &builder, Location loc) const override { - return builder.create<ConcreteOp>(loc); + return ConcreteOp::create(builder, loc); } } }; @@ -574,7 +574,7 @@ def MyInterface : OpInterface<"MyInterface"> { }], "Operation *", "create", (ins "OpBuilder &":$builder, "Location":$loc), /*methodBody=*/[{ - return builder.create<ConcreteOp>(loc); + return ConcreteOp::create(builder, loc); }]>, InterfaceMethod<[{ |