From dbac0cb21eefa2435fb2d9dbed4c2c426a482695 Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Sun, 10 Oct 2004 22:44:35 +0000 Subject: Added debug information. Fixed several bugs in the reconstruct loop function. llvm-svn: 16895 --- llvm/lib/CodeGen/ModuloScheduling/MSSchedule.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/ModuloScheduling/MSSchedule.h') diff --git a/llvm/lib/CodeGen/ModuloScheduling/MSSchedule.h b/llvm/lib/CodeGen/ModuloScheduling/MSSchedule.h index 892ab7c6081..248a7485917 100644 --- a/llvm/lib/CodeGen/ModuloScheduling/MSSchedule.h +++ b/llvm/lib/CodeGen/ModuloScheduling/MSSchedule.h @@ -32,6 +32,9 @@ namespace llvm { //Resulting kernel std::vector > kernel; + //Max stage count + int maxStage; + public: MSSchedule(int num) : numIssue(num) {} MSSchedule() : numIssue(4) {} @@ -40,7 +43,7 @@ namespace llvm { void clear() { schedule.clear(); resourceNumPerCycle.clear(); kernel.clear(); } std::vector >* getKernel() { return &kernel; } bool constructKernel(int II); - + int getMaxStage() { return maxStage; } //iterators -- cgit v1.2.3