aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2004-05-08 16:13:26 +0000
committerTanya Lattner <tonic@nondot.org>2004-05-08 16:13:26 +0000
commite5abfd2c053058c322a5ef0213e8a0155fb9c05e (patch)
treeb7bbf0ad1092162eb3a6bd144821bd401aa945cc
parent6b160503b502317316b688b80cde6c2fb6d71484 (diff)
Changed CPUResource to allow access to max num users for a resource.
Also added ModuloScheduling as a friend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13426 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetSchedInfo.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h
index 343c097ef3..7357c17cfb 100644
--- a/include/llvm/Target/TargetSchedInfo.h
+++ b/include/llvm/Target/TargetSchedInfo.h
@@ -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;
};