llvm-project/mlir/test/lib
Vladislav Vinogradov 59f59d1c62 [mlir] Allow to override type/attr aliases from various hooks
Use new return type for `OpAsmDialectInterface::getAlias`:

* `AliasResult::NoAlias` if an alias was not provided.
* `AliasResult::OverridableAlias` if an alias was provided, but it might be overriden by other hook.
* `AliasResult::FinalAlias` if an alias was provided and it should be used (no other hooks will be checked).

In that case `AsmPrinter` will use either the first alias with `FinalAlias` result or
the last alias with `OverridableAlias` result (it depends on dialect array order).

Used `OverridableAlias` result for `BuiltinOpAsmDialectInterface`.

Use case: provide more informative alias for built-in attributes like `AffineMapAttr`
instead of generic "map<N>".

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D107437
2021-08-06 12:05:31 +03:00
..
Analysis Migrate MLIR test passes to the new registration API 2021-06-16 23:42:17 +00:00
Conversion [mlir] factor memref-to-llvm lowering out of std-to-llvm 2021-07-09 14:49:52 +02:00
Dialect [mlir] Allow to override type/attr aliases from various hooks 2021-08-06 12:05:31 +03:00
IR Implement recursive support into OperationEquivalence::isEquivalentTo() 2021-07-29 05:06:37 +00:00
Pass Migrate MLIR test passes to the new registration API 2021-06-16 23:42:17 +00:00
Reducer [mlir][NFC] Cleanup the MLIRTestReducer pass 2021-06-23 01:29:24 +00:00
Rewrite Migrate MLIR test passes to the new registration API 2021-06-16 23:42:17 +00:00
Transforms Migrate MLIR test passes to the new registration API 2021-06-16 23:42:17 +00:00
CMakeLists.txt [mlir][NFC] Move passes in test/lib/Transforms/ to a directory that mirrors what they test 2021-05-14 10:28:11 -07:00