diff options
author | Matthias Springer <me@m-sp.org> | 2025-04-22 09:12:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 09:12:00 +0200 |
commit | 2d3bbb6aafbc74ef6fc51286f09def0f0e35fe14 (patch) | |
tree | e6d74ae6adc2d17d6b285afbbe9c77d8326ec02e /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 8639b365a5988932973a82ffe5e620a9c8ef9039 (diff) | |
download | llvm-2d3bbb6aafbc74ef6fc51286f09def0f0e35fe14.zip llvm-2d3bbb6aafbc74ef6fc51286f09def0f0e35fe14.tar.gz llvm-2d3bbb6aafbc74ef6fc51286f09def0f0e35fe14.tar.bz2 |
[mlir][Transforms] Dialect conversion: Erase materialized constants instead of rollback (#136489)
When illegal (and not legalizable) constant operations are materialized
during a dialect conversion as part of op folding, these operations must
be deleted again. This used to be implemented via the rollback
mechanism. This commit switches the implementation to regular rewriter
API usage: simply delete the materialized constants with `eraseOp`.
This commit is in preparation of the One-Shot Dialect Conversion
refactoring, which will disallow IR rollbacks.
This commit also adds a new optional parameter to `OpBuilder::tryFold`
to get hold of the materialized constant ops.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions