[Mlir-commits] [mlir] 898f74c - [mlir] NFC: update ::build signature in the tutorial document
Alex Zinenko
llvmlistbot at llvm.org
Tue May 5 02:23:30 PDT 2020
Author: Alex Zinenko
Date: 2020-05-05T11:22:14+02:00
New Revision: 898f74c35dc5102ebd8247d114612a15673c9b7a
URL: https://github.com/llvm/llvm-project/commit/898f74c35dc5102ebd8247d114612a15673c9b7a
DIFF: https://github.com/llvm/llvm-project/commit/898f74c35dc5102ebd8247d114612a15673c9b7a.diff
LOG: [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 *.
Added:
Modified:
mlir/docs/Tutorials/Toy/Ch-2.md
Removed:
################################################################################
diff --git a/mlir/docs/Tutorials/Toy/Ch-2.md b/mlir/docs/Tutorials/Toy/Ch-2.md
index 796b489a6256..4265b06c4e8b 100755
--- a/mlir/docs/Tutorials/Toy/Ch-2.md
+++ b/mlir/docs/Tutorials/Toy/Ch-2.md
@@ -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);
};
```
More information about the Mlir-commits
mailing list