llvm::internalizeModule

Helper function to internalize functions and variables in a Module.

Synopsis

Declared in <llvm/Transforms/IPO/Internalize.h>

bool
internalizeModule(
    Module& TheModule,
    std::function<bool(GlobalValue const&)> MustPreserveGV);

Parameters

NameDescription
TheModuleA Module instance is used to store all the information related to an LLVM module. Modules are the top level container of all other LLVM Intermediate Representation (IR) objects. Each module directly contains a list of globals variables, a list of functions, a list of libraries (or other modules) this module depends on, a symbol table, and various data about the target's characteristics.