[PATCH] D110805: [MLIR] Fix unused tablegen template arg warnings
Cullen Rhodes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 4 03:23:58 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd023298b61b3: [MLIR] Fix unused tablegen template arg warnings (authored by c-rhodes).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110805/new/
https://reviews.llvm.org/D110805
Files:
mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
mlir/include/mlir/IR/OpBase.td
Index: mlir/include/mlir/IR/OpBase.td
===================================================================
--- mlir/include/mlir/IR/OpBase.td
+++ mlir/include/mlir/IR/OpBase.td
@@ -2083,8 +2083,7 @@
// declarations should be generated. This class takes an optional set of methods
// that should have declarations generated even if the method has a default
// implementation.
-class DeclareInterfaceMethods<Interface interface,
- list<string> overridenMethods = []> {
+class DeclareInterfaceMethods<list<string> overridenMethods = []> {
// This field contains a set of method names that should always have their
// declarations generated. This allows for generating declarations for
// methods with default implementations that need to be overridden.
@@ -2092,7 +2091,7 @@
}
class DeclareAttrInterfaceMethods<AttrInterface interface,
list<string> overridenMethods = []>
- : DeclareInterfaceMethods<interface, overridenMethods>,
+ : DeclareInterfaceMethods<overridenMethods>,
AttrInterface<interface.cppClassName> {
let description = interface.description;
let cppClassName = interface.cppClassName;
@@ -2101,7 +2100,7 @@
}
class DeclareOpInterfaceMethods<OpInterface interface,
list<string> overridenMethods = []>
- : DeclareInterfaceMethods<interface, overridenMethods>,
+ : DeclareInterfaceMethods<overridenMethods>,
OpInterface<interface.cppClassName> {
let description = interface.description;
let cppClassName = interface.cppClassName;
@@ -2110,7 +2109,7 @@
}
class DeclareTypeInterfaceMethods<TypeInterface interface,
list<string> overridenMethods = []>
- : DeclareInterfaceMethods<interface, overridenMethods>,
+ : DeclareInterfaceMethods<overridenMethods>,
TypeInterface<interface.cppClassName> {
let description = interface.description;
let cppClassName = interface.cppClassName;
Index: mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
===================================================================
--- mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
+++ mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
@@ -149,7 +149,7 @@
AnyTypeOf<types>.predicate,
VectorOf<types>.predicate,
TensorOf<types>.predicate]>,
- "signless-integer-32-like">;
+ description>;
def Tosa_Int8Like : Tosa_TypeLike<[Tosa_Int8], "signless-integer-8-bit-like">;
def Tosa_Int16Like : Tosa_TypeLike<[Tosa_Int16], "signless-integer-16-bit-like">;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110805.376849.patch
Type: text/x-patch
Size: 2608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211004/c79fa58f/attachment.bin>
More information about the llvm-commits
mailing list