llvm/mlir/tools
Nicolas Vasilache 5f9e0466f2 [mlir][Vector] Fix vector.transfer alignment calculation
https://reviews.llvm.org/D79246 introduces alignment propagation for vector transfer operations. Unfortunately, the alignment calculation is incorrect and can result in crashes.

This revision fixes the calculation by using the natural alignment of the memref elemental type, instead of the resulting vector type.

If more alignment is desired, it can be done in 2 ways:
1. use a proper vector.type_cast to transform a memref<axbxcxdxf32> into a memref<axbxvector<cxdxf32>> giving a natural alignment of vector<cxdxf32>
2. add an alignment attribute to vector transfer operations and propagate it.

With this change the alignment in the relevant tests goes down from 128 to 4.

Lastly, a few minor cleanups are performed and the custom `isMinorIdentityMap` is deprecated.

Differential Revision: https://reviews.llvm.org/D80734
2020-05-28 17:58:51 -04:00
..
mlir-cpu-runner [MLIR] Move JitRunner to live with ExecutionEngine 2020-05-15 14:37:10 -07:00
mlir-cuda-runner [mlir][gpu][mlir-cuda-runner] Refactor ConvertKernelFuncToCubin to be generic. 2020-05-28 09:08:28 -05:00
mlir-linalg-ods-gen [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-opt [mlir][Vector] Fix vector.transfer alignment calculation 2020-05-28 17:58:51 -04:00
mlir-shlib [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-tblgen [mlir] Use ValueRange instead of ArrayRef<Value> 2020-05-28 09:05:24 -07:00
mlir-translate [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-vulkan-runner [mlir][vulkan-runner] Minor fix in timestamp flag for vulkan runner. 2020-05-19 18:56:48 -07:00
CMakeLists.txt [mlir][Linalg] Create a tool to generate named Linalg ops from a Tensor Comprehensions-like specification. 2020-04-10 13:59:25 -04:00