LLVM  5.0.0
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"

Public Types

using CompileResult = object::OwningBinary< object::ObjectFile >
 

Public Member Functions

 SimpleCompiler (TargetMachine &TM, ObjectCache *ObjCache=nullptr)
 Construct a simple compile functor with the given target. More...
 
void setObjectCache (ObjectCache *NewCache)
 Set an ObjectCache to query before compiling. More...
 
CompileResult operator() (Module &M)
 Compile a Module to an ObjectFile. More...
 

Detailed Description

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

Definition at line 40 of file CompileUtils.h.

Member Typedef Documentation

Definition at line 43 of file CompileUtils.h.

Constructor & Destructor Documentation

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

Construct a simple compile functor with the given target.

Definition at line 46 of file CompileUtils.h.

Member Function Documentation

CompileResult llvm::orc::SimpleCompiler::operator() ( Module &  M)
inline
void llvm::orc::SimpleCompiler::setObjectCache ( ObjectCache *  NewCache)
inline

Set an ObjectCache to query before compiling.

Definition at line 50 of file CompileUtils.h.

Referenced by llvm::orc::OrcMCJITReplacement::setObjectCache().


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