aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2023-03-06 12:38:18 +0100
committerMatthias Springer <me@m-sp.org>2023-03-06 13:46:08 +0100
commit42c31d8302ff8f716601df9c276a5cd9ace6b158 (patch)
tree334ef25f4c65639d701db16a1907180e4b43693c /lldb/source/Plugins/ScriptInterpreter/Python
parent036431e31e65049e61b2cdfaf511ebf47143e106 (diff)
downloadllvm-42c31d8302ff8f716601df9c276a5cd9ace6b158.zip
llvm-42c31d8302ff8f716601df9c276a5cd9ace6b158.tar.gz
llvm-42c31d8302ff8f716601df9c276a5cd9ace6b158.tar.bz2
[mlir][IR] Clean up mergeBlockBefore and mergeBlocks
* `RewriterBase::mergeBlocks` is simplified: it is implemented in terms of `mergeBlockBefore`. * The signature of `mergeBlockBefore` is consistent with other API (such as `inlineRegionBefore`): an overload for a `Block::iterator` is added. * Additional safety checks are added to `mergeBlockBefore`: detect cases where the resulting IR could be invalid (no more `dropAllUses`) or partly unreachable (likely a case of incorrect API usage). * Rename `mergeBlockBefore` to `inlineBlockBefore`. Differential Revision: https://reviews.llvm.org/D144969
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions