LLVM 20.0.0git
|
#include "llvm/Transforms/IPO/ExtractGV.h"
Public Member Functions | |
ExtractGVPass (std::vector< GlobalValue * > &GVs, bool deleteS=true, bool keepConstInit=false) | |
If deleteS is true, this pass deletes the specified global values. | |
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 18 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.
PreservedAnalyses ExtractGVPass::run | ( | Module & | M, |
ModuleAnalysisManager & | |||
) |
Definition at line 58 of file ExtractGV.cpp.
References llvm::Function::Create(), llvm::GlobalValue::ExternalLinkage, F, llvm::make_early_inc_range(), makeVisible(), and llvm::PreservedAnalyses::none().