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 | a8171dd554849bdb944952494e31663e12215198 (patch) | |
tree | c6cd94ad43cb430046da7a44366b99e09d3aaad6 /llvm/lib | |
parent | b3c64a73ad62dfa90617bbf1894ffb713009d2b8 (diff) | |
download | bcm5719-llvm-a8171dd554849bdb944952494e31663e12215198.tar.gz bcm5719-llvm-a8171dd554849bdb944952494e31663e12215198.zip |
Move instrIsFeasible from InstrScheduling.h
llvm-svn: 1674
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/InstrSched/SchedPriorities.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h index 7cbd0d12596..78b685dadde 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h +++ b/llvm/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; |