LLVM 22.0.0git
llvm::orc::LLJITBuilderState Class Reference

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

Inheritance diagram for llvm::orc::LLJITBuilderState:
[legend]

Public Types

using ObjectLinkingLayerCreator
using CompileFunctionCreator
using ProcessSymbolsJITDylibSetupFunction
using PlatformSetupFunction = unique_function<Expected<JITDylibSP>(LLJIT &J)>
using NotifyCreatedFunction = std::function<Error(LLJIT &)>

Public Member Functions

LLVM_ABI Error prepareForConstruction ()
 Called prior to JIT class construcion to fix up defaults.

Public Attributes

std::unique_ptr< ExecutorProcessControlEPC
std::unique_ptr< ExecutionSessionES
std::optional< JITTargetMachineBuilderJTMB
std::optional< DataLayoutDL
bool LinkProcessSymbolsByDefault = true
ProcessSymbolsJITDylibSetupFunction SetupProcessSymbolsJITDylib
ObjectLinkingLayerCreator CreateObjectLinkingLayer
CompileFunctionCreator CreateCompileFunction
unique_function< Error(LLJIT &)> PrePlatformSetup
PlatformSetupFunction SetUpPlatform
NotifyCreatedFunction NotifyCreated
unsigned NumCompileThreads = 0
std::optional< boolSupportConcurrentCompilation

Detailed Description

Definition at line 300 of file LLJIT.h.

Member Typedef Documentation

◆ CompileFunctionCreator

Initial value:
std::function<Expected<std::unique_ptr<IRCompileLayer::IRCompiler>>(
A utility class for building TargetMachines for JITs.
std::optional< JITTargetMachineBuilder > JTMB
Definition LLJIT.h:318

Definition at line 305 of file LLJIT.h.

◆ NotifyCreatedFunction

Definition at line 314 of file LLJIT.h.

◆ ObjectLinkingLayerCreator

Initial value:
std::function<Expected<std::unique_ptr<ObjectLayer>>(ExecutionSession &)>
An ExecutionSession represents a running JIT program.
Definition Core.h:1355

Definition at line 302 of file LLJIT.h.

◆ PlatformSetupFunction

◆ ProcessSymbolsJITDylibSetupFunction

Initial value:
A pre-fabricated ORC JIT stack that can serve as an alternative to MCJIT.
Definition LLJIT.h:42
unique_function is a type-erasing functor similar to std::function.

Definition at line 309 of file LLJIT.h.

Member Function Documentation

◆ prepareForConstruction()

Member Data Documentation

◆ CreateCompileFunction

CompileFunctionCreator llvm::orc::LLJITBuilderState::CreateCompileFunction

Definition at line 323 of file LLJIT.h.

Referenced by llvm::orc::LLJIT::createCompileFunction(), and prepareForConstruction().

◆ CreateObjectLinkingLayer

ObjectLinkingLayerCreator llvm::orc::LLJITBuilderState::CreateObjectLinkingLayer

Definition at line 322 of file LLJIT.h.

Referenced by llvm::orc::LLJIT::createObjectLinkingLayer(), and prepareForConstruction().

◆ DL

std::optional<DataLayout> llvm::orc::LLJITBuilderState::DL

Definition at line 319 of file LLJIT.h.

Referenced by prepareForConstruction().

◆ EPC

std::unique_ptr<ExecutorProcessControl> llvm::orc::LLJITBuilderState::EPC

Definition at line 316 of file LLJIT.h.

Referenced by llvm::orc::LLJIT::LLJIT(), and prepareForConstruction().

◆ ES

std::unique_ptr<ExecutionSession> llvm::orc::LLJITBuilderState::ES

Definition at line 317 of file LLJIT.h.

Referenced by llvm::orc::LLJIT::LLJIT(), and prepareForConstruction().

◆ JTMB

◆ LinkProcessSymbolsByDefault

bool llvm::orc::LLJITBuilderState::LinkProcessSymbolsByDefault = true

Definition at line 320 of file LLJIT.h.

Referenced by llvm::orc::LLJIT::LLJIT(), and prepareForConstruction().

◆ NotifyCreated

NotifyCreatedFunction llvm::orc::LLJITBuilderState::NotifyCreated

Definition at line 326 of file LLJIT.h.

◆ NumCompileThreads

unsigned llvm::orc::LLJITBuilderState::NumCompileThreads = 0

Definition at line 327 of file LLJIT.h.

Referenced by prepareForConstruction().

◆ PrePlatformSetup

unique_function<Error(LLJIT &)> llvm::orc::LLJITBuilderState::PrePlatformSetup

Definition at line 324 of file LLJIT.h.

Referenced by llvm::orc::LLJIT::LLJIT().

◆ SetUpPlatform

PlatformSetupFunction llvm::orc::LLJITBuilderState::SetUpPlatform

Definition at line 325 of file LLJIT.h.

Referenced by llvm::orc::LLJIT::LLJIT(), and prepareForConstruction().

◆ SetupProcessSymbolsJITDylib

ProcessSymbolsJITDylibSetupFunction llvm::orc::LLJITBuilderState::SetupProcessSymbolsJITDylib

Definition at line 321 of file LLJIT.h.

Referenced by llvm::orc::LLJIT::LLJIT(), and prepareForConstruction().

◆ SupportConcurrentCompilation

std::optional<bool> llvm::orc::LLJITBuilderState::SupportConcurrentCompilation

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