class SimpleCompiler

Declaration

class SimpleCompiler : public IRCompiler { /* full declaration omitted */ };

Description

Simple compile functor: Takes a single IR module and returns an ObjectFile. This compiler supports a single compilation thread and LLVMContext only. For multithreaded compilation, use ConcurrentIRCompiler below.

Declared at: llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h:36

Inherits from: IRCompileLayer::IRCompiler

Member Variables

private llvm::TargetMachine& TM
private llvm::ObjectCache* ObjCache = nullptr

Method Overview

Inherited from IRCompileLayer::IRCompiler:

Methods

SimpleCompiler(
    llvm::TargetMachine& TM,
    llvm::ObjectCache* ObjCache = nullptr)

Description

Construct a simple compile functor with the given target.

Declared at: llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h:41

Parameters

llvm::TargetMachine& TM
llvm::ObjectCache* ObjCache = nullptr

IRSymbolMapper::ManglingOptions
manglingOptionsForTargetMachine(
    const llvm::TargetMachine& TM)

Declared at: llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h:53

Parameters

const llvm::TargetMachine& TM

void notifyObjectCompiled(
    const llvm::Module& M,
    const llvm::MemoryBuffer& ObjBuffer)

Declared at: llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h:56

Parameters

const llvm::Module& M
const llvm::MemoryBuffer& ObjBuffer

void setObjectCache(llvm::ObjectCache* NewCache)

Description

Set an ObjectCache to query before compiling.

Declared at: llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h:46

Parameters

llvm::ObjectCache* NewCache

llvm::orc::SimpleCompiler::CompileResult
tryToLoadFromObjectCache(const llvm::Module& M)

Declared at: llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h:55

Parameters

const llvm::Module& M