llvm-project/mlir
Stella Laurenzo 52586c46b0 [mlir][CAPI] Add result type inference to the CAPI.
* Adds a flag to MlirOperationState to enable result type inference using the InferTypeOpInterface.
* I chose this level of implementation for a couple of reasons:
  a) In the creation flow is naturally where generated and custom builder code will be invoking such a thing
  b) it is a bit more efficient to share the data structure and unpacking vs having a standalone entry-point
  c) we can always decide to expose more of these interfaces with first-class APIs, but that doesn't preclude that we will always want to use this one in this way (and less API surface area for common things is better for API stability and evolution).
* I struggled to find an appropriate way to test it since we don't link the test dialect into anything CAPI accessible at present. I opted instead for one of the simplest ops I found in a regular dialect which implements the interface.
* This does not do any trait-based type selection. That will be left to generated tablegen wrappers.

Differential Revision: https://reviews.llvm.org/D95283
2021-01-23 14:30:51 -08:00
..
cmake/modules Enable python bindings for tensor, shape and linalg dialects. 2021-01-11 12:35:49 -08:00
docs [mlir][OpFormatGen] Add support for anchoring optional groups with types 2021-01-22 12:07:27 -08:00
examples [mlir] Add an interface for Cast-Like operations 2021-01-20 16:28:17 -08:00
include [mlir][CAPI] Add result type inference to the CAPI. 2021-01-23 14:30:51 -08:00
integration_test [mlir][sparse] improved sparse runtime support library 2021-01-16 12:16:10 -08:00
lib [mlir][CAPI] Add result type inference to the CAPI. 2021-01-23 14:30:51 -08:00
test [mlir][CAPI] Add result type inference to the CAPI. 2021-01-23 14:30:51 -08:00
tools [mlir][OpFormatGen] Add support for anchoring optional groups with types 2021-01-22 12:07:27 -08:00
unittests [MLIR] Add support for extracting an integer sample point (if one exists) from an unbounded FlatAffineConstraints. 2021-01-22 22:28:38 +05:30
utils [mlir][spirv] Fix script for availability autogen and refresh ops 2021-01-22 13:07:36 -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.