LLVM API Documentation

Internalize.cpp File Reference

#include "llvm/Analysis/CallGraph.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Pass.h"
#include "llvm/Module.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/Statistic.h"
#include <fstream>
#include <set>

Include dependency graph for Internalize.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "internalize"

Functions

 STATISTIC (NumAliases,"Number of aliases internalized")
 STATISTIC (NumFunctions,"Number of functions internalized")
 STATISTIC (NumGlobals,"Number of global vars internalized")
ModulePassllvm::createInternalizePass (bool AllButMain)
ModulePassllvm::createInternalizePass (const std::vector< const char * > &exportList)

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)
static RegisterPass
< InternalizePass > 
X ("internalize","Internalize Global Symbols")


Define Documentation

#define DEBUG_TYPE   "internalize"

Definition at line 16 of file Internalize.cpp.


Function Documentation

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

STATISTIC ( NumFunctions  ,
"Number of functions internalized"   
)

STATISTIC ( NumAliases  ,
"Number of aliases internalized"   
)


Variable Documentation

bool AllButMain

If no api symbols were specified and a main function is defined, assume the main function is the only API

Definition at line 50 of file Internalize.cpp.

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) [static]

std::set<std::string> ExternalNames

Definition at line 47 of file Internalize.cpp.

char ID [static]

Definition at line 52 of file Internalize.cpp.

RegisterPass<InternalizePass> X("internalize","Internalize Global Symbols") [static]




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.