mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Reduce number of exported symbols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -40,22 +40,22 @@ using namespace llvm;
|
|||||||
namespace {
|
namespace {
|
||||||
RegisterAnalysis<LiveIntervals> X("liveintervals", "Live Interval Analysis");
|
RegisterAnalysis<LiveIntervals> X("liveintervals", "Live Interval Analysis");
|
||||||
|
|
||||||
Statistic<> numIntervals
|
static Statistic<> numIntervals
|
||||||
("liveintervals", "Number of original intervals");
|
("liveintervals", "Number of original intervals");
|
||||||
|
|
||||||
Statistic<> numIntervalsAfter
|
static Statistic<> numIntervalsAfter
|
||||||
("liveintervals", "Number of intervals after coalescing");
|
("liveintervals", "Number of intervals after coalescing");
|
||||||
|
|
||||||
Statistic<> numJoins
|
static Statistic<> numJoins
|
||||||
("liveintervals", "Number of interval joins performed");
|
("liveintervals", "Number of interval joins performed");
|
||||||
|
|
||||||
Statistic<> numPeep
|
static Statistic<> numPeep
|
||||||
("liveintervals", "Number of identity moves eliminated after coalescing");
|
("liveintervals", "Number of identity moves eliminated after coalescing");
|
||||||
|
|
||||||
Statistic<> numFolded
|
static Statistic<> numFolded
|
||||||
("liveintervals", "Number of loads/stores folded into instructions");
|
("liveintervals", "Number of loads/stores folded into instructions");
|
||||||
|
|
||||||
cl::opt<bool>
|
static cl::opt<bool>
|
||||||
EnableJoining("join-liveintervals",
|
EnableJoining("join-liveintervals",
|
||||||
cl::desc("Join compatible live intervals"),
|
cl::desc("Join compatible live intervals"),
|
||||||
cl::init(true));
|
cl::init(true));
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
|
static Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
|
||||||
Statistic<> NumSimple("phielim", "Number of simple phis lowered");
|
static Statistic<> NumSimple("phielim", "Number of simple phis lowered");
|
||||||
|
|
||||||
struct VISIBILITY_HIDDEN PNE : public MachineFunctionPass {
|
struct VISIBILITY_HIDDEN PNE : public MachineFunctionPass {
|
||||||
bool runOnMachineFunction(MachineFunction &Fn) {
|
bool runOnMachineFunction(MachineFunction &Fn) {
|
||||||
|
@ -20,7 +20,7 @@ using namespace llvm;
|
|||||||
namespace {
|
namespace {
|
||||||
enum RegAllocName { simple, local, linearscan };
|
enum RegAllocName { simple, local, linearscan };
|
||||||
|
|
||||||
cl::opt<RegAllocName>
|
static cl::opt<RegAllocName>
|
||||||
RegAlloc(
|
RegAlloc(
|
||||||
"regalloc",
|
"regalloc",
|
||||||
cl::desc("Register allocator to use: (default = linearscan)"),
|
cl::desc("Register allocator to use: (default = linearscan)"),
|
||||||
|
@ -37,9 +37,10 @@ using namespace llvm;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
Statistic<double> efficiency
|
static Statistic<double> efficiency
|
||||||
("regalloc", "Ratio of intervals processed over total intervals");
|
("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 numIterations = 0;
|
||||||
static unsigned numIntervals = 0;
|
static unsigned numIntervals = 0;
|
||||||
|
@ -31,9 +31,9 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumStores("ra-local", "Number of stores added");
|
static Statistic<> NumStores("ra-local", "Number of stores added");
|
||||||
Statistic<> NumLoads ("ra-local", "Number of loads added");
|
static Statistic<> NumLoads ("ra-local", "Number of loads added");
|
||||||
Statistic<> NumFolded("ra-local", "Number of loads/stores folded into "
|
static Statistic<> NumFolded("ra-local", "Number of loads/stores folded into "
|
||||||
"instructions");
|
"instructions");
|
||||||
class VISIBILITY_HIDDEN RA : public MachineFunctionPass {
|
class VISIBILITY_HIDDEN RA : public MachineFunctionPass {
|
||||||
const TargetMachine *TM;
|
const TargetMachine *TM;
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumStores("ra-simple", "Number of stores added");
|
static Statistic<> NumStores("ra-simple", "Number of stores added");
|
||||||
Statistic<> NumLoads ("ra-simple", "Number of loads added");
|
static Statistic<> NumLoads ("ra-simple", "Number of loads added");
|
||||||
|
|
||||||
class VISIBILITY_HIDDEN RegAllocSimple : public MachineFunctionPass {
|
class VISIBILITY_HIDDEN RegAllocSimple : public MachineFunctionPass {
|
||||||
MachineFunction *MF;
|
MachineFunction *MF;
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes combined");
|
static Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes combined");
|
||||||
|
|
||||||
class VISIBILITY_HIDDEN DAGCombiner {
|
class VISIBILITY_HIDDEN DAGCombiner {
|
||||||
SelectionDAG &DAG;
|
SelectionDAG &DAG;
|
||||||
|
@ -34,8 +34,8 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumNoops ("scheduler", "Number of noops inserted");
|
static Statistic<> NumNoops ("scheduler", "Number of noops inserted");
|
||||||
Statistic<> NumStalls("scheduler", "Number of pipeline stalls");
|
static Statistic<> NumStalls("scheduler", "Number of pipeline stalls");
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -45,11 +45,11 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumTwoAddressInstrs("twoaddressinstruction",
|
static Statistic<> NumTwoAddressInstrs("twoaddressinstruction",
|
||||||
"Number of two-address instructions");
|
"Number of two-address instructions");
|
||||||
Statistic<> NumCommuted("twoaddressinstruction",
|
static Statistic<> NumCommuted("twoaddressinstruction",
|
||||||
"Number of instructions commuted to coalesce");
|
"Number of instructions commuted to coalesce");
|
||||||
Statistic<> NumConvertedTo3Addr("twoaddressinstruction",
|
static Statistic<> NumConvertedTo3Addr("twoaddressinstruction",
|
||||||
"Number of instructions promoted to 3-address");
|
"Number of instructions promoted to 3-address");
|
||||||
|
|
||||||
struct VISIBILITY_HIDDEN TwoAddressInstructionPass
|
struct VISIBILITY_HIDDEN TwoAddressInstructionPass
|
||||||
|
@ -34,16 +34,16 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumSpills("spiller", "Number of register spills");
|
static Statistic<> NumSpills("spiller", "Number of register spills");
|
||||||
Statistic<> NumStores("spiller", "Number of stores added");
|
static Statistic<> NumStores("spiller", "Number of stores added");
|
||||||
Statistic<> NumLoads ("spiller", "Number of loads added");
|
static Statistic<> NumLoads ("spiller", "Number of loads added");
|
||||||
Statistic<> NumReused("spiller", "Number of values reused");
|
static Statistic<> NumReused("spiller", "Number of values reused");
|
||||||
Statistic<> NumDSE ("spiller", "Number of dead stores elided");
|
static Statistic<> NumDSE ("spiller", "Number of dead stores elided");
|
||||||
Statistic<> NumDCE ("spiller", "Number of copies elided");
|
static Statistic<> NumDCE ("spiller", "Number of copies elided");
|
||||||
|
|
||||||
enum SpillerName { simple, local };
|
enum SpillerName { simple, local };
|
||||||
|
|
||||||
cl::opt<SpillerName>
|
static cl::opt<SpillerName>
|
||||||
SpillerOpt("spiller",
|
SpillerOpt("spiller",
|
||||||
cl::desc("Spiller to use: (default: local)"),
|
cl::desc("Spiller to use: (default: local)"),
|
||||||
cl::Prefix,
|
cl::Prefix,
|
||||||
|
Reference in New Issue
Block a user