LLVM  7.0.0
Public Types | Public Member Functions | List of all members
llvm::orc::RTDyldObjectLinkingLayer2 Class Reference

#include "llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h"

Inheritance diagram for llvm::orc::RTDyldObjectLinkingLayer2:
[legend]
Collaboration diagram for llvm::orc::RTDyldObjectLinkingLayer2:
[legend]

Public Types

using NotifyLoadedFunction = std::function< void(VModuleKey, const object::ObjectFile &Obj, const RuntimeDyld::LoadedObjectInfo &)>
 Functor for receiving object-loaded notifications. More...
 
using NotifyFinalizedFunction = std::function< void(VModuleKey)>
 Functor for receiving finalization notifications. More...
 
using GetMemoryManagerFunction = std::function< std::shared_ptr< RuntimeDyld::MemoryManager >(VModuleKey)>
 

Public Member Functions

 RTDyldObjectLinkingLayer2 (ExecutionSession &ES, GetMemoryManagerFunction GetMemoryManager, NotifyLoadedFunction NotifyLoaded=NotifyLoadedFunction(), NotifyFinalizedFunction NotifyFinalized=NotifyFinalizedFunction())
 Construct an ObjectLinkingLayer with the given NotifyLoaded, and NotifyFinalized functors. More...
 
void emit (MaterializationResponsibility R, VModuleKey K, std::unique_ptr< MemoryBuffer > O) override
 Emit the object. More...
 
void mapSectionAddress (VModuleKey K, const void *LocalAddress, JITTargetAddress TargetAddr) const
 Map section addresses for the object associated with the VModuleKey K. More...
 
void setProcessAllSections (bool ProcessAllSections)
 Set the 'ProcessAllSections' flag. More...
 
- Public Member Functions inherited from llvm::orc::ObjectLayer
 ObjectLayer (ExecutionSession &ES)
 
virtual ~ObjectLayer ()
 
ExecutionSession & getExecutionSession ()
 Returns the execution session for this layer. More...
 
virtual Error add (VSO &V, VModuleKey K, std::unique_ptr< MemoryBuffer > O)
 Adds a MaterializationUnit representing the given IR to the given VSO. More...
 

Detailed Description

Definition at line 39 of file RTDyldObjectLinkingLayer.h.

Member Typedef Documentation

◆ GetMemoryManagerFunction

Definition at line 50 of file RTDyldObjectLinkingLayer.h.

◆ NotifyFinalizedFunction

Functor for receiving finalization notifications.

Definition at line 47 of file RTDyldObjectLinkingLayer.h.

◆ NotifyLoadedFunction

Functor for receiving object-loaded notifications.

Definition at line 44 of file RTDyldObjectLinkingLayer.h.

Constructor & Destructor Documentation

◆ RTDyldObjectLinkingLayer2()

llvm::orc::RTDyldObjectLinkingLayer2::RTDyldObjectLinkingLayer2 ( ExecutionSession &  ES,
GetMemoryManagerFunction  GetMemoryManager,
NotifyLoadedFunction  NotifyLoaded = NotifyLoadedFunction(),
NotifyFinalizedFunction  NotifyFinalized = NotifyFinalizedFunction() 
)

Construct an ObjectLinkingLayer with the given NotifyLoaded, and NotifyFinalized functors.

Definition at line 81 of file RTDyldObjectLinkingLayer.cpp.

Member Function Documentation

◆ emit()

void llvm::orc::RTDyldObjectLinkingLayer2::emit ( MaterializationResponsibility  R,
VModuleKey  K,
std::unique_ptr< MemoryBuffer >  O 
)
overridevirtual

◆ mapSectionAddress()

void llvm::orc::RTDyldObjectLinkingLayer2::mapSectionAddress ( VModuleKey  K,
const void *  LocalAddress,
JITTargetAddress  TargetAddr 
) const

Map section addresses for the object associated with the VModuleKey K.

Definition at line 166 of file RTDyldObjectLinkingLayer.cpp.

References assert(), and llvm::Lock.

◆ setProcessAllSections()

void llvm::orc::RTDyldObjectLinkingLayer2::setProcessAllSections ( bool  ProcessAllSections)
inline

Set the 'ProcessAllSections' flag.

If set to true, all sections in each object file will be allocated using the memory manager, rather than just the sections required for execution.

This is kludgy, and may be removed in the future.

Definition at line 74 of file RTDyldObjectLinkingLayer.h.


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