Removing MachineResource class.
authorTanya Lattner <tonic@nondot.org>
Fri, 30 Apr 2004 20:40:38 +0000 (20:40 +0000)
committerTanya Lattner <tonic@nondot.org>
Fri, 30 Apr 2004 20:40:38 +0000 (20:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13291 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetSchedInfo.h
lib/Target/TargetSchedInfo.cpp

index f979bf08990e64a1a34af9b320833096a6f5e228..8f64087a452fe6307e10d1316271f22314328da8 100644 (file)
@@ -62,24 +62,15 @@ namespace llvm {
 
 typedef unsigned resourceId_t;
 
-struct MachineResource {
+struct CPUResource {
   const std::string rname;
   resourceId_t rid;
+  int maxNumUsers;   // MAXINT if no restriction
   
-  MachineResource(const std::string &resourceName)
-    : rname(resourceName), rid(nextId++) {}
-  
+  CPUResource(const std::string& resourceName, int maxUsers)
+    : rname(resourceName), rid(nextId++), maxNumUsers(maxUsers) {}
 private:
   static resourceId_t nextId;
-  MachineResource();                   // disable
-};
-
-
-struct CPUResource : public MachineResource {
-  int maxNumUsers;   // MAXINT if no restriction
-  
-  CPUResource(const std::string& rname, int maxUsers)
-    : MachineResource(rname), maxNumUsers(maxUsers) {}
 };
 
 
@@ -312,8 +303,7 @@ protected:
 
 
 
-  friend class ModuloSchedGraph;
-  friend class ModuloScheduling;
+  friend class ModuloSchedulingPass;
   
 };
 
index 33538cec9e8ed8450ac97156d85e60badb7d4022..a4a27e7103fe06592f036ea07a67926a50fe5d55 100644 (file)
@@ -17,7 +17,7 @@
 
 namespace llvm {
 
-resourceId_t MachineResource::nextId = 0;
+resourceId_t CPUResource::nextId = 0;
 
 // Check if fromRVec and toRVec have *any* common entries.
 // Assume the vectors are sorted in increasing order.