diff options
author | Nicolas Vasilache <ntv@google.com> | 2022-03-08 12:40:12 -0500 |
---|---|---|
committer | Nicolas Vasilache <ntv@google.com> | 2022-03-08 12:52:51 -0500 |
commit | eb6a3c0c0c71ab44141e71112ecd0a2ae2848037 (patch) | |
tree | 9065269e906dc28810dd6b29dfb157c0a8fc4df9 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 550b2eaaa6e402ce664fe55c038e5fe387258af7 (diff) | |
download | llvm-eb6a3c0c0c71ab44141e71112ecd0a2ae2848037.zip llvm-eb6a3c0c0c71ab44141e71112ecd0a2ae2848037.tar.gz llvm-eb6a3c0c0c71ab44141e71112ecd0a2ae2848037.tar.bz2 |
[mlir][Linalg] Add a polymorphic linalg.copy operation
With the recent improvements to OpDSL it is cheap to reintroduce a linalg.copy operation.
This operation is needed in at least 2 cases:
1. for copies that may want to change the elemental type (e.g. cast, truncate, quantize, etc)
2. to specify new tensors that should bufferize to a copy operation. The linalg.generic form
always folds away which is not always the right call.
Differential Revision: https://reviews.llvm.org/D121230
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions