LLVM 20.0.0git
|
A pass that internalizes all functions and variables other than those that must be preserved according to MustPreserveGV
.
More...
#include "llvm/Transforms/IPO/Internalize.h"
Public Member Functions | |
InternalizePass () | |
InternalizePass (std::function< bool(const GlobalValue &)> MustPreserveGV) | |
bool | internalizeModule (Module &TheModule) |
Run the internalizer on TheModule , returns true if any changes was made. | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &AM) |
Public Member Functions inherited from llvm::PassInfoMixin< InternalizePass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< InternalizePass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
A pass that internalizes all functions and variables other than those that must be preserved according to MustPreserveGV
.
Definition at line 36 of file Internalize.h.
InternalizePass::InternalizePass | ( | ) |
Definition at line 271 of file Internalize.cpp.
|
inline |
Definition at line 65 of file Internalize.h.
Run the internalizer on TheModule
, returns true if any changes was made.
Definition at line 185 of file Internalize.cpp.
References llvm::collectUsedGlobalVariables(), llvm::dbgs(), F, llvm::Value::getName(), I, llvm::StringSet< AllocatorTy >::insert(), llvm::Triple::isOSAIX(), llvm::Triple::isOSBinFormatWasm(), and LLVM_DEBUG.
Referenced by llvm::internalizeModule(), and run().
PreservedAnalyses InternalizePass::run | ( | Module & | M, |
ModuleAnalysisManager & | AM | ||
) |
Definition at line 273 of file Internalize.cpp.
References llvm::PreservedAnalyses::all(), internalizeModule(), and llvm::PreservedAnalyses::none().