Changes in directory llvm/lib/CodeGen:
MachineFunction.cpp updated: 1.94 -> 1.95 PrologEpilogInserter.cpp updated: 1.54 -> 1.55 RegAllocLinearScan.cpp updated: 1.123 -> 1.124 RegAllocSimple.cpp updated: 1.67 -> 1.68 TwoAddressInstructionPass.cpp updated: 1.34 -> 1.35 VirtRegMap.cpp updated: 1.66 -> 1.67 --- Log message: Shave another 27K off libllvmgcc.dylib with visibility hidden --- Diffs of the changes: (+19 -10) MachineFunction.cpp | 5 +++-- PrologEpilogInserter.cpp | 3 ++- RegAllocLinearScan.cpp | 3 ++- RegAllocSimple.cpp | 3 ++- TwoAddressInstructionPass.cpp | 4 +++- VirtRegMap.cpp | 11 +++++++---- 6 files changed, 19 insertions(+), 10 deletions(-) Index: llvm/lib/CodeGen/MachineFunction.cpp diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.94 llvm/lib/CodeGen/MachineFunction.cpp:1.95 --- llvm/lib/CodeGen/MachineFunction.cpp:1.94 Tue Jun 27 11:49:46 2006 +++ llvm/lib/CodeGen/MachineFunction.cpp Wed Jun 28 17:17:39 2006 @@ -27,6 +27,7 @@ #include "llvm/Instructions.h" #include "llvm/Support/LeakDetector.h" #include "llvm/Support/GraphWriter.h" +#include "llvm/Support/Visibility.h" #include "llvm/Config/config.h" #include <fstream> #include <iostream> @@ -39,7 +40,7 @@ namespace { - struct Printer : public MachineFunctionPass { + struct VISIBILITY_HIDDEN Printer : public MachineFunctionPass { std::ostream *OS; const std::string Banner; @@ -69,7 +70,7 @@ } namespace { - struct Deleter : public MachineFunctionPass { + struct VISIBILITY_HIDDEN Deleter : public MachineFunctionPass { const char *getPassName() const { return "Machine Code Deleter"; } bool runOnMachineFunction(MachineFunction &MF) { Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.54 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.55 --- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.54 Fri May 12 13:02:04 2006 +++ llvm/lib/CodeGen/PrologEpilogInserter.cpp Wed Jun 28 17:17:39 2006 @@ -24,10 +24,11 @@ #include "llvm/Target/MRegisterInfo.h" #include "llvm/Target/TargetFrameInfo.h" #include "llvm/Target/TargetInstrInfo.h" +#include "llvm/Support/Visibility.h" using namespace llvm; namespace { - struct PEI : public MachineFunctionPass { + struct VISIBILITY_HIDDEN PEI : public MachineFunctionPass { const char *getPassName() const { return "Prolog/Epilog Insertion & Frame Finalization"; } Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.123 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.124 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.123 Fri May 12 14:07:46 2006 +++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Wed Jun 28 17:17:39 2006 @@ -26,6 +26,7 @@ #include "llvm/ADT/Statistic.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/Visibility.h" #include <algorithm> #include <cmath> #include <iostream> @@ -43,7 +44,7 @@ static unsigned numIterations = 0; static unsigned numIntervals = 0; - struct RA : public MachineFunctionPass { + struct VISIBILITY_HIDDEN RA : public MachineFunctionPass { typedef std::pair<LiveInterval*, LiveInterval::iterator> IntervalPtr; typedef std::vector<IntervalPtr> IntervalPtrs; private: Index: llvm/lib/CodeGen/RegAllocSimple.cpp diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.67 llvm/lib/CodeGen/RegAllocSimple.cpp:1.68 --- llvm/lib/CodeGen/RegAllocSimple.cpp:1.67 Thu May 4 12:52:23 2006 +++ llvm/lib/CodeGen/RegAllocSimple.cpp Wed Jun 28 17:17:39 2006 @@ -23,6 +23,7 @@ #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/Visibility.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/STLExtras.h" #include <iostream> @@ -32,7 +33,7 @@ Statistic<> NumStores("ra-simple", "Number of stores added"); Statistic<> NumLoads ("ra-simple", "Number of loads added"); - class RegAllocSimple : public MachineFunctionPass { + class VISIBILITY_HIDDEN RegAllocSimple : public MachineFunctionPass { MachineFunction *MF; const TargetMachine *TM; const MRegisterInfo *RegInfo; Index: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp diff -u llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.34 llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.35 --- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.34 Wed May 24 12:04:04 2006 +++ llvm/lib/CodeGen/TwoAddressInstructionPass.cpp Wed Jun 28 17:17:39 2006 @@ -38,6 +38,7 @@ #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/Visibility.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/STLExtras.h" #include <iostream> @@ -51,7 +52,8 @@ Statistic<> NumConvertedTo3Addr("twoaddressinstruction", "Number of instructions promoted to 3-address"); - struct TwoAddressInstructionPass : public MachineFunctionPass { + struct VISIBILITY_HIDDEN TwoAddressInstructionPass + : public MachineFunctionPass { virtual void getAnalysisUsage(AnalysisUsage &AU) const; /// runOnMachineFunction - pass entry point Index: llvm/lib/CodeGen/VirtRegMap.cpp diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.66 llvm/lib/CodeGen/VirtRegMap.cpp:1.67 --- llvm/lib/CodeGen/VirtRegMap.cpp:1.66 Thu May 4 12:52:23 2006 +++ llvm/lib/CodeGen/VirtRegMap.cpp Wed Jun 28 17:17:39 2006 @@ -26,6 +26,7 @@ #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/Visibility.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/STLExtras.h" #include <algorithm> @@ -130,7 +131,7 @@ Spiller::~Spiller() {} namespace { - struct SimpleSpiller : public Spiller { + struct VISIBILITY_HIDDEN SimpleSpiller : public Spiller { bool runOnMachineFunction(MachineFunction& mf, VirtRegMap &VRM); }; } @@ -204,7 +205,7 @@ /// block to attempt to keep spills in registers as much as possible for /// blocks that have low register pressure (the vreg may be spilled due to /// register pressure in other blocks). - class LocalSpiller : public Spiller { + class VISIBILITY_HIDDEN LocalSpiller : public Spiller { const MRegisterInfo *MRI; const TargetInstrInfo *TII; public: @@ -240,7 +241,8 @@ /// per-stack-slot basis as the low bit in the value of the SpillSlotsAvailable /// entries. The predicate 'canClobberPhysReg()' checks this bit and /// addAvailable sets it if. -class AvailableSpills { +namespace { +class VISIBILITY_HIDDEN AvailableSpills { const MRegisterInfo *MRI; const TargetInstrInfo *TII; @@ -304,6 +306,7 @@ /// for this slot lives in (as the previous value is dead now). void ModifyStackSlot(int Slot); }; +} /// ClobberPhysRegOnly - This is called when the specified physreg changes /// value. We use this to invalidate any info about stuff we thing lives in it. @@ -379,7 +382,7 @@ /// ReuseInfo - This maintains a collection of ReuseOp's for each operand that /// is reused instead of reloaded. - class ReuseInfo { + class VISIBILITY_HIDDEN ReuseInfo { MachineInstr &MI; std::vector<ReusedOp> Reuses; public: _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits