clang 23.0.0git
clang::IncrementalExecutorBuilder Class Reference

#include "clang/Interpreter/IncrementalExecutor.h"

Public Member Functions

 ~IncrementalExecutorBuilder ()
llvm::Expected< std::unique_ptr< IncrementalExecutor > > create (llvm::orc::ThreadSafeContext &TSC, const clang::TargetInfo &TI)

Public Attributes

bool IsOutOfProcess = false
 Indicates whether out-of-process JIT execution is enabled.
std::string OOPExecutor = ""
 Path to the out-of-process JIT executor.
std::string OOPExecutorConnect = ""
bool UseSharedMemory = false
 Indicates whether to use shared memory for communication.
unsigned SlabAllocateSize = 0
 Representing the slab allocation size for memory management in kb.
std::string OrcRuntimePath = ""
 Path to the ORC runtime library.
uint32_t ExecutorPID = 0
 PID of the out-of-process JIT executor.
std::function< void()> CustomizeFork = nullptr
 Custom lambda to be executed inside child process/executor.
std::optional< llvm::CodeModel::Model > CM = std::nullopt
 An optional code model to provide to the JITTargetMachineBuilder.
std::unique_ptr< IncrementalExecutorIE
 An optional external IncrementalExecutor.
std::unique_ptr< llvm::orc::LLJITBuilder > JITBuilder
 An optional external orc jit builder.
std::function< llvm::Error(const driver::Compilation &)> UpdateOrcRuntimePathCB
 A default callback that can be used in the IncrementalCompilerBuilder to retrieve the path to the orc runtime.

Detailed Description

Definition at line 34 of file IncrementalExecutor.h.

Constructor & Destructor Documentation

◆ ~IncrementalExecutorBuilder()

clang::IncrementalExecutorBuilder::~IncrementalExecutorBuilder ( )
default

References clang::C.

Member Function Documentation

◆ create()

llvm::Expected< std::unique_ptr< IncrementalExecutor > > clang::IncrementalExecutorBuilder::create ( llvm::orc::ThreadSafeContext & TSC,
const clang::TargetInfo & TI )

Member Data Documentation

◆ CM

std::optional<llvm::CodeModel::Model> clang::IncrementalExecutorBuilder::CM = std::nullopt

An optional code model to provide to the JITTargetMachineBuilder.

Definition at line 52 of file IncrementalExecutor.h.

Referenced by create().

◆ CustomizeFork

std::function<void()> clang::IncrementalExecutorBuilder::CustomizeFork = nullptr

Custom lambda to be executed inside child process/executor.

Definition at line 50 of file IncrementalExecutor.h.

Referenced by clang::outOfProcessJITBuilder().

◆ ExecutorPID

uint32_t clang::IncrementalExecutorBuilder::ExecutorPID = 0

PID of the out-of-process JIT executor.

Definition at line 48 of file IncrementalExecutor.h.

Referenced by create().

◆ IE

std::unique_ptr<IncrementalExecutor> clang::IncrementalExecutorBuilder::IE

An optional external IncrementalExecutor.

Definition at line 54 of file IncrementalExecutor.h.

Referenced by create().

◆ IsOutOfProcess

bool clang::IncrementalExecutorBuilder::IsOutOfProcess = false

Indicates whether out-of-process JIT execution is enabled.

Definition at line 37 of file IncrementalExecutor.h.

Referenced by create().

◆ JITBuilder

std::unique_ptr<llvm::orc::LLJITBuilder> clang::IncrementalExecutorBuilder::JITBuilder

An optional external orc jit builder.

Definition at line 56 of file IncrementalExecutor.h.

Referenced by create().

◆ OOPExecutor

std::string clang::IncrementalExecutorBuilder::OOPExecutor = ""

Path to the out-of-process JIT executor.

Definition at line 39 of file IncrementalExecutor.h.

Referenced by clang::outOfProcessJITBuilder().

◆ OOPExecutorConnect

std::string clang::IncrementalExecutorBuilder::OOPExecutorConnect = ""

Definition at line 40 of file IncrementalExecutor.h.

Referenced by clang::outOfProcessJITBuilder().

◆ OrcRuntimePath

std::string clang::IncrementalExecutorBuilder::OrcRuntimePath = ""

Path to the ORC runtime library.

Definition at line 46 of file IncrementalExecutor.h.

Referenced by clang::outOfProcessJITBuilder().

◆ SlabAllocateSize

unsigned clang::IncrementalExecutorBuilder::SlabAllocateSize = 0

Representing the slab allocation size for memory management in kb.

Definition at line 44 of file IncrementalExecutor.h.

Referenced by clang::outOfProcessJITBuilder().

◆ UpdateOrcRuntimePathCB

std::function<llvm::Error(const driver::Compilation &)> clang::IncrementalExecutorBuilder::UpdateOrcRuntimePathCB
Initial value:
= [this](const driver::Compilation &C) {
return UpdateOrcRuntimePath(C);
}
Compilation - A set of tasks to perform for a single driver invocation.
Definition Compilation.h:45

A default callback that can be used in the IncrementalCompilerBuilder to retrieve the path to the orc runtime.

Definition at line 60 of file IncrementalExecutor.h.

◆ UseSharedMemory

bool clang::IncrementalExecutorBuilder::UseSharedMemory = false

Indicates whether to use shared memory for communication.

Definition at line 42 of file IncrementalExecutor.h.

Referenced by clang::outOfProcessJITBuilder().


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