llvm-project/mlir/unittests
Alex Zinenko 9b2a1bcf6f [mlir] separable registration of attribute and type interfaces
It may be desirable to provide an interface implementation for an attribute or
a type without modifying the definition of said attribute or type. Notably,
this allows to implement interfaces for attributes and types outside of the
dialect that defines them and, in particular, provide interfaces for built-in
types. Provide the mechanism to do so.

Currently, separable registration requires the attribute or type to have been
registered with the context, i.e. for the dialect containing the attribute or
type to be loaded. This can be relaxed in the future using a mechanism similar
to delayed dialect interface registration.

See https://llvm.discourse.group/t/rfc-separable-attribute-type-interfaces/3637

Depends On D104233

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D104234
2021-06-15 15:20:27 +02:00
..
Analysis [MLIR] Support symbols in emptiness checks for FlatAffineConstraints 2021-04-08 21:38:47 +05:30
Dialect [mlir][spirv] Use SingleBlock + NoTerminator for spv.module 2021-06-09 14:00:06 -04:00
ExecutionEngine [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
IR [mlir] separable registration of attribute and type interfaces 2021-06-15 15:20:27 +02:00
Interfaces [mlir] forward data layout query to scoping op in absence of specification 2021-03-24 15:13:41 +01:00
Pass [mlir] Pass AnalysisManager as optional parameter to analysis ctor, so it can request any other analysis as dependency 2021-04-20 19:18:36 +03:00
Rewrite [mlir][Pattern] Add better support for using interfaces/traits to match root operations in rewrite patterns 2021-03-23 14:05:33 -07:00
SDBM Remove global dialect registration 2020-10-24 00:35:55 +00:00
Support [mlir][StorageUniquer] Properly call the destructor on non-trivially destructible storage instances 2021-03-11 11:35:32 -08:00
TableGen [mlir][ODS] Support specialized Attribute class for Enums 2021-03-17 16:44:24 +03:00
CMakeLists.txt [MLIR] Test pattern benefit sorting between operation specific and operation agnostic patterns. 2021-03-19 23:11:56 +03:00