llvm-project/mlir/test/lib/Dialect
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
..
Affine [MLIR] Introduce a new rewrite driver to simplify supplied list of ops 2021-07-21 20:25:16 +05:30
DLTI Migrate MLIR test passes to the new registration API 2021-06-16 23:42:17 +00:00
GPU [MLIR] Split out GPU ops library from Transforms 2021-07-07 11:26:49 +05:30
Linalg [MLIR] Introduce a new rewrite driver to simplify supplied list of ops 2021-07-21 20:25:16 +05:30
Math [mlir] Math: add algebraic simplification patterns to math transforms 2021-07-27 09:22:33 -07:00
SCF [mlir] Add software pipelining transformation for scf.For op 2021-07-19 13:43:26 -07:00
SPIRV [mlir][spirv] Fix a few issues in ModuleCombiner 2021-07-28 10:31:01 -04:00
Shape Migrate MLIR test passes to the new registration API 2021-06-16 23:42:17 +00:00
StandardOps Migrate MLIR test passes to the new registration API 2021-06-16 23:42:17 +00:00
Test [mlir] Allow to override type/attr aliases from various hooks 2021-08-06 12:05:31 +03:00
Tosa [mlir][tosa] Add tosa shape inference with InferReturnTypeComponent 2021-07-01 16:04:26 -07:00
Vector [mlir][vector] Remove vector.transfer_read/write to LLVM lowering 2021-07-17 14:07:27 +09: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