diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-04 05:55:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-04 05:55:42 +0000 |
commit | b99bd2b14501fe596de56120d8618042e48509e2 (patch) | |
tree | 12d09351532016f06edbbb5a073359d6353192f8 /lib | |
parent | bc53c04789ba11e241ef9793fc3cae5b2902725b (diff) |
Move instrIsFeasible from InstrScheduling.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.h | 15 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedPriorities.h | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.h b/lib/CodeGen/InstrSched/SchedPriorities.h index 7cbd0d1259..78b685dadd 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.h +++ b/lib/CodeGen/InstrSched/SchedPriorities.h @@ -32,7 +32,9 @@ class Method; class MachineInstr; class SchedulingManager; +//--------------------------------------------------------------------------- // Debug option levels for instruction scheduling + enum SchedDebugLevel_t { Sched_NoDebugInfo, Sched_PrintMachineCode, @@ -42,6 +44,19 @@ enum SchedDebugLevel_t { extern cl::Enum<SchedDebugLevel_t> SchedDebugLevel; +//--------------------------------------------------------------------------- +// Function: instrIsFeasible +// +// Purpose: +// Used by the priority analysis to filter out instructions +// that are not feasible to issue in the current cycle. +// Should only be used during schedule construction.. +//--------------------------------------------------------------------------- + +bool instrIsFeasible(const SchedulingManager &S, MachineOpCode opCode); + + + struct NodeDelayPair { const SchedGraphNode* node; cycles_t delay; diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.h b/lib/Target/SparcV9/InstrSched/SchedPriorities.h index 7cbd0d1259..78b685dadd 100644 --- a/lib/Target/SparcV9/InstrSched/SchedPriorities.h +++ b/lib/Target/SparcV9/InstrSched/SchedPriorities.h @@ -32,7 +32,9 @@ class Method; class MachineInstr; class SchedulingManager; +//--------------------------------------------------------------------------- // Debug option levels for instruction scheduling + enum SchedDebugLevel_t { Sched_NoDebugInfo, Sched_PrintMachineCode, @@ -42,6 +44,19 @@ enum SchedDebugLevel_t { extern cl::Enum<SchedDebugLevel_t> SchedDebugLevel; +//--------------------------------------------------------------------------- +// Function: instrIsFeasible +// +// Purpose: +// Used by the priority analysis to filter out instructions +// that are not feasible to issue in the current cycle. +// Should only be used during schedule construction.. +//--------------------------------------------------------------------------- + +bool instrIsFeasible(const SchedulingManager &S, MachineOpCode opCode); + + + struct NodeDelayPair { const SchedGraphNode* node; cycles_t delay; |