13 #ifndef LLVM_EXECUTIONENGINE_ORC_LAYER_H 14 #define LLVM_EXECUTIONENGINE_ORC_LAYER_H 90 this->CloneToNewContextOnEmit = CloneToNewContextOnEmit;
105 bool CloneToNewContextOnEmit =
false;
141 std::unique_ptr<MemoryBuffer> O) = 0;
155 std::unique_ptr<MemoryBuffer> O,
167 std::unique_ptr<MemoryBuffer>
O;
179 #endif // LLVM_EXECUTIONENGINE_ORC_LAYER_H bool getCloneToNewContextOnEmit() const
Returns the current value of the CloneToNewContextOnEmit flag.
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
StringRef getName() const override
Return the ModuleIdentifier as the name for this MaterializationUnit.
SymbolNameToDefinitionMap SymbolToDefinition
Materializes the given object file (represented by a MemoryBuffer instance) by calling 'emit' on the ...
SymbolFlagsMap SymbolFlags
std::map< SymbolStringPtr, GlobalValue * > SymbolNameToDefinitionMap
Tagged union holding either a T or a Error.
Tracks responsibility for materialization, and mediates interactions between MaterializationUnits and...
IRMaterializationUnit is a convenient base class for MaterializationUnits wrapping LLVM IR...
ExecutionSession & getExecutionSession()
Returns the execution session for this layer.
MaterializationUnit that materializes modules by calling the 'emit' method on the given IRLayer...
ExecutionSession & getExecutionSession()
Returns the ExecutionSession for this layer.
const IRMaterializationUnit::ManglingOptions *& getManglingOptions() const
Get the mangling options for this layer.
Pointer to a pooled string representing a symbol name.
Expected< SymbolFlagsMap > getObjectSymbolFlags(ExecutionSession &ES, MemoryBufferRef ObjBuffer)
Returns a SymbolFlagsMap for the object file represented by the given buffer, or an error if the buff...
IRMaterializationUnit(ExecutionSession &ES, const ManglingOptions &MO, ThreadSafeModule TSM, VModuleKey K)
Create an IRMaterializationLayer.
void setCloneToNewContextOnEmit(bool CloneToNewContextOnEmit)
Sets the CloneToNewContextOnEmit flag (false by default).
An LLVM Module together with a shared ThreadSafeContext.
Interface for layers that accept LLVM IR.
IRLayer(ExecutionSession &ES, const IRMaterializationUnit::ManglingOptions *&MO)
A MaterializationUnit represents a set of symbol definitions that can be materialized as a group...
const ThreadSafeModule & getModule() const
static uint64_t add(uint64_t LeftOp, uint64_t RightOp)
Module.h This file contains the declarations for the Module class.
An ExecutionSession represents a running JIT program.
uint8_t uint64_t VModuleKey
VModuleKey provides a unique identifier (allocated and managed by ExecutionSessions) for a module add...
Lightweight error class with error context and mandatory checking.
Interface for Layers that accept object files.
StringRef - Represent a constant reference to a string, i.e.
A symbol table that supports asynchoronous symbol queries.