llvm-project/mlir
Sean Silva 84a6da67e6 [mlir] Fix some edge cases around 0-element TensorFromElementsOp
This introduces a builder for the more general case that supports zero
elements (where the element type can't be inferred from the ValueRange,
since it might be empty).

Also, fix up some cases in ShapeToStandard lowering that hit this. It
happens very easily when dealing with shapes of 0-D tensors.

The SameOperandsAndResultElementType is redundant with the new
TypesMatchWith and prevented having zero elements.

Differential Revision: https://reviews.llvm.org/D87492
2020-09-11 10:58:35 -07:00
..
cmake/modules
docs
examples
include [mlir] Fix some edge cases around 0-element TensorFromElementsOp 2020-09-11 10:58:35 -07:00
integration_test
lib [mlir] Fix some edge cases around 0-element TensorFromElementsOp 2020-09-11 10:58:35 -07:00
test [mlir] Fix some edge cases around 0-element TensorFromElementsOp 2020-09-11 10:58:35 -07:00
tools
unittests
utils
.clang-format
.clang-tidy
CMakeLists.txt
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

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