LLVM: llvm::orc::LLJITBuilderSetters< JITType, SetterImpl, State (original) (raw)

#include "[llvm/ExecutionEngine/Orc/LLJIT.h](llvm%5F2ExecutionEngine%5F2Orc%5F2LLJIT%5F8h%5Fsource.html)"

Public Member Functions
SetterImpl & setExecutorProcessControl (std::unique_ptr< ExecutorProcessControl > EPC)
Set an ExecutorProcessControl for this instance.
SetterImpl & setExecutionSession (std::unique_ptr< ExecutionSession > ES)
Set an ExecutionSession for this instance.
SetterImpl & setJITTargetMachineBuilder (JITTargetMachineBuilder JTMB)
Set the JITTargetMachineBuilder for this instance.
std::optional< JITTargetMachineBuilder > & getJITTargetMachineBuilder ()
Return a reference to the JITTargetMachineBuilder.
SetterImpl & setDataLayout (std::optional< DataLayout > DL)
Set a DataLayout for this instance.
SetterImpl & setLinkProcessSymbolsByDefault (bool LinkProcessSymbolsByDefault)
The LinkProcessSymbolsDyDefault flag determines whether the "Process" JITDylib will be added to the default link order at LLJIT construction time.
SetterImpl & setProcessSymbolsJITDylibSetup (LLJITBuilderState::ProcessSymbolsJITDylibSetupFunction SetupProcessSymbolsJITDylib)
Set a setup function for the process symbols dylib.
SetterImpl & setObjectLinkingLayerCreator (LLJITBuilderState::ObjectLinkingLayerCreator CreateObjectLinkingLayer)
Set an ObjectLinkingLayer creation function.
SetterImpl & setCompileFunctionCreator (LLJITBuilderState::CompileFunctionCreator CreateCompileFunction)
Set a CompileFunctionCreator.
SetterImpl & setPrePlatformSetup (unique_function< Error(LLJIT &)> PrePlatformSetup)
Set a setup function to be run just before the PlatformSetupFunction is run.
SetterImpl & setPlatformSetUp (LLJITBuilderState::PlatformSetupFunction SetUpPlatform)
Set up an PlatformSetupFunction.
SetterImpl & setNotifyCreatedCallback (LLJITBuilderState::NotifyCreatedFunction Callback)
Set up a callback after successful construction of the JIT.
SetterImpl & setNumCompileThreads (unsigned NumCompileThreads)
Set the number of compile threads to use.
SetterImpl & setSupportConcurrentCompilation (std::optional< bool > SupportConcurrentCompilation)
If set, this forces LLJIT concurrent compilation support to be either on or off.
Expected< std::unique_ptr< JITType > > create ()
Create an instance of the JIT.
Protected Member Functions
SetterImpl & impl ()

template<typename JITType, typename SetterImpl, typename State>
class llvm::orc::LLJITBuilderSetters< JITType, SetterImpl, State >

Definition at line 335 of file LLJIT.h.

create()

template<typename JITType, typename SetterImpl, typename State>

getJITTargetMachineBuilder()

template<typename JITType, typename SetterImpl, typename State>

impl()

template<typename JITType, typename SetterImpl, typename State>

Definition at line 507 of file LLJIT.h.

Referenced by create(), getJITTargetMachineBuilder(), setCompileFunctionCreator(), setDataLayout(), setExecutionSession(), setExecutorProcessControl(), llvm::orc::LLLazyJITBuilderSetters< JITType, SetterImpl, State >::setIndirectStubsManagerBuilder(), setJITTargetMachineBuilder(), llvm::orc::LLLazyJITBuilderSetters< JITType, SetterImpl, State >::setLazyCallthroughManager(), llvm::orc::LLLazyJITBuilderSetters< JITType, SetterImpl, State >::setLazyCompileFailureAddr(), setLinkProcessSymbolsByDefault(), setNotifyCreatedCallback(), setNumCompileThreads(), setObjectLinkingLayerCreator(), setPlatformSetUp(), setPrePlatformSetup(), setProcessSymbolsJITDylibSetup(), and setSupportConcurrentCompilation().

setCompileFunctionCreator()

template<typename JITType, typename SetterImpl, typename State>

Set a CompileFunctionCreator.

If this method is not called, a default creation function wil be used that will construct a basic IR compile function that is compatible with the selected number of threads (SimpleCompiler for '0' compile threads, ConcurrentIRCompiler otherwise).

Definition at line 419 of file LLJIT.h.

References impl().

setDataLayout()

template<typename JITType, typename SetterImpl, typename State>

Set a DataLayout for this instance.

If no data layout is specified then the target's default data layout will be used.

Definition at line 376 of file LLJIT.h.

References DL, and impl().

setExecutionSession()

template<typename JITType, typename SetterImpl, typename State>

setExecutorProcessControl()

template<typename JITType, typename SetterImpl, typename State>

setJITTargetMachineBuilder()

template<typename JITType, typename SetterImpl, typename State>

setLinkProcessSymbolsByDefault()

template<typename JITType, typename SetterImpl, typename State>

The LinkProcessSymbolsDyDefault flag determines whether the "Process" JITDylib will be added to the default link order at LLJIT construction time.

If true, the Process JITDylib will be added as the last item in the default link order. If false (or if the Process JITDylib is disabled via setProcessSymbolsJITDylibSetup) then the Process JITDylib will not appear in the default link order.

Definition at line 387 of file LLJIT.h.

References impl().

setNotifyCreatedCallback()

template<typename JITType, typename SetterImpl, typename State>

Set up a callback after successful construction of the JIT.

This is useful to attach generators to JITDylibs or inject initial symbol definitions.

Definition at line 453 of file LLJIT.h.

References impl().

setNumCompileThreads()

template<typename JITType, typename SetterImpl, typename State>

Set the number of compile threads to use.

If set to zero, compilation will be performed on the execution thread when JITing in-process. If set to any other number N, a thread pool of N threads will be created for compilation.

If this method is not called, behavior will be as if it were called with a zero argument.

This setting should not be used if a custom ExecutionSession or ExecutorProcessControl object is set: in those cases a custom TaskDispatcher should be used instead.

Definition at line 470 of file LLJIT.h.

References impl().

setObjectLinkingLayerCreator()

template<typename JITType, typename SetterImpl, typename State>

setPlatformSetUp()

template<typename JITType, typename SetterImpl, typename State>

Set up an PlatformSetupFunction.

If this method is not called then setUpGenericLLVMIRPlatform will be used to configure the JIT's platform support.

Definition at line 443 of file LLJIT.h.

References impl().

setPrePlatformSetup()

template<typename JITType, typename SetterImpl, typename State>

Set a setup function to be run just before the PlatformSetupFunction is run.

This can be used to customize the LLJIT instance before the platform is set up. E.g. By installing a debugger support plugin before the platform is set up (when the ORC runtime is loaded) we enable debugging of the runtime itself.

Definition at line 433 of file LLJIT.h.

References impl().

setProcessSymbolsJITDylibSetup()

template<typename JITType, typename SetterImpl, typename State>

Set a setup function for the process symbols dylib.

If not provided, but LinkProcessSymbolsJITDylibByDefault is true, then the process-symbols JITDylib will be configured with a DynamicLibrarySearchGenerator with a default symbol filter.

Definition at line 396 of file LLJIT.h.

References impl().

setSupportConcurrentCompilation()

template<typename JITType, typename SetterImpl, typename State>

If set, this forces LLJIT concurrent compilation support to be either on or off.

This controls the selection of compile function (concurrent vs single threaded) and whether or not sub-modules are cloned to new contexts for lazy emission.

If not explicitly set then concurrency support will be turned on if NumCompileThreads is set to a non-zero value, or if a custom ExecutionSession or ExecutorProcessControl instance is provided.

Definition at line 483 of file LLJIT.h.

References impl().


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