13 #ifndef LLVM_EXECUTIONENGINE_ORC_COMPILEUTILS_H 14 #define LLVM_EXECUTIONENGINE_ORC_COMPILEUTILS_H 31 class JITTargetMachineBuilder;
33 IRMaterializationUnit::ManglingOptions
78 std::shared_ptr<llvm::TargetMachine> TM;
103 #endif // LLVM_EXECUTIONENGINE_ORC_COMPILEUTILS_H A SimpleCompiler that owns its TargetMachine.
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
void setObjectCache(ObjectCache *ObjCache)
A thread-safe version of SimpleCompiler.
Tagged union holding either a T or a Error.
Simple compile functor: Takes a single IR module and returns an ObjectFile.
TMOwningSimpleCompiler(std::unique_ptr< TargetMachine > TM, ObjectCache *ObjCache=nullptr)
Expected< CompileResult > operator()(Module &M) override
Compile a Module to an ObjectFile.
This interface provides simple read-only access to a block of memory, and provides simple methods for...
IRCompiler(IRMaterializationUnit::ManglingOptions MO)
IRMaterializationUnit::ManglingOptions irManglingOptionsFromTargetOptions(const TargetOptions &Opts)
void setObjectCache(ObjectCache *NewCache)
Set an ObjectCache to query before compiling.
This is the base ObjectCache type which can be provided to an ExecutionEngine for the purpose of avoi...
std::unique_ptr< MemoryBuffer > CompileResult
Primary interface to the complete machine description for the target machine.
SimpleCompiler(TargetMachine &TM, ObjectCache *ObjCache=nullptr)
Construct a simple compile functor with the given target.
A utility class for building TargetMachines for JITs.