11#ifndef LLVM_TRANSFORM_UTILS_SPLIT_MODULE_BY_CATEGORY_H
12#define LLVM_TRANSFORM_UTILS_SPLIT_MODULE_BY_CATEGORY_H
59 std::unique_ptr<Module> M,
61 function_ref<
void(std::unique_ptr<Module> Part)> Callback);
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 splitModuleTransitiveFromEntryPoints(std::unique_ptr< Module > M, function_ref< std::optional< int >(const Function &F)> EntryPointCategorizer, function_ref< void(std::unique_ptr< Module > Part)> Callback)
Splits the given module M into parts.