LLVM 17.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 &) |
![]() | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
![]() | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Definition at line 17 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 55 of file ExtractGV.cpp.
PreservedAnalyses ExtractGVPass::run | ( | Module & | M, |
ModuleAnalysisManager & | |||
) |
Definition at line 60 of file ExtractGV.cpp.
References llvm::Function::Create(), llvm::GlobalValue::ExternalLinkage, F, llvm::make_early_inc_range(), makeVisible(), and llvm::PreservedAnalyses::none().