Skip to content

Commit 56e56d7

Browse files
committed
Remove unnecessary interface
1 parent e6c78b5 commit 56e56d7

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

mlir/include/mlir/Dialect/Arith/IR/ArithOps.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ class Arith_IntBinaryOpWithOverflowFlags<string mnemonic, list<Trait> traits = [
160160

161161
class Arith_IntBinaryOpWithExactFlag<string mnemonic, list<Trait> traits = []> :
162162
Arith_BinaryOp<mnemonic, traits #
163-
[DeclareOpInterfaceMethods<InferIntRangeInterface, ["inferResultRanges"]>,
164-
DeclareOpInterfaceMethods<ArithExactFlagInterface>]>,
163+
[DeclareOpInterfaceMethods<InferIntRangeInterface, ["inferResultRanges"]>]>,
165164
Arguments<(ins SignlessIntegerOrIndexLike:$lhs,
166165
SignlessIntegerOrIndexLike:$rhs,
167166
UnitAttr:$isExact)>,

mlir/include/mlir/Dialect/Arith/IR/ArithOpsInterfaces.td

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -139,38 +139,4 @@ def ArithRoundingModeInterface : OpInterface<"ArithRoundingModeInterface"> {
139139
];
140140
}
141141

142-
def ArithExactFlagInterface : OpInterface<"ArithExactFlagInterface"> {
143-
let description = [{
144-
Access to op exact flag.
145-
}];
146-
147-
let cppNamespace = "::mlir::arith";
148-
149-
let methods = [
150-
InterfaceMethod<
151-
/*desc=*/ "Returns whether the operation has the exact flag",
152-
/*returnType=*/ "bool",
153-
/*methodName=*/ "hasExactFlag",
154-
/*args=*/ (ins),
155-
/*methodBody=*/ [{}],
156-
/*defaultImpl=*/ [{
157-
auto op = cast<ConcreteOp>(this->getOperation());
158-
return op.getIsExact();
159-
}]
160-
>,
161-
StaticInterfaceMethod<
162-
/*desc=*/ [{Returns the name of the 'exact' attribute
163-
for the operation}],
164-
/*returnType=*/ "StringRef",
165-
/*methodName=*/ "getExactAttrName",
166-
/*args=*/ (ins),
167-
/*methodBody=*/ [{}],
168-
/*defaultImpl=*/ [{
169-
return "isExact";
170-
}]
171-
>
172-
173-
];
174-
}
175-
176142
#endif // ARITH_OPS_INTERFACES

0 commit comments

Comments
 (0)