llvm-project/mlir
Stella Laurenzo 71b6b010e6 [mlir][python] Factor out standalone OpView._ods_build_default class method.
* This allows us to hoist trait level information for regions and sized-variadic to class level attributes (_ODS_REGIONS, _ODS_OPERAND_SEGMENTS, _ODS_RESULT_SEGMENTS).
* Eliminates some splicey python generated code in favor of a native helper for it.
* Makes it possible to implement custom, variadic and region based builders with one line of python, without needing to manually code access to the segment attributes.
* Needs follow-on work for region based callbacks and support for SingleBlockImplicitTerminator.
* A follow-up will actually add ODS support for generating custom Python builders that delegate to this new method.
* Also includes the start of an e2e sample for constructing linalg ops where this limitation was discovered (working progressively through this example and cleaning up as I go).

Differential Revision: https://reviews.llvm.org/D94738
2021-01-19 09:29:57 -08:00
..
cmake/modules Enable python bindings for tensor, shape and linalg dialects. 2021-01-11 12:35:49 -08:00
docs [mlir][python] Factor out standalone OpView._ods_build_default class method. 2021-01-19 09:29:57 -08:00
examples [mlir][python] Factor out standalone OpView._ods_build_default class method. 2021-01-19 09:29:57 -08:00
include [MLIR][SPIRV] Add `SignedOp` trait. 2021-01-19 17:40:40 +01:00
integration_test [mlir][sparse] improved sparse runtime support library 2021-01-16 12:16:10 -08:00
lib [mlir][python] Factor out standalone OpView._ods_build_default class method. 2021-01-19 09:29:57 -08:00
test [mlir][python] Factor out standalone OpView._ods_build_default class method. 2021-01-19 09:29:57 -08:00
tools [mlir][python] Factor out standalone OpView._ods_build_default class method. 2021-01-19 09:29:57 -08:00
unittests [MLIR] Support checking if two FlatAffineConstraints are equal 2021-01-18 21:46:01 +05:30
utils [mlir] Add better support for f80 and f128 2021-01-15 10:29:48 -05: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] Fix cross-compilation (Linalg ODS gen) 2021-01-18 11:57:55 +01: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.