LLVM  6.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::JITEventListener Class Reference

JITEventListener - Abstract interface for use by the JIT to notify clients about significant events during compilation. More...

#include "llvm/ExecutionEngine/JITEventListener.h"

Public Types

using EmittedFunctionDetails = JITEvent_EmittedFunctionDetails
 

Public Member Functions

 JITEventListener ()=default
 
virtual ~JITEventListener ()=default
 
virtual void NotifyObjectEmitted (const object::ObjectFile &Obj, const RuntimeDyld::LoadedObjectInfo &L)
 NotifyObjectEmitted - Called after an object has been successfully emitted to memory. More...
 
virtual void NotifyFreeingObject (const object::ObjectFile &Obj)
 NotifyFreeingObject - Called just before the memory associated with a previously emitted object is released. More...
 

Static Public Member Functions

static JITEventListenercreateGDBRegistrationListener ()
 
static JITEventListenercreateIntelJITEventListener ()
 
static JITEventListenercreateIntelJITEventListener (IntelJITEventsWrapper *AlternativeImpl)
 
static JITEventListenercreateOProfileJITEventListener ()
 
static JITEventListenercreateOProfileJITEventListener (OProfileWrapper *AlternativeImpl)
 

Detailed Description

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.

Definition at line 60 of file JITEventListener.h.

Member Typedef Documentation

◆ EmittedFunctionDetails

Definition at line 62 of file JITEventListener.h.

Constructor & Destructor Documentation

◆ JITEventListener()

llvm::JITEventListener::JITEventListener ( )
default

◆ ~JITEventListener()

virtual llvm::JITEventListener::~JITEventListener ( )
virtualdefault

Member Function Documentation

◆ createGDBRegistrationListener()

JITEventListener * llvm::JITEventListener::createGDBRegistrationListener ( )
static

Definition at line 233 of file GDBRegistrationListener.cpp.

Referenced by llvm::MCJIT::createJIT().

◆ createIntelJITEventListener() [1/2]

JITEventListener * llvm::JITEventListener::createIntelJITEventListener ( )
inlinestatic

Definition at line 94 of file JITEventListener.h.

◆ createIntelJITEventListener() [2/2]

JITEventListener * llvm::JITEventListener::createIntelJITEventListener ( IntelJITEventsWrapper AlternativeImpl)
inlinestatic

Definition at line 96 of file JITEventListener.h.

◆ createOProfileJITEventListener() [1/2]

JITEventListener * llvm::JITEventListener::createOProfileJITEventListener ( )
inlinestatic

Definition at line 110 of file JITEventListener.h.

◆ createOProfileJITEventListener() [2/2]

static JITEventListener* llvm::JITEventListener::createOProfileJITEventListener ( OProfileWrapper AlternativeImpl)
inlinestatic

Definition at line 112 of file JITEventListener.h.

◆ NotifyFreeingObject()

virtual void llvm::JITEventListener::NotifyFreeingObject ( const object::ObjectFile Obj)
inlinevirtual

NotifyFreeingObject - Called just before the memory associated with a previously emitted object is released.

Definition at line 81 of file JITEventListener.h.

◆ NotifyObjectEmitted()

virtual void llvm::JITEventListener::NotifyObjectEmitted ( const object::ObjectFile Obj,
const RuntimeDyld::LoadedObjectInfo L 
)
inlinevirtual

NotifyObjectEmitted - Called after an object has been successfully emitted to memory.

NotifyFunctionEmitted will not be called for individual functions in the object.

ELF-specific information The ObjectImage contains the generated object image with section headers updated to reflect the address at which sections were loaded and with relocations performed in-place on debug sections.

Definition at line 76 of file JITEventListener.h.


The documentation for this class was generated from the following files: