aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2004-04-30 20:40:38 +0000
committerTanya Lattner <tonic@nondot.org>2004-04-30 20:40:38 +0000
commit0e1c48b20995f4c6c304688ff2d06f26528baf1a (patch)
tree513436671ff0e8fb784f8f6e0b6c07ccf052dfad /include/llvm/Target
parenteeddcdc8c7a8abbdc637e93453caca5933bfd02a (diff)
downloadexternal_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
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetSchedInfo.h20
1 files changed, 5 insertions, 15 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;
};