[mlir][Vector] Allow lowering of vector.shape_cast 2D <-> 1D
authorNicolas Vasilache <ntv@google.com>
Mon, 9 Mar 2020 17:13:56 +0000 (13:13 -0400)
committerNicolas Vasilache <ntv@google.com>
Mon, 9 Mar 2020 17:14:39 +0000 (13:14 -0400)
commit90322403c203ac180b31930f148555d13e03b121
tree5c6146f173a484de71e2105a5d26659e06eb34fa
parent55622fd4f311ab06e5d043c09b851a97a0e7b5fa
[mlir][Vector] Allow lowering of vector.shape_cast 2D <-> 1D

Summary:
This will support the progressive lowering of:
```
vector.contract ->
  downcast + vector.matrix_multiply + upcast ->
    llvm.intr.matrix
```

Differential Revision: https://reviews.llvm.org/D75776
mlir/include/mlir/Dialect/VectorOps/VectorOps.td
mlir/lib/Dialect/VectorOps/VectorTransforms.cpp
mlir/test/Dialect/VectorOps/vector-contract-transforms.mlir