llvm-project/mlir/lib/TableGen
Matthias Springer 108ca7a7e7 [mlir] Support dialect-wide canonicalization pattern registration
* Add `hasCanonicalizer` option to Dialect.
* Initialize canonicalizer with dialect-wide canonicalization patterns.
* Add test case to TestDialect.

Dialect-wide canonicalization patterns are useful if a canonicalization pattern does not conceptually associate with any single operation, i.e., it should not be registered as part of an operation's `getCanonicalizationPatterns` function. E.g., this is the case for canonicalization patterns that match an op interface.

Differential Revision: https://reviews.llvm.org/D103226
2021-05-27 17:35:21 +09:00
..
Argument.cpp [MLIR][NFC] Remove tblgen:: prefix in TableGen/*.cpp files 2020-08-12 14:41:18 -07:00
AttrOrTypeDef.cpp [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs 2021-04-15 11:41:51 -07:00
Attribute.cpp [mlir][ODS] Support specialized Attribute class for Enums 2021-03-17 16:44:24 +03:00
Builder.cpp [mlir][ODS] Add a C++ abstraction for OpBuilders 2021-01-11 12:06:22 -08:00
CMakeLists.txt [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs 2021-04-15 11:41:51 -07:00
Constraint.cpp [mlir][ODS] Rename several uses of 'description' to 'summary' 2021-01-06 14:18:58 -08:00
Dialect.cpp [mlir] Support dialect-wide canonicalization pattern registration 2021-05-27 17:35:21 +09:00
Format.cpp [mlir][ODS] Get rid of limitations in rewriters generator 2021-03-18 12:21:06 +03:00
Interfaces.cpp [mlir][ODS] Add support for specifying the namespace of an interface. 2020-07-12 14:18:32 -07:00
OpClass.cpp [mlir][ODS] Use StringLiteral instead of StringRef when applicable 2021-03-03 16:15:12 +03:00
Operator.cpp [mlir][ODS]: Add per-op cppNamespace. 2021-05-11 10:48:05 -07:00
Pass.cpp Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00
Pattern.cpp Support NativeCodeCall binding in rewrite pattern. 2021-05-10 09:29:27 +08:00
Predicate.cpp [mlir][PDL] Add support for variadic operands and results in the PDL Interpreter 2021-03-16 13:20:19 -07:00
Region.cpp [mlir][ODS] Add support for variadic regions. 2020-04-05 01:03:38 -07:00
SideEffects.cpp [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs 2021-04-15 11:41:51 -07:00
Successor.cpp [llvm][ADT] Move TypeSwitch class from MLIR to LLVM 2020-04-14 15:14:41 -07:00
Trait.cpp [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs 2021-04-15 11:41:51 -07:00
Type.cpp [mlir][ODS] Fix the use of cppClassName in Type constraints for TypeDefs 2021-01-06 14:18:58 -08:00