//===- JITEventListener.h - Exposes events from JIT compilation -*- C++ -*-===// // // 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 // //===----------------------------------------------------------------------===// // // This file defines the JITEventListener interface, which lets users get // callbacks when significant events happen during the JIT compilation process. // //===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_JITEVENTLISTENER_H #define LLVM_EXECUTIONENGINE_JITEVENTLISTENER_H #include "llvm-c/ExecutionEngine.h" #include "llvm/Config/llvm-config.h" #include "llvm/ExecutionEngine/RuntimeDyld.h" #include "llvm/IR/DebugLoc.h" #include "llvm/Support/CBindingWrapping.h" #include <cstdint> namespace llvm { class IntelJITEventsWrapper; class OProfileWrapper; namespace object { class ObjectFile; } // end namespace object /// JITEventListener - Abstract interface for use by the JIT to notify clients /// about significant events during compilation. For example, to notify /// profilers and debuggers that need to know where functions have been emitted. /// /// The default implementation of each method does nothing. class JITEventListener { … }; DEFINE_SIMPLE_CONVERSION_FUNCTIONS(…) } // end namespace llvm #endif // LLVM_EXECUTIONENGINE_JITEVENTLISTENER_H