[PATCH] D23679: MachineScheduler: Make some GenericScheduler member variables protected
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 18 10:44:53 PDT 2016
tstellarAMD created this revision.
tstellarAMD added reviewers: MatzeB, atrick.
tstellarAMD added a subscriber: llvm-commits.
Herald added a subscriber: MatzeB.
We will need these in AMDGPU's new SchedStrategy implmentation.
https://reviews.llvm.org/D23679
Files:
include/llvm/CodeGen/MachineScheduler.h
Index: include/llvm/CodeGen/MachineScheduler.h
===================================================================
--- include/llvm/CodeGen/MachineScheduler.h
+++ include/llvm/CodeGen/MachineScheduler.h
@@ -935,18 +935,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"),
@@ -985,6 +973,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.68569.patch
Type: text/x-patch
Size: 1353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160818/e829f026/attachment.bin>
More information about the llvm-commits
mailing list