LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::orc::LocalJITCompileCallbackManager< TargetT > Class Template Reference

Manage compile callbacks for in-process JITs. More...

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

Inheritance diagram for llvm::orc::LocalJITCompileCallbackManager< TargetT >:
Inheritance graph
[legend]
Collaboration diagram for llvm::orc::LocalJITCompileCallbackManager< TargetT >:
Collaboration graph
[legend]

Public Member Functions

 LocalJITCompileCallbackManager (JITTargetAddress ErrorHandlerAddress)
 Construct a InProcessJITCompileCallbackManager. More...
 
- Public Member Functions inherited from llvm::orc::JITCompileCallbackManager
 JITCompileCallbackManager (JITTargetAddress ErrorHandlerAddress)
 Construct a JITCompileCallbackManager. More...
 
virtual ~JITCompileCallbackManager ()=default
 
JITTargetAddress executeCompileCallback (JITTargetAddress TrampolineAddr)
 Execute the callback for the given trampoline id. More...
 
Expected< CompileCallbackInfogetCompileCallback ()
 Reserve a compile callback. More...
 
CompileCallbackInfo getCompileCallbackInfo (JITTargetAddress TrampolineAddr)
 Get a CompileCallbackInfo for an existing callback. More...
 
void releaseCompileCallback (JITTargetAddress TrampolineAddr)
 Release a compile callback. More...
 

Additional Inherited Members

- Public Types inherited from llvm::orc::JITCompileCallbackManager
using CompileFtor = std::function< JITTargetAddress()>
 
- Protected Types inherited from llvm::orc::JITCompileCallbackManager
using TrampolineMapT = std::map< JITTargetAddress, CompileFtor >
 
- Protected Attributes inherited from llvm::orc::JITCompileCallbackManager
JITTargetAddress ErrorHandlerAddress
 
TrampolineMapT ActiveTrampolines
 
std::vector< JITTargetAddressAvailableTrampolines
 

Detailed Description

template<typename TargetT>
class llvm::orc::LocalJITCompileCallbackManager< TargetT >

Manage compile callbacks for in-process JITs.

Definition at line 163 of file IndirectionUtils.h.

Constructor & Destructor Documentation

◆ LocalJITCompileCallbackManager()

template<typename TargetT >
llvm::orc::LocalJITCompileCallbackManager< TargetT >::LocalJITCompileCallbackManager ( JITTargetAddress  ErrorHandlerAddress)
inline

Construct a InProcessJITCompileCallbackManager.

Parameters
ErrorHandlerAddressThe address of an error handler in the target process to be used if a compile callback fails.

Set up the resolver block.

Definition at line 168 of file IndirectionUtils.h.

References llvm::sys::Memory::allocateMappedMemory(), assert(), llvm::orc::JITCompileCallbackManager::AvailableTrampolines, llvm::errorCodeToError(), llvm::orc::JITCompileCallbackManager::executeCompileCallback(), llvm::sys::Process::getPageSize(), I, llvm::sys::Memory::MF_EXEC, llvm::sys::Memory::MF_READ, llvm::sys::Memory::MF_WRITE, llvm::sys::Memory::protectMappedMemory(), and llvm::Error::success().


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