//===- ExecutionContext.cpp - Debug Execution Context Support -------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/Debug/ExecutionContext.h" #include "llvm/ADT/ScopeExit.h" #include "llvm/Support/FormatVariadic.h" #include <cstddef> usingnamespacemlir; usingnamespacemlir::tracing; //===----------------------------------------------------------------------===// // ActionActiveStack //===----------------------------------------------------------------------===// void ActionActiveStack::print(raw_ostream &os, bool withContext) const { … } //===----------------------------------------------------------------------===// // ExecutionContext //===----------------------------------------------------------------------===// static const LLVM_THREAD_LOCAL ActionActiveStack *actionStack = …; void ExecutionContext::registerObserver(Observer *observer) { … } void ExecutionContext::operator()(llvm::function_ref<void()> transform, const Action &action) { … }