[llvm] r355475 - [NFC] Declare the member data of class PostGenericScheduler as "protected" instead of "private"
QingShan Zhang via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 18:39:18 PST 2019
Author: qshanz
Date: Tue Mar 5 18:39:18 2019
New Revision: 355475
URL: http://llvm.org/viewvc/llvm-project?rev=355475&view=rev
Log:
[NFC] Declare the member data of class PostGenericScheduler as "protected" instead of "private"
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
Modified:
llvm/trunk/include/llvm/CodeGen/MachineScheduler.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineScheduler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineScheduler.h?rev=355475&r1=355474&r2=355475&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineScheduler.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineScheduler.h Tue Mar 5 18:39:18 2019
@@ -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;
More information about the llvm-commits
mailing list