LLVM  15.0.0git
Functions | Variables
MetaRenamer.cpp File Reference
#include "llvm/Transforms/Utils/MetaRenamer.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/Argument.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalAlias.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/TypeFinder.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Transforms/Utils.h"
Include dependency graph for MetaRenamer.cpp:

Go to the source code of this file.

Functions

 INITIALIZE_PASS_BEGIN (MetaRenamer, "metarenamer", "Assign new names to everything", false, false) INITIALIZE_PASS_END(MetaRenamer
 

Variables

static cl::opt< std::string > RenameExcludeFunctionPrefixes ("rename-exclude-function-prefixes", cl::desc("Prefixes for functions that don't need to be renamed, separated " "by a comma"), cl::Hidden)
 
static cl::opt< std::string > RenameExcludeAliasPrefixes ("rename-exclude-alias-prefixes", cl::desc("Prefixes for aliases that don't need to be renamed, separated " "by a comma"), cl::Hidden)
 
static cl::opt< std::string > RenameExcludeGlobalPrefixes ("rename-exclude-global-prefixes", cl::desc("Prefixes for global values that don't need to be renamed, separated " "by a comma"), cl::Hidden)
 
static cl::opt< std::string > RenameExcludeStructPrefixes ("rename-exclude-struct-prefixes", cl::desc("Prefixes for structs that don't need to be renamed, separated " "by a comma"), cl::Hidden)
 
static const char *const metaNames []
 
 metarenamer
 
Assign new names to everything
 
Assign new names to false
 

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( MetaRenamer  ,
"metarenamer"  ,
"Assign new names to everything ,
false  ,
false   
)

Variable Documentation

◆ everything

Assign new names to everything

Definition at line 232 of file MetaRenamer.cpp.

◆ false

Assign new names to false

Definition at line 232 of file MetaRenamer.cpp.

◆ metaNames

const char* const metaNames[]
static
Initial value:
= {
"foo", "bar", "baz", "quux", "barney", "snork", "zot", "blam", "hoge",
"wibble", "wobble", "widget", "wombat", "ham", "eggs", "pluto", "spam"
}

Definition at line 65 of file MetaRenamer.cpp.

◆ metarenamer

metarenamer

Definition at line 231 of file MetaRenamer.cpp.

◆ RenameExcludeAliasPrefixes

cl::opt<std::string> RenameExcludeAliasPrefixes("rename-exclude-alias-prefixes", cl::desc("Prefixes for aliases that don't need to be renamed, separated " "by a comma"), cl::Hidden)
static

◆ RenameExcludeFunctionPrefixes

cl::opt<std::string> RenameExcludeFunctionPrefixes("rename-exclude-function-prefixes", cl::desc("Prefixes for functions that don't need to be renamed, separated " "by a comma"), cl::Hidden)
static

◆ RenameExcludeGlobalPrefixes

cl::opt<std::string> RenameExcludeGlobalPrefixes("rename-exclude-global-prefixes", cl::desc( "Prefixes for global values that don't need to be renamed, separated " "by a comma"), cl::Hidden)
static

◆ RenameExcludeStructPrefixes

cl::opt<std::string> RenameExcludeStructPrefixes("rename-exclude-struct-prefixes", cl::desc("Prefixes for structs that don't need to be renamed, separated " "by a comma"), cl::Hidden)
static