[Mlir-commits] [mlir] 67760bb - [mlir] Use OpBuilderDAG for MemRefReinterpretCastOp.
Alexander Belyaev
llvmlistbot at llvm.org
Wed Oct 28 13:42:25 PDT 2020
Author: Alexander Belyaev
Date: 2020-10-28T21:42:14+01:00
New Revision: 67760bb2d68de76bd73febb2e489502d6409c8d7
URL: https://github.com/llvm/llvm-project/commit/67760bb2d68de76bd73febb2e489502d6409c8d7
DIFF: https://github.com/llvm/llvm-project/commit/67760bb2d68de76bd73febb2e489502d6409c8d7.diff
LOG: [mlir] Use OpBuilderDAG for MemRefReinterpretCastOp.
Added:
Modified:
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
index c5ad72aa02fc..3b749c232dca 100644
--- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
+++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
@@ -2265,15 +2265,15 @@ def MemRefReinterpretCastOp:
let builders = [
// Build a ReinterpretCastOp with mixed static and dynamic entries.
- OpBuilder<
- "MemRefType resultType, Value source, int64_t staticOffset, "
- "ArrayRef<int64_t> staticSizes, ArrayRef<int64_t> staticStrides, "
- "ValueRange offset, ValueRange sizes, ValueRange strides, "
- "ArrayRef<NamedAttribute> attrs = {}">,
+ OpBuilderDAG<(ins "MemRefType":$resultType, "Value":$source,
+ "int64_t":$staticOffset, "ArrayRef<int64_t>":$staticSizes,
+ "ArrayRef<int64_t>":$staticStrides, "ValueRange":$offset,
+ "ValueRange":$sizes, "ValueRange":$strides,
+ CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>,
// Build a ReinterpretCastOp with all dynamic entries.
- OpBuilder<
- "MemRefType resultType, Value source, Value offset, ValueRange sizes, "
- "ValueRange strides, ArrayRef<NamedAttribute> attrs = {}">,
+ OpBuilderDAG<(ins "MemRefType":$resultType, "Value":$source,
+ "Value":$offset, "ValueRange":$sizes, "ValueRange":$strides,
+ CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>,
];
let extraClassDeclaration = extraBaseClassDeclaration # [{
More information about the Mlir-commits
mailing list