[all-commits] [llvm/llvm-project] 6a45e7: MLIR, LLVM: Add an IR utility to perform proper sl...

Christian Ulmann via All-commits all-commits at lists.llvm.org
Tue Aug 13 05:54:52 PDT 2024


  Branch: refs/heads/users/dinistro/mlir-ir-slicing-utility
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a45e747d4b8ba30cd5e7a516ea5f8bb0d7519fd
      https://github.com/llvm/llvm-project/commit/6a45e747d4b8ba30cd5e7a516ea5f8bb0d7519fd
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-08-13 (Tue, 13 Aug 2024)

  Changed paths:
    A mlir/include/mlir/IR/SliceSupport.h
    M mlir/lib/Dialect/LLVMIR/IR/LLVMInlining.cpp
    M mlir/lib/IR/CMakeLists.txt
    A mlir/lib/IR/SliceSupport.cpp

  Log Message:
  -----------
  MLIR, LLVM: Add an IR utility to perform proper slicing

This commit introduces a backwards slicing utility that is both
`RegionBranchOpInterface` and `BranchOpInterface` aware. This is a first
step in replacing the currently broken slicing utilities that cannot be
used for structured control flow.

Note that the utility is currently placed in the IR library, because
LLVM's inlining uses it and is part of the LLVMIR library. There was
originally a substantial push back on moving the inliner interface out
of said library.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list