[all-commits] [llvm/llvm-project] 102015: Add a GDB/LLDB interface for interactive debugging...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Mon Apr 24 14:34:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1020150e7a6f6d6f833c232125c5ab817c03c76b
      https://github.com/llvm/llvm-project/commit/1020150e7a6f6d6f833c232125c5ab817c03c76b
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    A mlir/include/mlir/Debug/DebuggerExecutionContextHook.h
    M mlir/include/mlir/Debug/ExecutionContext.h
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/include/mlir/Rewrite/PatternApplicator.h
    M mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h
    M mlir/lib/Debug/CMakeLists.txt
    A mlir/lib/Debug/DebuggerExecutionContextHook.cpp
    M mlir/lib/Debug/ExecutionContext.cpp
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
    A mlir/utils/lldb-scripts/action_debugging.py

  Log Message:
  -----------
  Add a GDB/LLDB interface for interactive debugging of MLIR Actions

This includes a small runtime acting as callback for the ExecutionEngine
and a C API that makes it possible to control from the debugger.

A python script for LLDB is included that hook a new `mlir` subcommand
and allows to set breakpoints and inspect the current action, the context
and the stack.

Differential Revision: https://reviews.llvm.org/D144817


  Commit: b0528a53eab403194b713995e4b22d4cff12818b
      https://github.com/llvm/llvm-project/commit/b0528a53eab403194b713995e4b22d4cff12818b
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    A mlir/docs/ActionTracing.md
    R mlir/docs/DebugActions.md
    A mlir/test/mlir-opt/debugcounter.mlir

  Log Message:
  -----------
  Add user doc on the website for the Action framework

The old DebugAction documentation is deleted: the code in-tree does not
match it anymore.

Differential Revision: https://reviews.llvm.org/D149037


  Commit: cca510640bf0aa3ef356a8ad51652de16b5a557a
      https://github.com/llvm/llvm-project/commit/cca510640bf0aa3ef356a8ad51652de16b5a557a
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    A mlir/include/mlir/Debug/CLOptionsSetup.h
    M mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h
    A mlir/lib/Debug/CLOptionsSetup.cpp
    M mlir/lib/Debug/CMakeLists.txt
    M mlir/lib/Tools/mlir-opt/MlirOptMain.cpp

  Log Message:
  -----------
  Refactor the mlir-opt command line options related to debugging in a helper

This makes it reusable across various tooling and reduces the amount of
boilerplate needed.

Differential Revision: https://reviews.llvm.org/D144818


Compare: https://github.com/llvm/llvm-project/compare/1869a9c225c7...cca510640bf0


More information about the All-commits mailing list