aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-07-20 17:28:38 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-07-20 17:28:38 +0000
commited41f1bb1981a98eea63f00c5988cf62bbdd7c59 (patch)
treec4b4d2a8de8df909d5bc2aa9c298b48dabfc2394
parent74bda2e320b92c017c1938ab35a18071d22f5127 (diff)
Reduce number of exported symbols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29220 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp12
-rw-r--r--lib/CodeGen/PHIElimination.cpp4
-rw-r--r--lib/CodeGen/Passes.cpp2
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp5
-rw-r--r--lib/CodeGen/RegAllocLocal.cpp8
-rw-r--r--lib/CodeGen/RegAllocSimple.cpp4
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp4
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp6
-rw-r--r--lib/CodeGen/VirtRegMap.cpp14
10 files changed, 31 insertions, 30 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 8c6a7b5fc7..fba04670f2 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -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));
diff --git a/lib/CodeGen/PHIElimination.cpp b/lib/CodeGen/PHIElimination.cpp
index 5b8798f982..ffbae2a7ff 100644
--- a/lib/CodeGen/PHIElimination.cpp
+++ b/lib/CodeGen/PHIElimination.cpp
@@ -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) {
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp
index a6ba12072e..435d6b5627 100644
--- a/lib/CodeGen/Passes.cpp
+++ b/lib/CodeGen/Passes.cpp
@@ -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)"),
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index f12424c6b3..550d2a4e0c 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -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;
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp
index 891ee3c0f3..1c90ae1ed3 100644
--- a/lib/CodeGen/RegAllocLocal.cpp
+++ b/lib/CodeGen/RegAllocLocal.cpp
@@ -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;
diff --git a/lib/CodeGen/RegAllocSimple.cpp b/lib/CodeGen/RegAllocSimple.cpp
index fc90dd1b90..5d94f0af85 100644
--- a/lib/CodeGen/RegAllocSimple.cpp
+++ b/lib/CodeGen/RegAllocSimple.cpp
@@ -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;
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 241801ceda..a46ad1a663 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -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;
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
index a0858d9990..ee01370d59 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
@@ -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 {
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index fa3ceff759..c778a92e0f 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -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
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp
index 5263f887cd..86fef3e432 100644
--- a/lib/CodeGen/VirtRegMap.cpp
+++ b/lib/CodeGen/VirtRegMap.cpp
@@ -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,