LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::ObjectCache Class Referenceabstract

#include <ObjectCache.h>

Public Member Functions

 ObjectCache ()
 
virtual ~ObjectCache ()
 
virtual void notifyObjectCompiled (const Module *M, const MemoryBuffer *Obj)=0
 notifyObjectCompiled - Provides a pointer to compiled code for Module M. More...
 
virtual MemoryBuffergetObject (const Module *M)=0
 

Detailed Description

This is the base ObjectCache type which can be provided to an ExecutionEngine for the purpose of avoiding compilation for Modules that have already been compiled and an object file is available.

Definition at line 22 of file ObjectCache.h.

Constructor & Destructor Documentation

llvm::ObjectCache::ObjectCache ( )
inline

Definition at line 25 of file ObjectCache.h.

virtual llvm::ObjectCache::~ObjectCache ( )
inlinevirtual

Definition at line 27 of file ObjectCache.h.

Member Function Documentation

virtual MemoryBuffer* llvm::ObjectCache::getObject ( const Module M)
pure virtual

getObjectCopy - Returns a pointer to a newly allocated MemoryBuffer that contains the object which corresponds with Module M, or 0 if an object is not available. The caller owns both the MemoryBuffer returned by this and the memory it references.

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

virtual void llvm::ObjectCache::notifyObjectCompiled ( const Module M,
const MemoryBuffer Obj 
)
pure virtual

notifyObjectCompiled - Provides a pointer to compiled code for Module M.

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


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