llvm-project/mlir
Sean Silva dfbb5a087e [mlir] Remove SameOperandsAndResultShape when redundant with ElementwiseMappable
SameOperandsAndResultShape and ElementwiseMappable have similar
verification, but in general neither is strictly redundant with the
other.

Examples:
- SameOperandsAndResultShape allows
  `"foo"(%0) : tensor<2xf32> -> tensor<?xf32> but ElementwiseMappable
  does not.
- ElementwiseMappable allows
  `select %scalar_pred, %true_tensor, %false_tensor` but
  SameOperandsAndResultShape does not.

SameOperandsAndResultShape is redundant with ElementwiseMappable when
we can prove that the mixed scalar/non-scalar case cannot happen. In
those situations, `ElementwiseMappable & SameOperandsAndResultShape ==
ElementwiseMappable`:
- Ops with 1 operand: the case of mixed scalar and non-scalar operands
  cannot happen since there is only one operand.
- When SameTypeOperands is also present, the mixed scalar/non-scalar
  operand case cannot happen.

Differential Revision: https://reviews.llvm.org/D91396
2020-11-24 13:53:22 -08:00
..
cmake/modules [mlir][Python] Fix the last remaining instance of PYTHON_EXECUTABLE. 2020-11-24 17:56:05 +00:00
docs [mlir][Python] Support finding pybind11 from the python environment. 2020-11-22 12:52:01 -08:00
examples [mlir][BuiltinDialect] Resolve comments from D91571 2020-11-19 11:12:49 -08:00
include [mlir] Remove SameOperandsAndResultShape when redundant with ElementwiseMappable 2020-11-24 13:53:22 -08:00
integration_test [mlir] Fix async microbench integration test 2020-11-21 07:02:24 -08:00
lib [mlir][sparse] generalize invariant expression handling in sparse compiler 2020-11-24 13:41:14 -08:00
test [mlir] Remove SameOperandsAndResultShape when redundant with ElementwiseMappable 2020-11-24 13:53:22 -08:00
tools [MLIR] Fix TableGen generator for attribute interfaces. 2020-11-24 14:06:35 +01:00
unittests [mlir][BuiltinDialect] Resolve comments from D91571 2020-11-19 11:12:49 -08:00
utils [mlir] Fix TypeID lookup in GDB pretty printers. 2020-10-27 07:12:32 +01: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] Fix the last remaining instance of PYTHON_EXECUTABLE. 2020-11-24 17:56:05 +00: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.