From f97f4f87601db59359c4423cd2e3b7437c77b080 Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Sat, 8 May 2004 16:13:26 +0000 Subject: [PATCH] Changed CPUResource to allow access to max num users for a resource. Also added ModuloScheduling as a friend. llvm-svn: 13426 --- include/llvm/Target/TargetSchedInfo.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h index 343c097ef33..7357c17cfb4 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; };