diff options
author | Andrzej Warzynski <andrzej.warzynski@gmail.com> | 2023-03-23 17:39:48 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@gmail.com> | 2023-03-24 08:48:55 +0000 |
commit | cf60d3f1a688671c8eb7859bf0572c403c3c0cca (patch) | |
tree | 80e18d8929349e9db019c436216cab35d6b53ccc /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | 6a7d04c6b44de91dd1188d9e614b6e681d378b0e (diff) | |
download | llvm-cf60d3f1a688671c8eb7859bf0572c403c3c0cca.zip llvm-cf60d3f1a688671c8eb7859bf0572c403c3c0cca.tar.gz llvm-cf60d3f1a688671c8eb7859bf0572c403c3c0cca.tar.bz2 |
[mlir][arith] Extend the `floordivsi` converter
This patch extends the `createConst` method so that it can generate
constant vectors (it can already generate scalars). This change is
required to be able to apply the converter for `arith.floordivsi`
(i.e. `FloorDivSIOpConverter`) to vectors.
While `arith.floordivsi` is my main motivation for this change, this
patch should also allow other Arith ops to be converted in vector cases.
In my example, the Linalg vectorizer updates `arith.floordivsi` to
operate on vectors and hence the need for this change.
Differential Revision: https://reviews.llvm.org/D146741
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions