|
LLVM
5.0.0
|
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... | |
Simple compile functor: Takes a single IR module and returns an ObjectFile.
Definition at line 40 of file CompileUtils.h.
Definition at line 43 of file CompileUtils.h.
|
inline |
Construct a simple compile functor with the given target.
Definition at line 46 of file CompileUtils.h.
|
inline |
Compile a Module to an ObjectFile.
Definition at line 53 of file CompileUtils.h.
References llvm::TargetMachine::addPassesToEmitMC(), llvm::consumeError(), llvm::object::ObjectFile::createObjectFile(), llvm::object::OwningBinary< T >::getBinary(), llvm_unreachable(), llvm::legacy::PassManager::run(), and llvm::Expected< T >::takeError().
|
inline |
Set an ObjectCache to query before compiling.
Definition at line 50 of file CompileUtils.h.
Referenced by llvm::orc::OrcMCJITReplacement::setObjectCache().
1.8.6