diff options
author | Max191 <44243577+Max191@users.noreply.github.com> | 2025-06-24 15:06:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-24 12:06:41 -0700 |
commit | 4d21da002a056c64231fb89ee9e4eba90080e9bb (patch) | |
tree | 6c59f788add9a3de9505a881a6863c39e0b932f3 /clang/lib/Serialization/ASTWriter.cpp | |
parent | 280f60ed6d99cda3a26138d6df103e6d2a58490a (diff) | |
download | llvm-4d21da002a056c64231fb89ee9e4eba90080e9bb.zip llvm-4d21da002a056c64231fb89ee9e4eba90080e9bb.tar.gz llvm-4d21da002a056c64231fb89ee9e4eba90080e9bb.tar.bz2 |
[mlir] Return vectorized values instead of replacing (#144158)
Updates the linalg::vectorize function to return a
`FailureOr<VectorizationResult>` containing the values to replace the
original operation, instead of directly replacing the original
operation. This aligns better with the style of transforms used with the
TilingInterface, and gives more control to users over the lowering,
since it allows for additional transformation of the IR before
replacement.
There was already a `VectorizationResult` defined, which was used for
the internal vectorize implementation using `CustomVectorizationHook`s,
so the old struct is renamed to `VectorizationHookResult`.
Note for integration: The replacement of the original operation is now
the responsibility of the caller, so wherever `linalg::vectorize` is
used, the caller must also do
`rewriter.replaceOp(vectorizeResults->replacements)`.
---------
Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
0 files changed, 0 insertions, 0 deletions