Changed CPUResource to allow access to max num users for a resource.
authorTanya Lattner <tonic@nondot.org>
Sat, 8 May 2004 16:13:26 +0000 (16:13 +0000)
committerTanya Lattner <tonic@nondot.org>
Sat, 8 May 2004 16:13:26 +0000 (16:13 +0000)
Also added ModuloScheduling as a friend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13426 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetSchedInfo.h

index 343c097ef33f33a53999351449d8d5159aa12b57..7357c17cfb4d6625feedffcd951716f160bab706 100644 (file)
@@ -68,7 +68,7 @@ struct CPUResource {
   int maxNumUsers;   // MAXINT if no restriction
   
   CPUResource(const std::string& resourceName, int maxUsers);
-
+  static CPUResource* getCPUResource(resourceId_t id);
 private:
   static resourceId_t nextId;
 };
@@ -302,8 +302,7 @@ protected:
                           conflictLists;   // indexed by [opcode]
 
 
-  friend class ModuloSchedGraph;
-  friend class ModuloScheduling;
+  friend class ModuloSchedulingPass;
   
 };