LLVM API Documentation

llvm::JITEventListener Class Reference

#include <JITEventListener.h>

List of all members.

Public Types

typedef
JITEvent_EmittedFunctionDetails 
EmittedFunctionDetails

Public Member Functions

 JITEventListener ()
virtual ~JITEventListener ()
virtual void NotifyFunctionEmitted (const Function &F, void *Code, size_t Size, const EmittedFunctionDetails &Details)
virtual void NotifyFreeingMachineCode (const Function &F, void *OldPtr)


Detailed Description

JITEventListener - This interface is used by the JIT to notify clients about significant events during compilation. For example, we could have implementations for profilers and debuggers that need to know where functions have been emitted.

Each method defaults to doing nothing, so you only need to override the ones you care about.

Definition at line 50 of file JITEventListener.h.


Member Typedef Documentation

Definition at line 55 of file JITEventListener.h.


Constructor & Destructor Documentation

llvm::JITEventListener::JITEventListener (  )  [inline]

Definition at line 52 of file JITEventListener.h.

JITEventListener::~JITEventListener (  )  [virtual]

Definition at line 781 of file JIT.cpp.


Member Function Documentation

virtual void llvm::JITEventListener::NotifyFunctionEmitted ( const Function &  F,
void *  Code,
size_t  Size,
const EmittedFunctionDetails &  Details 
) [inline, virtual]

NotifyFunctionEmitted - Called after a function has been successfully emitted to memory. The function still has its MachineFunction attached, if you should happen to need that.

Definition at line 59 of file JITEventListener.h.

virtual void llvm::JITEventListener::NotifyFreeingMachineCode ( const Function &  F,
void *  OldPtr 
) [inline, virtual]

NotifyFreeingMachineCode - This is called inside of freeMachineCodeForFunction(), after the global mapping is removed, but before the machine code is returned to the allocator. OldPtr is the address of the machine code.

Definition at line 67 of file JITEventListener.h.


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