llvm-project/mlir
Alex Zinenko 547e3eef14 [mlir] Expose MemRef layout in Python bindings
This wasn't possible before because there was no support for affine expressions
as maps. Now that this support is available, provide the mechanism for
constructing maps with a layout and inspecting it.

Rework the `get` method on MemRefType in Python to avoid needing an explicit
memory space or layout map. Remove the `get_num_maps`, it is too low-level,
using the length of the now-avaiable pseudo-list of layout maps is more
pythonic.

Depends On D94297

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D94302
2021-01-11 19:57:16 +01:00
..
cmake/modules [MLIR][NFC] remove unnecessary includes form tablegen command 2021-01-08 14:25:52 +01:00
docs [mlir] Add a hook for initializing passes before execution and use it in the Canonicalizer 2021-01-08 13:36:12 -08:00
examples [mlir] replace LLVMIntegerType with built-in integer type 2021-01-07 19:48:31 +01:00
include [mlir] Expose MemRef layout in Python bindings 2021-01-11 19:57:16 +01:00
integration_test [mlir][vector] modified scatter/gather syntax, pass_thru mandatory 2021-01-09 11:41:37 -08:00
lib [mlir] Expose MemRef layout in Python bindings 2021-01-11 19:57:16 +01:00
test [mlir] Expose MemRef layout in Python bindings 2021-01-11 19:57:16 +01:00
tools [mlir][linalg] Support parsing attributes in named op spec 2021-01-11 09:05:20 -05:00
unittests [mlir][ODS] Rename several uses of 'description' to 'summary' 2021-01-06 14:18:58 -08:00
utils [mlir] Move `std.tensor_cast` -> `tensor.cast`. 2020-12-17 16:06:56 -08:00
.clang-format
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt [mlir][Python] Check numpy in Python bindings configuration. 2020-12-02 09:29:20 +08:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.