]> granicus.if.org Git - llvm/commitdiff
[NFC] Declare the member data of class PostGenericScheduler as "protected" instead...
authorQingShan Zhang <qshanz@cn.ibm.com>
Wed, 6 Mar 2019 02:39:18 +0000 (02:39 +0000)
committerQingShan Zhang <qshanz@cn.ibm.com>
Wed, 6 Mar 2019 02:39:18 +0000 (02:39 +0000)
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".

Differential Revision: https://reviews.llvm.org/D58949

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355475 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineScheduler.h

index 705799877028141543ea8368eda809b3e2cd57d1..692335fc7a6d63d95d965cf170f5a963e1c8a8d6 100644 (file)
@@ -1014,6 +1014,7 @@ protected:
 /// Callbacks from ScheduleDAGMI:
 ///   initPolicy -> initialize(DAG) -> registerRoots -> pickNode ...
 class PostGenericScheduler : public GenericSchedulerBase {
+protected:
   ScheduleDAGMI *DAG;
   SchedBoundary Top;
   SmallVector<SUnit*, 8> BotRoots;