clang 22.0.0git
clang::IncrementalExecutorBuilder Class Reference

#include "clang/Interpreter/Interpreter.h"

Public Member Functions

 ~IncrementalExecutorBuilder ()
llvm::Expected< std::unique_ptr< IncrementalExecutor > > create (llvm::orc::ThreadSafeContext &TSC, llvm::orc::LLJITBuilder &JITBuilder)

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::function< llvm::Error(const driver::Compilation &)> UpdateOrcRuntimePathCB

Detailed Description

Definition at line 98 of file Interpreter.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,
llvm::orc::LLJITBuilder & JITBuilder )

Definition at line 257 of file Interpreter.cpp.

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 116 of file Interpreter.h.

◆ CustomizeFork

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

Custom lambda to be executed inside child process/executor.

Definition at line 114 of file Interpreter.h.

Referenced by clang::outOfProcessJITBuilder().

◆ ExecutorPID

uint32_t clang::IncrementalExecutorBuilder::ExecutorPID = 0

PID of the out-of-process JIT executor.

Definition at line 112 of file Interpreter.h.

◆ IsOutOfProcess

bool clang::IncrementalExecutorBuilder::IsOutOfProcess = false

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

Definition at line 101 of file Interpreter.h.

◆ OOPExecutor

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

Path to the out-of-process JIT executor.

Definition at line 103 of file Interpreter.h.

Referenced by clang::outOfProcessJITBuilder().

◆ OOPExecutorConnect

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

Definition at line 104 of file Interpreter.h.

Referenced by clang::outOfProcessJITBuilder().

◆ OrcRuntimePath

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

Path to the ORC runtime library.

Definition at line 110 of file Interpreter.h.

Referenced by clang::outOfProcessJITBuilder().

◆ SlabAllocateSize

unsigned clang::IncrementalExecutorBuilder::SlabAllocateSize = 0

Representing the slab allocation size for memory management in kb.

Definition at line 108 of file Interpreter.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

Definition at line 118 of file Interpreter.h.

◆ UseSharedMemory

bool clang::IncrementalExecutorBuilder::UseSharedMemory = false

Indicates whether to use shared memory for communication.

Definition at line 106 of file Interpreter.h.

Referenced by clang::outOfProcessJITBuilder().


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