Skip to content

Commit 898f74c

Browse files
committed
[mlir] NFC: update ::build signature in the tutorial document
This was missing from the original commit that changed the interface of `::build` methods to take `OpBuilder &` instead of `Builder *.
1 parent 834debf commit 898f74c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,13 @@ class ConstantOp : public mlir::Op<ConstantOp,
238238
/// operations. This state is a collection of all of the discrete elements
239239
/// that an operation may contain.
240240
/// Build a constant with the given return type and `value` attribute.
241-
static void build(mlir::Builder *builder, mlir::OperationState &state,
241+
static void build(mlir::OpBuilder &builder, mlir::OperationState &state,
242242
mlir::Type result, mlir::DenseElementsAttr value);
243243
/// Build a constant and reuse the type from the given 'value'.
244-
static void build(mlir::Builder *builder, mlir::OperationState &state,
244+
static void build(mlir::OpBuilder &builder, mlir::OperationState &state,
245245
mlir::DenseElementsAttr value);
246246
/// Build a constant by broadcasting the given 'value'.
247-
static void build(mlir::Builder *builder, mlir::OperationState &state,
247+
static void build(mlir::OpBuilder &builder, mlir::OperationState &state,
248248
double value);
249249
};
250250
```

0 commit comments

Comments
 (0)