LLVM 20.0.0git
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"

Inheritance diagram for llvm::orc::ConcurrentIRCompiler:
Inheritance graph
[legend]

Public Member Functions

 ConcurrentIRCompiler (JITTargetMachineBuilder JTMB, ObjectCache *ObjCache=nullptr)
 
void setObjectCache (ObjectCache *ObjCache)
 
Expected< std::unique_ptr< MemoryBuffer > > operator() (Module &M) override
 
- Public Member Functions inherited from llvm::orc::IRCompileLayer::IRCompiler
 IRCompiler (IRSymbolMapper::ManglingOptions MO)
 
virtual ~IRCompiler ()
 
const IRSymbolMapper::ManglingOptionsgetManglingOptions () const
 
virtual Expected< std::unique_ptr< MemoryBuffer > > operator() (Module &M)=0
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::orc::IRCompileLayer::IRCompiler
IRSymbolMapper::ManglingOptionsmanglingOptions ()
 

Detailed Description

A thread-safe version of SimpleCompiler.

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

Definition at line 82 of file CompileUtils.h.

Constructor & Destructor Documentation

◆ ConcurrentIRCompiler()

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

Definition at line 80 of file CompileUtils.cpp.

Member Function Documentation

◆ operator()()

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

◆ setObjectCache()

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

Definition at line 87 of file CompileUtils.h.


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