LLVM 19.0.0git
Public Types | Public Member Functions | List of all members
llvm::orc::SimpleCompiler Class Reference

Simple compile functor: Takes a single IR module and returns an ObjectFile. More...

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

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

Public Types

using CompileResult = std::unique_ptr< MemoryBuffer >
 

Public Member Functions

 SimpleCompiler (TargetMachine &TM, ObjectCache *ObjCache=nullptr)
 Construct a simple compile functor with the given target.
 
void setObjectCache (ObjectCache *NewCache)
 Set an ObjectCache to query before compiling.
 
Expected< CompileResultoperator() (Module &M) override
 Compile a Module to an ObjectFile.
 
- 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

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.

Definition at line 36 of file CompileUtils.h.

Member Typedef Documentation

◆ CompileResult

Definition at line 38 of file CompileUtils.h.

Constructor & Destructor Documentation

◆ SimpleCompiler()

llvm::orc::SimpleCompiler::SimpleCompiler ( TargetMachine TM,
ObjectCache ObjCache = nullptr 
)
inline

Construct a simple compile functor with the given target.

Definition at line 41 of file CompileUtils.h.

References TM.

Member Function Documentation

◆ operator()()

Expected< SimpleCompiler::CompileResult > llvm::orc::SimpleCompiler::operator() ( Module M)
overridevirtual

◆ setObjectCache()

void llvm::orc::SimpleCompiler::setObjectCache ( ObjectCache NewCache)
inline

Set an ObjectCache to query before compiling.

Definition at line 46 of file CompileUtils.h.


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