LLVM  8.0.1
Public Member Functions | List of all members
llvm::orc::ConcurrentIRCompiler Class Reference

A thread-safe version of SimpleCompiler. More...

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

Public Member Functions

 ConcurrentIRCompiler (JITTargetMachineBuilder JTMB, ObjectCache *ObjCache=nullptr)
 
void setObjectCache (ObjectCache *ObjCache)
 
std::unique_ptr< MemoryBufferoperator() (Module &M)
 

Detailed Description

A thread-safe version of SimpleCompiler.

This class creates a new TargetMachine and SimpleCompiler instance for each compile.

Definition at line 108 of file CompileUtils.h.

Constructor & Destructor Documentation

◆ ConcurrentIRCompiler()

llvm::orc::ConcurrentIRCompiler::ConcurrentIRCompiler ( JITTargetMachineBuilder  JTMB,
ObjectCache ObjCache = nullptr 
)
inline

Definition at line 110 of file CompileUtils.h.

Member Function Documentation

◆ operator()()

std::unique_ptr<MemoryBuffer> llvm::orc::ConcurrentIRCompiler::operator() ( Module M)
inline

Definition at line 116 of file CompileUtils.h.

References C, and llvm::cantFail().

◆ setObjectCache()

void llvm::orc::ConcurrentIRCompiler::setObjectCache ( ObjectCache ObjCache)
inline

Definition at line 114 of file CompileUtils.h.


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