15#ifndef LLVM_TRANSFORMS_UTILS_SPLITMODULE_H
16#define LLVM_TRANSFORMS_UTILS_SPLITMODULE_H
41 function_ref<
void(std::unique_ptr<Module> MPart)> ModuleCallback,
42 bool PreserveLocals =
false,
bool RoundRobin =
false);
A Module instance is used to store all the information related to an LLVM module.
An efficient, type-erasing, non-owning reference to a callable.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI void SplitModule(Module &M, unsigned N, function_ref< void(std::unique_ptr< Module > MPart)> ModuleCallback, bool PreserveLocals=false, bool RoundRobin=false)
Splits the module M into N linkable partitions.