llvm-project/mlir/unittests
River Riddle 77eee5795e [mlir] Refactor DialectRegistry delayed interface support into a general DialectExtension mechanism
The current dialect registry allows for attaching delayed interfaces, that are added to attrs/dialects/ops/etc.
when the owning dialect gets loaded. This is clunky for quite a few reasons, e.g. each interface type has a
separate tracking structure, and is also quite limiting. This commit refactors this delayed mutation of
dialect constructs into a more general DialectExtension mechanism. This mechanism is essentially a registration
callback that is invoked when a set of dialects have been loaded. This allows for attaching interfaces directly
on the loaded constructs, and also allows for loading new dependent dialects. The latter of which is
extremely useful as it will now enable dependent dialects to only apply in the contexts in which they
are necessary. For example, a dialect dependency can now be conditional on if a user actually needs the
interface that relies on it.

Differential Revision: https://reviews.llvm.org/D120367
2022-03-16 22:15:25 -07:00
..
Analysis [MLIR][Presburger] Add support for PresburgerRelation 2022-03-13 17:31:19 +05:30
Conversion [mlir] Trim a huge number of unnecessary dependencies on the Func dialect 2022-03-01 12:10:04 -08:00
Dialect [MLIR][Presburger] Add support for PresburgerRelation 2022-03-13 17:31:19 +05:30
ExecutionEngine [mlir] Move the Builtin FuncOp to the Func dialect 2022-03-16 17:07:03 -07:00
IR [mlir] Refactor DialectRegistry delayed interface support into a general DialectExtension mechanism 2022-03-16 22:15:25 -07:00
Interfaces [mlir][NFC] Update the Builtin dialect to use "Both" accessors 2022-03-08 12:25:32 -08:00
Pass [mlir] Move the Builtin FuncOp to the Func dialect 2022-03-16 17:07:03 -07:00
Rewrite Fix memory leaks in MLIR unit-tests (NFC) 2021-10-02 21:31:46 +00:00
Support [MLIR] Add forgotten directory Support to unittests cmake 2021-12-27 14:42:48 +05:30
TableGen [mlir] Add ODS support for enum attributes with grouped bit cases 2022-01-26 21:01:01 +00:00
Transforms Update more `parseSourceString()` call sites. 2022-03-08 13:25:54 +01:00
CMakeLists.txt Mark some MLIR tests as requiring the native target to be configured 2022-01-14 07:23:14 +00:00