LLVM  8.0.1
Macros | Functions | Variables
Internalize.cpp File Reference
#include "llvm/Transforms/IPO/Internalize.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Utils/GlobalStatus.h"
#include <fstream>
#include <set>
Include dependency graph for Internalize.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "internalize"
 

Functions

 STATISTIC (NumAliases, "Number of aliases internalized")
 
 STATISTIC (NumFunctions, "Number of functions internalized")
 
 STATISTIC (NumGlobals, "Number of global vars internalized")
 
 INITIALIZE_PASS (InternalizeLegacyPass, "internalize", "Internalize Global Symbols", false, false) ModulePass *llvm
 

Variables

static cl::opt< std::string > APIFile ("internalize-public-api-file", cl::value_desc("filename"), cl::desc("A file containing list of symbol names to preserve"))
 
static cl::list< std::string > APIList ("internalize-public-api-list", cl::value_desc("list"), cl::desc("A list of symbol names to preserve"), cl::CommaSeparated)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "internalize"

Definition at line 38 of file Internalize.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( InternalizeLegacyPass  ,
"internalize"  ,
"Internalize Global Symbols"  ,
false  ,
false   
)

Definition at line 284 of file Internalize.cpp.

◆ STATISTIC() [1/3]

STATISTIC ( NumAliases  ,
"Number of aliases internalized"   
)

◆ STATISTIC() [2/3]

STATISTIC ( NumFunctions  ,
"Number of functions internalized"   
)

◆ STATISTIC() [3/3]

STATISTIC ( NumGlobals  ,
"Number of global vars internalized"   
)

Variable Documentation

◆ APIFile

cl::opt<std::string> APIFile("internalize-public-api-file", cl::value_desc("filename"), cl::desc("A file containing list of symbol names to preserve"))
static

◆ APIList

cl::list<std::string> APIList("internalize-public-api-list", cl::value_desc("list"), cl::desc("A list of symbol names to preserve"), cl::CommaSeparated)
static