LLVM API Documentation
#include <JITEventListener.h>
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) |
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.
Definition at line 55 of file JITEventListener.h.
| llvm::JITEventListener::JITEventListener | ( | ) | [inline] |
Definition at line 52 of file JITEventListener.h.
| 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.