MMatthias Springer[mlir][IR] Clean up mergeBlockBefore and mergeBlocks
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[mlir][arith] Change dialect name from Arithmetic to Arith Suggested by @lattner in https://discourse.llvm.org/t/rfc-define-precise-arith-semantics/65507/22. Tested with: ninja check-mlir check-mlir-integration check-mlir-mlir-spirv-cpu-runner check-mlir-mlir-vulkan-runner check-mlir-examples and bazel build --config=generic_clang @llvm-project//mlir:all. Reviewed By: lattner, Mogball, rriddle, jpienaar, mehdi_amini Differential Revision: https://reviews.llvm.org/D134762 | 3 年前 | |
[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 | 3 年前 |