LLVM 20.0.0git
Public Member Functions | List of all members
llvm::orc::TMOwningSimpleCompiler Class Reference

A SimpleCompiler that owns its TargetMachine. More...

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

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

Public Member Functions

 TMOwningSimpleCompiler (std::unique_ptr< TargetMachine > TM, ObjectCache *ObjCache=nullptr)
 
- Public Member Functions inherited from llvm::orc::SimpleCompiler
 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

- Public Types inherited from llvm::orc::SimpleCompiler
using CompileResult = std::unique_ptr< MemoryBuffer >
 
- Protected Member Functions inherited from llvm::orc::IRCompileLayer::IRCompiler
IRSymbolMapper::ManglingOptionsmanglingOptions ()
 

Detailed Description

A SimpleCompiler that owns its TargetMachine.

This is convenient for clients who don't want to own their TargetMachines, e.g. LLJIT.

Definition at line 66 of file CompileUtils.h.

Constructor & Destructor Documentation

◆ TMOwningSimpleCompiler()

llvm::orc::TMOwningSimpleCompiler::TMOwningSimpleCompiler ( std::unique_ptr< TargetMachine TM,
ObjectCache ObjCache = nullptr 
)
inline

Definition at line 68 of file CompileUtils.h.

References TM.


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