class ObjectCache
Declaration
class ObjectCache { /* full declaration omitted */ };
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.
Declared at: llvm/include/llvm/ExecutionEngine/ObjectCache.h:23
Method Overview
- public ObjectCache()
- private virtual void anchor()
- public virtual std::unique_ptr<MemoryBuffer> getObject(const llvm::Module * M)
- public virtual void notifyObjectCompiled(const llvm::Module * M, llvm::MemoryBufferRef Obj)
- public virtual ~ObjectCache()
Methods
¶ObjectCache()
ObjectCache()
Declared at: llvm/include/llvm/ExecutionEngine/ObjectCache.h:27
¶virtual void anchor()
virtual void anchor()
Declared at: llvm/include/llvm/ExecutionEngine/ObjectCache.h:24
¶virtual std::unique_ptr<MemoryBuffer> getObject(
const llvm::Module* M)
virtual std::unique_ptr<MemoryBuffer> getObject(
const llvm::Module* M)
Description
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.
Declared at: llvm/include/llvm/ExecutionEngine/ObjectCache.h:37
Parameters
- const llvm::Module* M
¶virtual void notifyObjectCompiled(
const llvm::Module* M,
llvm::MemoryBufferRef Obj)
virtual void notifyObjectCompiled(
const llvm::Module* M,
llvm::MemoryBufferRef Obj)
Description
notifyObjectCompiled - Provides a pointer to compiled code for Module M.
Declared at: llvm/include/llvm/ExecutionEngine/ObjectCache.h:32
Parameters
- const llvm::Module* M
- llvm::MemoryBufferRef Obj
¶virtual ~ObjectCache()
virtual ~ObjectCache()
Declared at: llvm/include/llvm/ExecutionEngine/ObjectCache.h:29