[mlir][IR] Set insertion point when erasing an operation (#146955)

Erasing the operation to which the current insertion point is set,
leaves the insertion point in an invalid state. This commit resets the
insertion point to the following operation.

Also adjust the insertion point when inlining a block.

GitOrigin-RevId: a7c9563995cdeb2b74202ad47bf262152e0870e6
3 files changed
tree: 2063b98b2298ba8b18fe679446da9a6998f834f1
  1. benchmark/
  2. cmake/
  3. docs/
  4. examples/
  5. include/
  6. lib/
  7. python/
  8. test/
  9. tools/
  10. unittests/
  11. utils/
  12. .clang-format
  13. .clang-tidy
  14. CMakeLists.txt
  15. LICENSE.TXT
  16. README.md
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.