#include "mlir/Debug/CLOptionsSetup.h"
#include "mlir/Debug/Counter.h"
#include "mlir/Debug/DebuggerExecutionContextHook.h"
#include "mlir/Debug/ExecutionContext.h"
#include "mlir/Debug/Observers/ActionLogging.h"
#include "mlir/Debug/Observers/ActionProfiler.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/Support/FileUtilities.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/ToolOutputFile.h"
usingnamespacemlir;
usingnamespacemlir::tracing;
usingnamespacellvm;
namespace {
struct DebugConfigCLOptions : public DebugConfig { … };
}
static ManagedStatic<DebugConfigCLOptions> clOptionsConfig;
void DebugConfig::registerCLOptions() { … }
DebugConfig DebugConfig::createFromCLOptions() { … }
class InstallDebugHandler::Impl { … };
InstallDebugHandler::InstallDebugHandler(MLIRContext &context,
const DebugConfig &config)
: … { … }
InstallDebugHandler::~InstallDebugHandler() = default;