LLVM 19.0.0git
Public Member Functions | List of all members
llvm::ObjectCache Class Referenceabstract

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. More...

#include "llvm/ExecutionEngine/ObjectCache.h"

Public Member Functions

 ObjectCache ()=default
 
virtual ~ObjectCache ()=default
 
virtual void notifyObjectCompiled (const Module *M, MemoryBufferRef Obj)=0
 notifyObjectCompiled - Provides a pointer to compiled code for Module M.
 
virtual std::unique_ptr< MemoryBuffergetObject (const Module *M)=0
 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.
 

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 23 of file ObjectCache.h.

Constructor & Destructor Documentation

◆ ObjectCache()

llvm::ObjectCache::ObjectCache ( )
default

◆ ~ObjectCache()

virtual llvm::ObjectCache::~ObjectCache ( )
virtualdefault

Member Function Documentation

◆ getObject()

virtual std::unique_ptr< MemoryBuffer > llvm::ObjectCache::getObject ( const Module M)
pure virtual

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.

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

◆ notifyObjectCompiled()

virtual void llvm::ObjectCache::notifyObjectCompiled ( const Module M,
MemoryBufferRef  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: