llvm-project/mlir/lib/Conversion
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
..
AVX512ToLLVM [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
AffineToStandard [mlir][ODS] Use c++ types for integer attributes of fixed width when possible. 2020-09-01 13:43:32 -07:00
GPUCommon [mlir][ODS] Use c++ types for integer attributes of fixed width when possible. 2020-09-01 13:43:32 -07:00
GPUToNVVM Added std.floor operation to match std.ceil 2020-08-18 10:25:32 -07:00
GPUToROCDL Added std.floor operation to match std.ceil 2020-08-18 10:25:32 -07:00
GPUToSPIRV [MLIR][GPUToSPIRV] Fix use-after-free. Found by asan. 2020-08-27 17:57:11 +02:00
GPUToVulkan [mlir][GPUToVulkan] Fix signature of bindMemRef function for f16 2020-08-21 10:48:00 -07:00
LinalgToLLVM [MLIR][Standard] Add `dynamic_tensor_from_elements` operation 2020-09-07 11:44:43 +00:00
LinalgToSPIRV [mlir][ODS] Use c++ types for integer attributes of fixed width when possible. 2020-09-01 13:43:32 -07:00
LinalgToStandard Introduce linalg.vecmat 2020-09-10 18:48:14 +02:00
OpenMPToLLVM [OpenMP][MLIR] Conversion pattern for OpenMP to LLVM 2020-08-27 19:32:15 +01:00
SCFToGPU [MLIR] Add argument related API to Region 2020-07-14 09:28:29 -07:00
SCFToSPIRV [mlir][spirv] Infer converted type of scf.for from the init value 2020-08-25 23:35:01 -07:00
SCFToStandard [MLIR][Standard] Add `dynamic_tensor_from_elements` operation 2020-09-07 11:44:43 +00:00
SPIRVToLLVM [mlir][ODS] Use c++ types for integer attributes of fixed width when possible. 2020-09-01 13:43:32 -07:00
ShapeToStandard [mlir] Fix some edge cases around 0-element TensorFromElementsOp 2020-09-11 10:58:35 -07:00
StandardToLLVM Rename MemRefDescriptor::getElementType() to MemRefDescriptor::getElementPtrType(). 2020-09-09 11:45:39 +02:00
StandardToSPIRV Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00
VectorToLLVM Rename MemRefDescriptor::getElementType() to MemRefDescriptor::getElementPtrType(). 2020-09-09 11:45:39 +02:00
VectorToROCDL [mlir] Remove most uses of LLVMDialect::getModule 2020-08-06 10:54:30 +02:00
VectorToSCF [mlir][VectorOps] Fix more GCC5 weirdness 2020-09-08 15:41:39 +02:00
CMakeLists.txt [MLIR][Shape] Merge `shape` to `std`/`scf` lowerings. 2020-09-07 14:39:37 +00:00
PassDetail.h Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00