1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Reduce number of exported symbols

llvm-svn: 29220
This commit is contained in:
Andrew Lenharth 2006-07-20 17:28:38 +00:00
parent 0311b39af2
commit c1074954fb
10 changed files with 31 additions and 30 deletions

View File

@ -40,22 +40,22 @@ using namespace llvm;
namespace {
RegisterAnalysis<LiveIntervals> X("liveintervals", "Live Interval Analysis");
Statistic<> numIntervals
static Statistic<> numIntervals
("liveintervals", "Number of original intervals");
Statistic<> numIntervalsAfter
static Statistic<> numIntervalsAfter
("liveintervals", "Number of intervals after coalescing");
Statistic<> numJoins
static Statistic<> numJoins
("liveintervals", "Number of interval joins performed");
Statistic<> numPeep
static Statistic<> numPeep
("liveintervals", "Number of identity moves eliminated after coalescing");
Statistic<> numFolded
static Statistic<> numFolded
("liveintervals", "Number of loads/stores folded into instructions");
cl::opt<bool>
static cl::opt<bool>
EnableJoining("join-liveintervals",
cl::desc("Join compatible live intervals"),
cl::init(true));

View File

@ -29,8 +29,8 @@
using namespace llvm;
namespace {
Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
Statistic<> NumSimple("phielim", "Number of simple phis lowered");
static Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
static Statistic<> NumSimple("phielim", "Number of simple phis lowered");
struct VISIBILITY_HIDDEN PNE : public MachineFunctionPass {
bool runOnMachineFunction(MachineFunction &Fn) {

View File

@ -20,7 +20,7 @@ using namespace llvm;
namespace {
enum RegAllocName { simple, local, linearscan };
cl::opt<RegAllocName>
static cl::opt<RegAllocName>
RegAlloc(
"regalloc",
cl::desc("Register allocator to use: (default = linearscan)"),

View File

@ -37,9 +37,10 @@ using namespace llvm;
namespace {
Statistic<double> efficiency
static Statistic<double> efficiency
("regalloc", "Ratio of intervals processed over total intervals");
Statistic<> NumBacktracks("regalloc", "Number of times we had to backtrack");
static Statistic<> NumBacktracks
("regalloc", "Number of times we had to backtrack");
static unsigned numIterations = 0;
static unsigned numIntervals = 0;

View File

@ -31,10 +31,10 @@
using namespace llvm;
namespace {
Statistic<> NumStores("ra-local", "Number of stores added");
Statistic<> NumLoads ("ra-local", "Number of loads added");
Statistic<> NumFolded("ra-local", "Number of loads/stores folded into "
"instructions");
static Statistic<> NumStores("ra-local", "Number of stores added");
static Statistic<> NumLoads ("ra-local", "Number of loads added");
static Statistic<> NumFolded("ra-local", "Number of loads/stores folded into "
"instructions");
class VISIBILITY_HIDDEN RA : public MachineFunctionPass {
const TargetMachine *TM;
MachineFunction *MF;

View File

@ -30,8 +30,8 @@
using namespace llvm;
namespace {
Statistic<> NumStores("ra-simple", "Number of stores added");
Statistic<> NumLoads ("ra-simple", "Number of loads added");
static Statistic<> NumStores("ra-simple", "Number of stores added");
static Statistic<> NumLoads ("ra-simple", "Number of loads added");
class VISIBILITY_HIDDEN RegAllocSimple : public MachineFunctionPass {
MachineFunction *MF;

View File

@ -42,7 +42,7 @@
using namespace llvm;
namespace {
Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes combined");
static Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes combined");
class VISIBILITY_HIDDEN DAGCombiner {
SelectionDAG &DAG;

View File

@ -34,8 +34,8 @@
using namespace llvm;
namespace {
Statistic<> NumNoops ("scheduler", "Number of noops inserted");
Statistic<> NumStalls("scheduler", "Number of pipeline stalls");
static Statistic<> NumNoops ("scheduler", "Number of noops inserted");
static Statistic<> NumStalls("scheduler", "Number of pipeline stalls");
}
namespace {

View File

@ -45,11 +45,11 @@
using namespace llvm;
namespace {
Statistic<> NumTwoAddressInstrs("twoaddressinstruction",
static Statistic<> NumTwoAddressInstrs("twoaddressinstruction",
"Number of two-address instructions");
Statistic<> NumCommuted("twoaddressinstruction",
static Statistic<> NumCommuted("twoaddressinstruction",
"Number of instructions commuted to coalesce");
Statistic<> NumConvertedTo3Addr("twoaddressinstruction",
static Statistic<> NumConvertedTo3Addr("twoaddressinstruction",
"Number of instructions promoted to 3-address");
struct VISIBILITY_HIDDEN TwoAddressInstructionPass

View File

@ -34,16 +34,16 @@
using namespace llvm;
namespace {
Statistic<> NumSpills("spiller", "Number of register spills");
Statistic<> NumStores("spiller", "Number of stores added");
Statistic<> NumLoads ("spiller", "Number of loads added");
Statistic<> NumReused("spiller", "Number of values reused");
Statistic<> NumDSE ("spiller", "Number of dead stores elided");
Statistic<> NumDCE ("spiller", "Number of copies elided");
static Statistic<> NumSpills("spiller", "Number of register spills");
static Statistic<> NumStores("spiller", "Number of stores added");
static Statistic<> NumLoads ("spiller", "Number of loads added");
static Statistic<> NumReused("spiller", "Number of values reused");
static Statistic<> NumDSE ("spiller", "Number of dead stores elided");
static Statistic<> NumDCE ("spiller", "Number of copies elided");
enum SpillerName { simple, local };
cl::opt<SpillerName>
static cl::opt<SpillerName>
SpillerOpt("spiller",
cl::desc("Spiller to use: (default: local)"),
cl::Prefix,