diff options
author | Tanya Lattner <tonic@nondot.org> | 2004-04-30 20:40:38 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2004-04-30 20:40:38 +0000 |
commit | 0e1c48b20995f4c6c304688ff2d06f26528baf1a (patch) | |
tree | 513436671ff0e8fb784f8f6e0b6c07ccf052dfad | |
parent | eeddcdc8c7a8abbdc637e93453caca5933bfd02a (diff) | |
download | external_llvm-0e1c48b20995f4c6c304688ff2d06f26528baf1a.zip external_llvm-0e1c48b20995f4c6c304688ff2d06f26528baf1a.tar.gz external_llvm-0e1c48b20995f4c6c304688ff2d06f26528baf1a.tar.bz2 |
Removing MachineResource class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13291 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetSchedInfo.h | 20 | ||||
-rw-r--r-- | lib/Target/TargetSchedInfo.cpp | 2 |
2 files changed, 6 insertions, 16 deletions
diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h index f979bf0..8f64087 100644 --- a/include/llvm/Target/TargetSchedInfo.h +++ b/include/llvm/Target/TargetSchedInfo.h @@ -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; }; diff --git a/lib/Target/TargetSchedInfo.cpp b/lib/Target/TargetSchedInfo.cpp index 33538ce..a4a27e7 100644 --- a/lib/Target/TargetSchedInfo.cpp +++ b/lib/Target/TargetSchedInfo.cpp @@ -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. |