[PATCH] D58949: [NFC] Declare the member data of class PostGenericScheduler as "protected" instead of "private"

Qing Shan Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 18:43:14 PST 2019


steven.zhang created this revision.
steven.zhang added reviewers: hfinkel, atrick, jsji, stefanp.
Herald added subscribers: javed.absar, MatzeB.
Herald added a project: LLVM.

Some target might try to subclass the PostGenericScheduler to custom the scheduling strategy. We need to declare the member data of PostGenericScheduler as "protected", which acts the same as "GenericScheduler".


https://reviews.llvm.org/D58949

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


Index: llvm/include/llvm/CodeGen/MachineScheduler.h
===================================================================
--- llvm/include/llvm/CodeGen/MachineScheduler.h
+++ llvm/include/llvm/CodeGen/MachineScheduler.h
@@ -1014,6 +1014,7 @@
 /// Callbacks from ScheduleDAGMI:
 ///   initPolicy -> initialize(DAG) -> registerRoots -> pickNode ...
 class PostGenericScheduler : public GenericSchedulerBase {
+protected:
   ScheduleDAGMI *DAG;
   SchedBoundary Top;
   SmallVector<SUnit*, 8> BotRoots;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58949.189260.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190305/e09dfa10/attachment.bin>


More information about the llvm-commits mailing list