diff options
author | Sean Silva <silvasean@google.com> | 2020-11-03 18:17:55 -0800 |
---|---|---|
committer | Sean Silva <silvasean@google.com> | 2020-11-10 13:44:44 -0800 |
commit | b4fa28b408662a638f7d835b302db08633ccb91e (patch) | |
tree | 58859120aec45aa5983f7081669afe09cf1fa1e8 /llvm/lib/CodeGen/SafeStack.cpp | |
parent | 8262e94a6da77e176dbd13d9eadce76da74489d4 (diff) | |
download | llvm-b4fa28b408662a638f7d835b302db08633ccb91e.zip llvm-b4fa28b408662a638f7d835b302db08633ccb91e.tar.gz llvm-b4fa28b408662a638f7d835b302db08633ccb91e.tar.bz2 |
[mlir] Add ElementwiseMappable trait and apply it to std elementwise ops.
This patch adds an `ElementwiseMappable` trait as discussed in the RFC
here:
https://llvm.discourse.group/t/rfc-std-elementwise-ops-on-tensors/2113/23
This trait can power a number of transformations and analyses.
A subsequent patch adds a convert-elementwise-to-linalg pass exhibits
how this trait allows writing generic transformations.
See https://reviews.llvm.org/D90354 for that patch.
This trait slightly changes some verifier messages, but the diagnostics
are usually about as good. I fiddled with the ordering of the trait in
the .td file trait lists to minimize the changes here.
Differential Revision: https://reviews.llvm.org/D90731
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
0 files changed, 0 insertions, 0 deletions