LLVM 20.0.0git
|
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) |
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::ManglingOptions & | getManglingOptions () const |
virtual Expected< std::unique_ptr< MemoryBuffer > > | operator() (Module &M)=0 |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::orc::IRCompileLayer::IRCompiler | |
IRSymbolMapper::ManglingOptions & | manglingOptions () |
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.
llvm::orc::ConcurrentIRCompiler::ConcurrentIRCompiler | ( | JITTargetMachineBuilder | JTMB, |
ObjectCache * | ObjCache = nullptr |
||
) |
Definition at line 83 of file CompileUtils.cpp.
|
overridevirtual |
Implements llvm::orc::IRCompileLayer::IRCompiler.
Definition at line 89 of file CompileUtils.cpp.
References llvm::CallingConv::C, llvm::cantFail(), and llvm::orc::JITTargetMachineBuilder::createTargetMachine().
|
inline |
Definition at line 87 of file CompileUtils.h.