From 681220dc3c80b2485cac895a18e63a028eb0fed0 Mon Sep 17 00:00:00 2001 From: Guochun Shi Date: Mon, 7 Apr 2003 00:00:36 +0000 Subject: [PATCH] added a function and a member to the TargetSchedInfo class which is used by Modulo Scheduling pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5766 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetSchedInfo.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h index c1375655564..22d8045ae58 100644 --- a/include/llvm/Target/TargetSchedInfo.h +++ b/include/llvm/Target/TargetSchedInfo.h @@ -267,6 +267,15 @@ public: return getInstrRUsage(opCode).numBubbles; } + inline unsigned getCPUResourceNum(int rd)const{ + for(unsigned i=0;i > resourceNumVector; + protected: unsigned numSchedClasses; const TargetInstrInfo* mii; @@ -294,6 +306,12 @@ protected: std::vector > issueGaps; // indexed by [opcode1][opcode2] std::vector > conflictLists; // indexed by [opcode] + + + + friend class ModuloSchedGraph; + friend class ModuloScheduling; + }; #endif