llvm-project/mlir/lib
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
..
Analysis [mlir] NFC: fix trivial typos 2021-01-08 02:10:12 +09:00
Bindings [mlir] Expose MemRef layout in Python bindings 2021-01-11 19:57:16 +01:00
CAPI [mlir] Expose MemRef layout in Python bindings 2021-01-11 19:57:16 +01:00
Conversion [mlir] Fix gpu-to-llvm lowering for gpu.alloc with dynamic sizes. 2021-01-11 15:55:48 +01:00
Dialect [mlir][Linalg] Fix reshape fusion to reshape the outs instead of creating new tensors. 2021-01-11 09:26:22 -08:00
EDSC [mlir][linalg] Add vectorization for element-wise linalg ops 2020-12-03 15:31:13 -08:00
ExecutionEngine [mlir] AsyncRuntime: use LLVM ThreadPool to run async tasks 2021-01-09 02:39:52 -08:00
IR [mlir] NFC: fix trivial typos 2021-01-08 02:10:12 +09:00
Interfaces [mlir][Linalg] Define a linalg.init_tensor operation. 2020-12-17 14:45:51 -08:00
Parser [IR Parser] Fix a crash handling zero width integer attributes. 2021-01-10 21:18:01 -08:00
Pass [mlir][PassManager] Properly set the initialization generation when cloning a pass manager 2021-01-08 14:41:29 -08:00
Reducer [mlir] NFC: fix trivial typos 2020-10-29 04:05:22 +09:00
Rewrite [mlir][PDL] Use ODS for defining PDL types 2021-01-08 12:32:28 -08:00
Support [mlir] Add option to read reproducer options from file 2020-12-30 10:46:01 -08:00
TableGen [mlir][ODS] Fix missed rename of TypeParameter 'description' to 'summary' 2021-01-06 22:25:06 -08:00
Target [MLIR][SPIRV] Add (de-)serialization support for SpecConstantOpeation. 2021-01-11 07:37:50 +01:00
Transforms [mlir] Add a hook for initializing passes before execution and use it in the Canonicalizer 2021-01-08 13:36:12 -08:00
Translation [mlir] Print the correct tool name in mlirTranslateMain 2021-01-05 19:17:01 -08:00
CMakeLists.txt [mlir][NFC] Move around the code related to PatternRewriting to improve layering 2020-10-26 18:01:06 -07:00