LLVM 22.0.0git
|
#include "llvm/Transforms/IPO/ExtractGV.h"
Public Member Functions | |
LLVM_ABI | ExtractGVPass (std::vector< GlobalValue * > &GVs, bool deleteS=true, bool keepConstInit=false) |
If deleteS is true, this pass deletes the specified global values. | |
LLVM_ABI PreservedAnalyses | run (Module &M, ModuleAnalysisManager &) |
Public Member Functions inherited from llvm::PassInfoMixin< ExtractGVPass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< ExtractGVPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. |
Definition at line 19 of file ExtractGV.h.
ExtractGVPass::ExtractGVPass | ( | std::vector< GlobalValue * > & | GVs, |
bool | deleteS = true, | ||
bool | keepConstInit = false ) |
If deleteS is true, this pass deletes the specified global values.
Otherwise, it deletes as much of the module as possible, except for the global values specified.
Definition at line 53 of file ExtractGV.cpp.
References llvm::from_range.
PreservedAnalyses ExtractGVPass::run | ( | Module & | M, |
ModuleAnalysisManager & | ) |
Definition at line 58 of file ExtractGV.cpp.
References llvm::Function::Create(), llvm::dyn_cast(), llvm::GlobalValue::ExternalLinkage, F, llvm::make_early_inc_range(), makeVisible(), llvm::PreservedAnalyses::none(), and llvm::Value::replaceAllUsesWith().