[Mlir-commits] [mlir] 0a06068 - [MLIR] Remove the unused `ArithmeticCastOp`.
Alexandre Rames
llvmlistbot at llvm.org
Wed Oct 27 10:56:02 PDT 2021
Author: Alexandre Rames
Date: 2021-10-27T10:55:56-07:00
New Revision: 0a06068ac76617fabe689a3b8a167fca81600a21
URL: https://github.com/llvm/llvm-project/commit/0a06068ac76617fabe689a3b8a167fca81600a21
DIFF: https://github.com/llvm/llvm-project/commit/0a06068ac76617fabe689a3b8a167fca81600a21.diff
LOG: [MLIR] Remove the unused `ArithmeticCastOp`.
This was deprecated as part of a54f4eae0e1d0ef5adccdcf9f6c2b518dc1101aa.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D112638
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 48fa58b537724..985bd8207ffdc 100644
--- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
+++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
@@ -44,33 +44,6 @@ class Std_Op<string mnemonic, list<OpTrait> traits = []> :
let parser = [{ return ::parse$cppClass(parser, result); }];
}
-// Base class for arithmetic cast operations. Requires single operand and
-// result, but does not constrain them to specific types.
-class ArithmeticCastOp<string mnemonic, list<OpTrait> traits = []> :
- Std_Op<mnemonic, traits # ElementwiseMappable.traits # [
- DeclareOpInterfaceMethods<VectorUnrollOpInterface>,
- NoSideEffect, SameOperandsAndResultShape,
- DeclareOpInterfaceMethods<CastOpInterface>]> {
- let arguments = (ins AnyType:$in);
- let results = (outs AnyType:$out);
-
- let builders = [
- OpBuilder<(ins "Value":$source, "Type":$destType), [{
- impl::buildCastOp($_builder, $_state, source, destType);
- }]>
- ];
-
- let parser = [{
- return impl::parseCastOp(parser, result);
- }];
- let printer = [{
- return printStandardCastOp(this->getOperation(), p);
- }];
-
- // Cast operations are fully verified by its traits.
- let verifier = ?;
-}
-
// Base class for unary ops. Requires single operand and result. Individual
// classes will have `operand` accessor.
class UnaryOp<string mnemonic, list<OpTrait> traits = []> :
More information about the Mlir-commits
mailing list