llvm-project/mlir/lib
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
..
Analysis [mlir][Analysis] Allow Slice Analysis to work with linalg::LinalgOp 2020-09-10 18:54:22 -07:00
Bindings Extend PyConcreteType to support intermediate base classes. 2020-09-06 23:39:47 -07:00
CAPI [mlir] Add Shaped Type, Tensor Type and MemRef Type to python bindings. 2020-09-06 11:45:54 -07:00
Conversion [mlir] Fix some edge cases around 0-element TensorFromElementsOp 2020-09-11 10:58:35 -07:00
Dialect [mlir] Fix some edge cases around 0-element TensorFromElementsOp 2020-09-11 10:58:35 -07:00
EDSC Remove MLIREDSCInterface library which isn't used anywhere (NFC) 2020-08-18 19:04:30 +00:00
ExecutionEngine Preserve the error message when MemoryBuffer creation fails 2020-08-21 18:03:25 +00:00
IR [MLIR] Add debug support for ignored patterns 2020-09-09 07:18:30 +00:00
Interfaces Wordsmith RegionBranchOpInterface verification errors 2020-09-09 12:50:23 -07:00
Parser Store an Identifier instead of a StringRef for the OperationName inside an AbstractOperation (NFC) 2020-09-02 19:10:56 +00:00
Pass Decouple OpPassManager from the the MLIRContext (NFC) 2020-09-03 06:02:05 +00:00
Reducer Create Reduction Tree Pass 2020-08-07 23:17:31 +00:00
Support Add more explicit error message when creating a type or attribute for an unregistered dialect (NFC) 2020-09-08 16:59:26 +00:00
TableGen Allow Dialects to be initialized via nullptr. 2020-09-10 19:14:53 +00:00
Target [mlir][ODS] Use c++ types for integer attributes of fixed width when possible. 2020-09-01 13:43:32 -07:00
Transforms [mlir] Added support for loops to BufferPlacement transformation. 2020-09-09 10:53:35 +02:00
Translation Add a `dialect_registration` callback for "translations" registered with mlir-translate 2020-08-23 01:00:39 +00:00
CMakeLists.txt Initial boiler-plate for python bindings. 2020-07-09 12:03:58 -07:00