14#ifndef LLVM_EXECUTIONENGINE_ORC_IRPARTITIONLAYER_H
15#define LLVM_EXECUTIONENGINE_ORC_IRPARTITIONLAYER_H
46 std::function<std::optional<GlobalValueSet>(
GlobalValueSet Requested)>;
53 static std::optional<GlobalValueSet>
58 static std::optional<GlobalValueSet>
66 void emit(std::unique_ptr<MaterializationResponsibility> R,
70 void cleanUpModule(
Module &M);
74 void emitPartition(std::unique_ptr<MaterializationResponsibility> R,
This file contains the simple types necessary to represent the attributes associated with functions a...
This file contains the declarations for the subclasses of Constant, which represent the different fla...
Module.h This file contains the declarations for the Module class.
A Module instance is used to store all the information related to an LLVM module.
An ExecutionSession represents a running JIT program.
IRLayer(ExecutionSession &ES, const IRSymbolMapper::ManglingOptions *&MO)
std::map< SymbolStringPtr, GlobalValue * > SymbolNameToDefinitionMap
std::function< std::optional< GlobalValueSet >(GlobalValueSet Requested)> PartitionFunction
Partitioning function.
void emit(std::unique_ptr< MaterializationResponsibility > R, ThreadSafeModule TSM) override
Emits the given module.
static std::optional< GlobalValueSet > compileWholeModule(GlobalValueSet Requested)
Off-the-shelf partitioning which compiles whole modules whenever any symbol in them is requested.
std::set< const GlobalValue * > GlobalValueSet
IRPartitionLayer(ExecutionSession &ES, IRLayer &BaseLayer)
Construct a IRPartitionLayer.
void setPartitionFunction(PartitionFunction Partition)
Sets the partition function.
friend class PartitioningIRMaterializationUnit
static std::optional< GlobalValueSet > compileRequested(GlobalValueSet Requested)
Off-the-shelf partitioning which compiles all requested symbols (usually a single function at a time)...
An LLVM Module together with a shared ThreadSafeContext.
This is an optimization pass for GlobalISel generic memory operations.