[PATCH] D23679: MachineScheduler: Make some GenericScheduler member variables protected

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 19 09:52:43 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL279270: MachineScheduler: Make some GenericScheduler member variables protected (authored by tstellar).

Changed prior to commit:
  https://reviews.llvm.org/D23679?vs=68569&id=68706#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23679

Files:
  llvm/trunk/include/llvm/CodeGen/MachineScheduler.h

Index: llvm/trunk/include/llvm/CodeGen/MachineScheduler.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineScheduler.h
+++ llvm/trunk/include/llvm/CodeGen/MachineScheduler.h
@@ -874,18 +874,6 @@
 /// GenericScheduler shrinks the unscheduled zone using heuristics to balance
 /// the schedule.
 class GenericScheduler : public GenericSchedulerBase {
-  ScheduleDAGMILive *DAG;
-
-  // State of the top and bottom scheduled instruction boundaries.
-  SchedBoundary Top;
-  SchedBoundary Bot;
-
-  /// Candidate last picked from Top boundary.
-  SchedCandidate TopCand;
-  /// Candidate last picked from Bot boundary.
-  SchedCandidate BotCand;
-
-  MachineSchedPolicy RegionPolicy;
 public:
   GenericScheduler(const MachineSchedContext *C):
     GenericSchedulerBase(C), DAG(nullptr), Top(SchedBoundary::TopQID, "TopQ"),
@@ -924,6 +912,20 @@
   void registerRoots() override;
 
 protected:
+  ScheduleDAGMILive *DAG;
+
+  MachineSchedPolicy RegionPolicy;
+
+  // State of the top and bottom scheduled instruction boundaries.
+  SchedBoundary Top;
+  SchedBoundary Bot;
+
+  /// Candidate last picked from Top boundary.
+  SchedCandidate TopCand;
+  /// Candidate last picked from Bot boundary.
+  SchedCandidate BotCand;
+
+
   void checkAcyclicLatency();
 
   void initCandidate(SchedCandidate &Cand, SUnit *SU, bool AtTop,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23679.68706.patch
Type: text/x-patch
Size: 1386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160819/f08ae82c/attachment.bin>


More information about the llvm-commits mailing list