[Mlir-commits] [mlir] 6296e10 - [mlir][Vector] Remove Vector TupleOp as it is unused
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Jul 13 12:39:38 PDT 2021
Author: thomasraoux
Date: 2021-07-13T12:39:12-07:00
New Revision: 6296e109728d58805004739530b8f265c6a130b9
URL: https://github.com/llvm/llvm-project/commit/6296e109728d58805004739530b8f265c6a130b9
DIFF: https://github.com/llvm/llvm-project/commit/6296e109728d58805004739530b8f265c6a130b9.diff
LOG: [mlir][Vector] Remove Vector TupleOp as it is unused
TupleOp is not used anymore after recent refactoring.
Differential Revision: https://reviews.llvm.org/D105924
Added:
Modified:
mlir/include/mlir/Dialect/Vector/VectorOps.td
mlir/lib/Dialect/Vector/VectorOps.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Vector/VectorOps.td b/mlir/include/mlir/Dialect/Vector/VectorOps.td
index e19a3ab376d12..9fc20647c81d5 100644
--- a/mlir/include/mlir/Dialect/Vector/VectorOps.td
+++ b/mlir/include/mlir/Dialect/Vector/VectorOps.td
@@ -2101,39 +2101,6 @@ def Vector_CreateMaskOp :
let assemblyFormat = "$operands attr-dict `:` type(results)";
}
-def Vector_TupleOp :
- Vector_Op<"tuple", [NoSideEffect]>,
- Arguments<(ins Variadic<AnyVector>:$vectors)>,
- Results<(outs TupleOf<[AnyVector]>)> {
- let summary = "make tuple of vectors operation";
- let description = [{
- Returns a tuple of its operands 'vectors'.
-
- Note that this operation is used during the vector op unrolling
- transformation and should be removed before lowering to lower-level
- dialects.
-
-
- Example:
-
- ```mlir
- %0 = vector.transfer_read ... : vector<2x2xf32>
- %1 = vector.transfer_read ... : vector<2x1xf32>
- %2 = vector.transfer_read ... : vector<2x2xf32>
- %3 = vector.transfer_read ... : vector<2x1xf32>
-
- %4 = vector.tuple %0, %1, %2, %3
- : vector<2x2xf32>, vector<2x1xf32>, vector<2x2xf32>, vector<2x1xf32>
- ```
- }];
-
- let extraClassDeclaration = [{
- TupleType getResultTupleType() {
- return getResult().getType().cast<TupleType>();
- }
- }];
-}
-
def Vector_TransposeOp :
Vector_Op<"transpose", [NoSideEffect,
PredOpTrait<"operand and result have same element type",
diff --git a/mlir/lib/Dialect/Vector/VectorOps.cpp b/mlir/lib/Dialect/Vector/VectorOps.cpp
index 000c7fa2e639d..1674f0e0bef15 100644
--- a/mlir/lib/Dialect/Vector/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/VectorOps.cpp
@@ -3506,33 +3506,6 @@ static LogicalResult verify(TypeCastOp op) {
return success();
}
-//===----------------------------------------------------------------------===//
-// TupleOp
-//===----------------------------------------------------------------------===//
-
-static ParseResult parseTupleOp(OpAsmParser &parser, OperationState &result) {
- SmallVector<OpAsmParser::OperandType, 4> operandInfos;
- SmallVector<Type, 4> types;
- auto loc = parser.getCurrentLocation();
- auto *ctx = parser.getBuilder().getContext();
- return failure(
- parser.parseOperandList(operandInfos) ||
- parser.parseOptionalAttrDict(result.attributes) ||
- parser.parseColonTypeList(types) ||
- parser.resolveOperands(operandInfos, types, loc, result.operands) ||
- parser.addTypeToList(TupleType::get(ctx, types), result.types));
-}
-
-static void print(OpAsmPrinter &p, TupleOp op) {
- p << op.getOperationName() << ' ';
- p.printOperands(op.getOperands());
- p.printOptionalAttrDict(op->getAttrs());
- p << " : ";
- llvm::interleaveComma(op->getOperandTypes(), p);
-}
-
-static LogicalResult verify(TupleOp op) { return success(); }
-
//===----------------------------------------------------------------------===//
// TransposeOp
//===----------------------------------------------------------------------===//
More information about the Mlir-commits
mailing list