*** empty log message ***
authorChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 06:17:51 +0000 (06:17 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 06:17:51 +0000 (06:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3075 91177308-0d34-0410-b5e6-96231b3b80d8

17 files changed:
lib/CodeGen/InstrSched/InstrScheduling.cpp
lib/CodeGen/InstrSched/SchedGraph.cpp
lib/CodeGen/InstrSched/SchedGraph.h
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/MachineInstr.cpp
lib/Support/CommandLine.cpp
lib/Support/PluginLoader.cpp
lib/Target/SparcV9/InstrSched/InstrScheduling.cpp
lib/Target/SparcV9/InstrSched/SchedGraph.cpp
lib/Target/SparcV9/InstrSched/SchedGraph.h
lib/Target/TargetData.cpp
lib/Transforms/IPO/MutateStructTypes.cpp
lib/Transforms/IPO/OldPoolAllocate.cpp
lib/Transforms/Scalar/Reassociate.cpp
lib/Transforms/TransformInternals.cpp
support/lib/Support/CommandLine.cpp
support/lib/Support/PluginLoader.cpp

index 2271c780a3cdea79398eac7c817bd6fefab0cd67..19c6922d342e7007f3cbb6a7c20a6db4c184e64d 100644 (file)
@@ -79,7 +79,7 @@ private:
 //----------------------------------------------------------------------
 
 template<class _NodeType>
-class ScheduleIterator: public std::forward_iterator<_NodeType, ptrdiff_t> {
+class ScheduleIterator : public forward_iterator<_NodeType, ptrdiff_t> {
 private:
   unsigned cycleNum;
   unsigned slotNum;
index 8a9c8e573b3b10dede15c35150b7f40b0b4093cf..781604eaae7c1f33b25ec7a758c848b6ee674748 100644 (file)
@@ -132,7 +132,7 @@ SchedGraphEdge::~SchedGraphEdge()
 {
 }
 
-void SchedGraphEdge::dump(int indent=0) const {
+void SchedGraphEdge::dump(int indent) const {
   cerr << std::string(indent*2, ' ') << *this; 
 }
 
@@ -171,7 +171,7 @@ SchedGraphNode::~SchedGraphNode()
                 deleter<SchedGraphEdge>);
 }
 
-void SchedGraphNode::dump(int indent=0) const {
+void SchedGraphNode::dump(int indent) const {
   cerr << std::string(indent*2, ' ') << *this; 
 }
 
index 7db22d67346d600a45547f409f0e4fa8b56c3a15..0d59734e2da64d2442f96ed7fb1a58aa0e6ef379 100644 (file)
@@ -377,7 +377,7 @@ private:
 // for <const SchedGraphNode, SchedGraphNode::const_iterator>.
 // 
 template <class _NodeType, class _EdgeType, class _EdgeIter>
-class SGPredIterator: public std::bidirectional_iterator<_NodeType, ptrdiff_t> {
+class SGPredIterator: public bidirectional_iterator<_NodeType, ptrdiff_t> {
 protected:
   _EdgeIter oi;
 public:
@@ -406,7 +406,7 @@ public:
 };
 
 template <class _NodeType, class _EdgeType, class _EdgeIter>
-class SGSuccIterator: public std::bidirectional_iterator<_NodeType, ptrdiff_t> {
+class SGSuccIterator : public bidirectional_iterator<_NodeType, ptrdiff_t> {
 protected:
   _EdgeIter oi;
 public:
index ce39b45f12c6c9759a0f0e4041f4b8b6f1299772..f32f647e112eecf408c265c63b3d14f43a1dd461 100644 (file)
@@ -139,7 +139,7 @@ int
 MachineCodeForMethod::computeOffsetforLocalVar(const TargetMachine& target,
                                                const Value* val,
                                                unsigned int& getPaddedSize,
-                                               unsigned int  sizeToUse = 0)
+                                               unsigned int  sizeToUse)
 {
   bool growUp;
   int firstOffset =target.getFrameInfo().getFirstAutomaticVarOffset(*this,
@@ -174,7 +174,7 @@ MachineCodeForMethod::computeOffsetforLocalVar(const TargetMachine& target,
 int
 MachineCodeForMethod::allocateLocalVar(const TargetMachine& target,
                                        const Value* val,
-                                       unsigned int sizeToUse = 0)
+                                       unsigned int sizeToUse)
 {
   assert(! automaticVarsAreaFrozen &&
          "Size of auto vars area has been used to compute an offset so "
index 4fc373065881b8da2ff355099dcd77d5cbfccd98..124c28a2d975045a14b444d2996fc20f31f48833 100644 (file)
@@ -44,8 +44,8 @@ void
 MachineInstr::SetMachineOperandVal(unsigned int i,
                                    MachineOperand::MachineOperandType opType,
                                    Value* _val,
-                                   bool isdef=false,
-                                   bool isDefAndUse=false)
+                                   bool isdef,
+                                   bool isDefAndUse)
 {
   assert(i < operands.size());
   operands[i].Initialize(opType, _val);
@@ -69,9 +69,9 @@ MachineInstr::SetMachineOperandConst(unsigned int i,
 void
 MachineInstr::SetMachineOperandReg(unsigned int i,
                                    int regNum,
-                                   bool isdef=false,
-                                   bool isDefAndUse=false,
-                                   bool isCCReg=false)
+                                   bool isdef,
+                                   bool isDefAndUse,
+                                   bool isCCReg)
 {
   assert(i < operands.size());
   operands[i].InitializeReg(regNum, isCCReg);
index 433cefda7bf7f37617db8c15fccb54e78f203924..e125ebeb82206966e64e770f4a0e6cc752e23008 100644 (file)
@@ -138,7 +138,7 @@ static bool EatsUnboundedNumberOfValues(const Option *O) {
 }
 
 void cl::ParseCommandLineOptions(int &argc, char **argv,
-                                 const char *Overview = 0) {
+                                 const char *Overview) {
   assert((!getOpts().empty() || !getPositionalOpts().empty()) &&
          "No options specified, or ParseCommandLineOptions called more"
          " than once!");
@@ -396,7 +396,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
 // Option Base class implementation
 //
 
-bool Option::error(string Message, const char *ArgName = 0) {
+bool Option::error(string Message, const char *ArgName) {
   if (ArgName == 0) ArgName = ArgStr;
   if (ArgName[0] == 0)
     cerr << HelpStr;  // Be nice for positional arguments
index c2e4e89813a85a63725a284387d158b16540758b..dce923af7f67f4f68a82c4f4d7c5517c1759bc7f 100644 (file)
@@ -13,6 +13,7 @@
 #include "Support/CommandLine.h"
 #include <dlfcn.h>
 #include <link.h>
+#include <iostream>
 
 namespace {
   struct PluginLoader {
@@ -25,6 +26,6 @@ namespace {
 }
 
 // This causes operator= above to be invoked for every -load option.
-static cl::opt<PluginLoader, false, cl::parser<string> >
+static cl::opt<PluginLoader, false, cl::parser<std::string> >
 LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin.so"),
         cl::desc("Load the specified plugin"));
index 2271c780a3cdea79398eac7c817bd6fefab0cd67..19c6922d342e7007f3cbb6a7c20a6db4c184e64d 100644 (file)
@@ -79,7 +79,7 @@ private:
 //----------------------------------------------------------------------
 
 template<class _NodeType>
-class ScheduleIterator: public std::forward_iterator<_NodeType, ptrdiff_t> {
+class ScheduleIterator : public forward_iterator<_NodeType, ptrdiff_t> {
 private:
   unsigned cycleNum;
   unsigned slotNum;
index 8a9c8e573b3b10dede15c35150b7f40b0b4093cf..781604eaae7c1f33b25ec7a758c848b6ee674748 100644 (file)
@@ -132,7 +132,7 @@ SchedGraphEdge::~SchedGraphEdge()
 {
 }
 
-void SchedGraphEdge::dump(int indent=0) const {
+void SchedGraphEdge::dump(int indent) const {
   cerr << std::string(indent*2, ' ') << *this; 
 }
 
@@ -171,7 +171,7 @@ SchedGraphNode::~SchedGraphNode()
                 deleter<SchedGraphEdge>);
 }
 
-void SchedGraphNode::dump(int indent=0) const {
+void SchedGraphNode::dump(int indent) const {
   cerr << std::string(indent*2, ' ') << *this; 
 }
 
index 7db22d67346d600a45547f409f0e4fa8b56c3a15..0d59734e2da64d2442f96ed7fb1a58aa0e6ef379 100644 (file)
@@ -377,7 +377,7 @@ private:
 // for <const SchedGraphNode, SchedGraphNode::const_iterator>.
 // 
 template <class _NodeType, class _EdgeType, class _EdgeIter>
-class SGPredIterator: public std::bidirectional_iterator<_NodeType, ptrdiff_t> {
+class SGPredIterator: public bidirectional_iterator<_NodeType, ptrdiff_t> {
 protected:
   _EdgeIter oi;
 public:
@@ -406,7 +406,7 @@ public:
 };
 
 template <class _NodeType, class _EdgeType, class _EdgeIter>
-class SGSuccIterator: public std::bidirectional_iterator<_NodeType, ptrdiff_t> {
+class SGSuccIterator : public bidirectional_iterator<_NodeType, ptrdiff_t> {
 protected:
   _EdgeIter oi;
 public:
index e306d4e250fb44cda63331ee0c40893da6d0dffe..8712fc9f5987744405855bccf7922bf85a76c9e8 100644 (file)
@@ -74,11 +74,11 @@ Annotation *TargetData::TypeAnFactory(AnnotationID AID, const Annotable *T,
 //===----------------------------------------------------------------------===//
 
 TargetData::TargetData(const std::string &TargetName,
-             unsigned char IntRegSize = 8, unsigned char PtrSize = 8,
-            unsigned char PtrAl = 8, unsigned char DoubleAl = 8,
-            unsigned char FloatAl = 4, unsigned char LongAl = 8
-            unsigned char IntAl = 4, unsigned char ShortAl = 2,
-            unsigned char ByteAl = 1)
+             unsigned char IntRegSize, unsigned char PtrSize,
+            unsigned char PtrAl, unsigned char DoubleAl,
+            unsigned char FloatAl, unsigned char LongAl
+            unsigned char IntAl, unsigned char ShortAl,
+            unsigned char ByteAl)
   : AID(AnnotationManager::getID("TargetData::" + TargetName)) {
   AnnotationManager::registerAnnotationFactory(AID, TypeAnFactory, this);
 
index 4058a3d03aa6f6ede21f43a370a9241cf2f2fd3b..174f7a102b1c9d8ff8925b731df329438e5aba5a 100644 (file)
@@ -108,7 +108,7 @@ const Type *MutateStructTypes::ConvertType(const Type *Ty) {
 //
 void MutateStructTypes::AdjustIndices(const CompositeType *OldTy,
                                       vector<Value*> &Idx,
-                                      unsigned i = 0) {
+                                      unsigned i) {
   assert(i < Idx.size() && "i out of range!");
   const CompositeType *NewCT = cast<CompositeType>(ConvertType(OldTy));
   if (NewCT == OldTy) return;  // No adjustment unless type changes
index e74c8b22c15a3e7bad12eaba99aeab440fc861f1..c22d53ef91767e8a0547fc9e3069921d238f3903 100644 (file)
@@ -1759,5 +1759,6 @@ bool PoolAllocate::run(Module &M) {
 //
 Pass *createPoolAllocatePass() { 
   assert(0 && "Pool allocator disabled!");
+  return 0;
   //return new PoolAllocate(); 
 }
index 05758039d944f5f38b019f190a18d8ccb9eaa927..a6ad88a9ea653c3b6dc7c8a9aa721dac42e39f0d 100644 (file)
@@ -33,7 +33,7 @@ static Statistic<> NumSwapped("reassociate\t- Number of insts with operands swap
 
 namespace {
   class Reassociate : public FunctionPass {
-    map<BasicBlock*, unsigned> RankMap;
+    std::map<BasicBlock*, unsigned> RankMap;
   public:
     bool runOnFunction(Function &F);
 
index 05bc69438b6d48e57bda73d2918a5ef487b0461e..f8476231cf9b3e6dfcd5bd370b6d77cbe4298e04 100644 (file)
@@ -52,7 +52,7 @@ static const Type *getStructOffsetStep(const StructType *STy, unsigned &Offset,
 //
 const Type *getStructOffsetType(const Type *Ty, unsigned &Offset,
                                 std::vector<Value*> &Indices,
-                                bool StopEarly = true) {
+                                bool StopEarly) {
   if (Offset == 0 && StopEarly && !Indices.empty())
     return Ty;    // Return the leaf type
 
@@ -87,7 +87,7 @@ const Type *getStructOffsetType(const Type *Ty, unsigned &Offset,
 //
 const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal,
                              std::vector<Value*> &Indices,
-                             BasicBlock::iterator *BI = 0) {
+                             BasicBlock::iterator *BI) {
   const CompositeType *CompTy = dyn_cast<CompositeType>(Ty);
   if (CompTy == 0) return 0;
 
index 433cefda7bf7f37617db8c15fccb54e78f203924..e125ebeb82206966e64e770f4a0e6cc752e23008 100644 (file)
@@ -138,7 +138,7 @@ static bool EatsUnboundedNumberOfValues(const Option *O) {
 }
 
 void cl::ParseCommandLineOptions(int &argc, char **argv,
-                                 const char *Overview = 0) {
+                                 const char *Overview) {
   assert((!getOpts().empty() || !getPositionalOpts().empty()) &&
          "No options specified, or ParseCommandLineOptions called more"
          " than once!");
@@ -396,7 +396,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
 // Option Base class implementation
 //
 
-bool Option::error(string Message, const char *ArgName = 0) {
+bool Option::error(string Message, const char *ArgName) {
   if (ArgName == 0) ArgName = ArgStr;
   if (ArgName[0] == 0)
     cerr << HelpStr;  // Be nice for positional arguments
index c2e4e89813a85a63725a284387d158b16540758b..dce923af7f67f4f68a82c4f4d7c5517c1759bc7f 100644 (file)
@@ -13,6 +13,7 @@
 #include "Support/CommandLine.h"
 #include <dlfcn.h>
 #include <link.h>
+#include <iostream>
 
 namespace {
   struct PluginLoader {
@@ -25,6 +26,6 @@ namespace {
 }
 
 // This causes operator= above to be invoked for every -load option.
-static cl::opt<PluginLoader, false, cl::parser<string> >
+static cl::opt<PluginLoader, false, cl::parser<std::string> >
 LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin.so"),
         cl::desc("Load the specified plugin"));