Rename DebugAction to tracing::Action and move related code from lib/Support to lib...
authorMehdi Amini <joker.eph@gmail.com>
Mon, 23 Jan 2023 00:32:07 +0000 (00:32 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 6 Mar 2023 15:12:30 +0000 (16:12 +0100)
commit28d04c564debff75c6d1f262a621aa4246e761ae
tree13848990465a803a08e993c42f4636626798b96d
parent070dd18e3112b5393a6e001e875fec2e3704efff
Rename DebugAction to tracing::Action and move related code from lib/Support to lib/IR and lib/Debug

This is a preparation for adding support for more infrastructure around the concept
of Action and make tracing Action more of a first class concept.
The doc will be updated later in a subsequent revision after the changes are
completed.

Action belongs to IR because of circular dependency: Actions are dispatched through
the MLIRContext but Action will learn to encapsulate IR construct.

Differential Revision: https://reviews.llvm.org/D144809
16 files changed:
mlir/include/mlir/Debug/Counter.h [moved from mlir/include/mlir/Support/DebugCounter.h with 77% similarity]
mlir/include/mlir/IR/Action.h [moved from mlir/include/mlir/Support/DebugAction.h with 75% similarity]
mlir/include/mlir/IR/MLIRContext.h
mlir/lib/CMakeLists.txt
mlir/lib/Debug/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Debug/DebugCounter.cpp [moved from mlir/lib/Support/DebugCounter.cpp with 98% similarity]
mlir/lib/IR/MLIRContext.cpp
mlir/lib/Support/CMakeLists.txt
mlir/lib/Tools/mlir-opt/CMakeLists.txt
mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
mlir/unittests/CMakeLists.txt
mlir/unittests/Debug/CMakeLists.txt [new file with mode: 0644]
mlir/unittests/Debug/DebugCounterTest.cpp [moved from mlir/unittests/Support/DebugCounterTest.cpp with 77% similarity]
mlir/unittests/IR/ActionTest.cpp [moved from mlir/unittests/Support/DebugActionTest.cpp with 73% similarity]
mlir/unittests/IR/CMakeLists.txt
mlir/unittests/Support/CMakeLists.txt