[mlir] NFC: update ::build signature in the tutorial document
authorAlex Zinenko <zinenko@google.com>
Tue, 5 May 2020 09:22:14 +0000 (11:22 +0200)
committerAlex Zinenko <zinenko@google.com>
Tue, 5 May 2020 09:22:14 +0000 (11:22 +0200)
This was missing from the original commit that changed the interface of
`::build` methods to take `OpBuilder &` instead of `Builder *.

mlir/docs/Tutorials/Toy/Ch-2.md

index 796b489..4265b06 100755 (executable)
@@ -238,13 +238,13 @@ class ConstantOp : public mlir::Op<ConstantOp,
   /// operations. This state is a collection of all of the discrete elements
   /// that an operation may contain.
   /// Build a constant with the given return type and `value` attribute.
-  static void build(mlir::Builder *builder, mlir::OperationState &state,
+  static void build(mlir::OpBuilder &builder, mlir::OperationState &state,
                     mlir::Type result, mlir::DenseElementsAttr value);
   /// Build a constant and reuse the type from the given 'value'.
-  static void build(mlir::Builder *builder, mlir::OperationState &state,
+  static void build(mlir::OpBuilder &builder, mlir::OperationState &state,
                     mlir::DenseElementsAttr value);
   /// Build a constant by broadcasting the given 'value'.
-  static void build(mlir::Builder *builder, mlir::OperationState &state,
+  static void build(mlir::OpBuilder &builder, mlir::OperationState &state,
                     double value);
 };
 ```