[all-commits] [llvm/llvm-project] 5736a8: Add a `skipRegion()` feature to the OpPrintingFlag...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Mon Mar 20 05:47:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5736a8a2dab438c8266c79b49d5d5c90f78fdcb4
      https://github.com/llvm/llvm-project/commit/5736a8a2dab438c8266c79b49d5d5c90f78fdcb4
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
    M mlir/test/mlir-lsp-server/hover.test

  Log Message:
  -----------
  Add a `skipRegion()` feature to the OpPrintingFlags for MLIR ASM printer

This is a convenient flag for context where we intend to summarize a top-level
operation without the full-blown regions it may hold.

Reviewed By: rriddle

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


  Commit: f406adf134c2f81747bbc653b1399656268fe17a
      https://github.com/llvm/llvm-project/commit/f406adf134c2f81747bbc653b1399656268fe17a
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    M mlir/include/mlir/Debug/Observers/ActionLogging.h
    M mlir/include/mlir/IR/Action.h
    M mlir/include/mlir/IR/MLIRContext.h
    A mlir/include/mlir/IR/Unit.h
    M mlir/lib/Debug/Observers/ActionLogging.cpp
    M mlir/lib/IR/CMakeLists.txt
    A mlir/lib/IR/Unit.cpp
    M mlir/lib/Pass/Pass.cpp
    M mlir/lib/Pass/PassDetail.h
    M mlir/test/Pass/action-logging.mlir

  Log Message:
  -----------
  Add capture of "IRUnits" as context for an MLIR Action

IRUnit is defined as:

  using IRUnit = PointerUnion<Operation *, Region *, Block *, Value>;

The tracing::Action is extended to take an ArrayRef<IRUnit> as context to
describe an Action. It is demonstrated in the "ActionLogging" observer.

Reviewed By: rriddle, Mogball

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


Compare: https://github.com/llvm/llvm-project/compare/930744fcdad7...f406adf134c2


More information about the All-commits mailing list