[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp LowerGC.cpp LowerInvoke.cpp LowerSwitch.cpp Mem2Reg.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jun 28 15:08:27 PDT 2006



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.493 -> 1.494
LowerGC.cpp updated: 1.10 -> 1.11
LowerInvoke.cpp updated: 1.36 -> 1.37
LowerSwitch.cpp updated: 1.21 -> 1.22
Mem2Reg.cpp updated: 1.17 -> 1.18
---
Log message:

Shrink libllvmgcc.dylib by another 23K


---
Diffs of the changes:  (+12 -6)

 InstructionCombining.cpp |    6 ++++--
 LowerGC.cpp              |    3 ++-
 LowerInvoke.cpp          |    3 ++-
 LowerSwitch.cpp          |    3 ++-
 Mem2Reg.cpp              |    3 ++-
 5 files changed, 12 insertions(+), 6 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.493 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.494
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.493	Wed Jun 28 12:34:50 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Wed Jun 28 17:08:15 2006
@@ -48,6 +48,7 @@
 #include "llvm/Support/InstVisitor.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/PatternMatch.h"
+#include "llvm/Support/Visibility.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/ADT/STLExtras.h"
 #include <algorithm>
@@ -62,8 +63,9 @@
   Statistic<> NumDeadStore("instcombine", "Number of dead stores eliminated");
   Statistic<> NumSunkInst ("instcombine", "Number of instructions sunk");
 
-  class InstCombiner : public FunctionPass,
-                       public InstVisitor<InstCombiner, Instruction*> {
+  class VISIBILITY_HIDDEN InstCombiner
+    : public FunctionPass,
+      public InstVisitor<InstCombiner, Instruction*> {
     // Worklist of all of the instructions that need to be simplified.
     std::vector<Instruction*> WorkList;
     TargetData *TD;


Index: llvm/lib/Transforms/Scalar/LowerGC.cpp
diff -u llvm/lib/Transforms/Scalar/LowerGC.cpp:1.10 llvm/lib/Transforms/Scalar/LowerGC.cpp:1.11
--- llvm/lib/Transforms/Scalar/LowerGC.cpp:1.10	Sat Jan 14 13:30:35 2006
+++ llvm/lib/Transforms/Scalar/LowerGC.cpp	Wed Jun 28 17:08:15 2006
@@ -26,10 +26,11 @@
 #include "llvm/Instructions.h"
 #include "llvm/Module.h"
 #include "llvm/Pass.h"
+#include "llvm/Support/Visibility.h"
 using namespace llvm;
 
 namespace {
-  class LowerGC : public FunctionPass {
+  class VISIBILITY_HIDDEN LowerGC : public FunctionPass {
     /// GCRootInt, GCReadInt, GCWriteInt - The function prototypes for the
     /// llvm.gcread/llvm.gcwrite/llvm.gcroot intrinsics.
     Function *GCRootInt, *GCReadInt, *GCWriteInt;


Index: llvm/lib/Transforms/Scalar/LowerInvoke.cpp
diff -u llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.36 llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.37
--- llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.36	Wed May 17 16:05:27 2006
+++ llvm/lib/Transforms/Scalar/LowerInvoke.cpp	Wed Jun 28 17:08:15 2006
@@ -44,6 +44,7 @@
 #include "llvm/Transforms/Utils/Local.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Visibility.h"
 #include <csetjmp>
 using namespace llvm;
 
@@ -55,7 +56,7 @@
   cl::opt<bool> ExpensiveEHSupport("enable-correct-eh-support",
  cl::desc("Make the -lowerinvoke pass insert expensive, but correct, EH code"));
 
-  class LowerInvoke : public FunctionPass {
+  class VISIBILITY_HIDDEN LowerInvoke : public FunctionPass {
     // Used for both models.
     Function *WriteFn;
     Function *AbortFn;


Index: llvm/lib/Transforms/Scalar/LowerSwitch.cpp
diff -u llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.21 llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.22
--- llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.21	Wed May 17 16:05:27 2006
+++ llvm/lib/Transforms/Scalar/LowerSwitch.cpp	Wed Jun 28 17:08:15 2006
@@ -20,6 +20,7 @@
 #include "llvm/Instructions.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/Visibility.h"
 #include "llvm/ADT/Statistic.h"
 #include <algorithm>
 #include <iostream>
@@ -31,7 +32,7 @@
   /// LowerSwitch Pass - Replace all SwitchInst instructions with chained branch
   /// instructions.  Note that this cannot be a BasicBlock pass because it
   /// modifies the CFG!
-  class LowerSwitch : public FunctionPass {
+  class VISIBILITY_HIDDEN LowerSwitch : public FunctionPass {
   public:
     virtual bool runOnFunction(Function &F);
     


Index: llvm/lib/Transforms/Scalar/Mem2Reg.cpp
diff -u llvm/lib/Transforms/Scalar/Mem2Reg.cpp:1.17 llvm/lib/Transforms/Scalar/Mem2Reg.cpp:1.18
--- llvm/lib/Transforms/Scalar/Mem2Reg.cpp:1.17	Wed May 17 16:05:27 2006
+++ llvm/lib/Transforms/Scalar/Mem2Reg.cpp	Wed Jun 28 17:08:15 2006
@@ -20,12 +20,13 @@
 #include "llvm/Function.h"
 #include "llvm/Target/TargetData.h"
 #include "llvm/ADT/Statistic.h"
+#include "llvm/Support/Visibility.h"
 using namespace llvm;
 
 namespace {
   Statistic<> NumPromoted("mem2reg", "Number of alloca's promoted");
 
-  struct PromotePass : public FunctionPass {
+  struct VISIBILITY_HIDDEN PromotePass : public FunctionPass {
     // runOnFunction - To run this pass, first we calculate the alloca
     // instructions that are safe for promotion, then we promote each one.
     //






More information about the llvm-commits mailing list