LLVM 22.0.0git
GCNILPSched.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Macros

#define DEBUG_TYPE   "machine-scheduler"

Functions

static unsigned CalcNodeSethiUllmanNumber (const SUnit *SU, std::vector< unsigned > &SUNumbers)
 CalcNodeSethiUllmanNumber - Compute Sethi Ullman number.
static unsigned closestSucc (const SUnit *SU)
 closestSucc - Returns the scheduled cycle of the successor which is closest to the current cycle.
static unsigned calcMaxScratches (const SUnit *SU)
 calcMaxScratches - Returns an cost estimate of the worse case requirement for scratch registers, i.e.
static int BUCompareLatency (const SUnit *left, const SUnit *right)
std::vector< const SUnit * > llvm::makeGCNILPScheduler (ArrayRef< const SUnit * > BotRoots, const ScheduleDAG &DAG)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "machine-scheduler"

Definition at line 17 of file GCNILPSched.cpp.

Function Documentation

◆ BUCompareLatency()

int BUCompareLatency ( const SUnit * left,
const SUnit * right )
static

◆ calcMaxScratches()

unsigned calcMaxScratches ( const SUnit * SU)
static

calcMaxScratches - Returns an cost estimate of the worse case requirement for scratch registers, i.e.

number of data dependencies.

Definition at line 121 of file GCNILPSched.cpp.

References llvm::SUnit::Preds.

◆ CalcNodeSethiUllmanNumber()

unsigned CalcNodeSethiUllmanNumber ( const SUnit * SU,
std::vector< unsigned > & SUNumbers )
static

CalcNodeSethiUllmanNumber - Compute Sethi Ullman number.

Smaller number is the higher priority.

Definition at line 58 of file GCNILPSched.cpp.

References CalcNodeSethiUllmanNumber(), llvm::SUnit::NodeNum, and llvm::SUnit::Preds.

Referenced by CalcNodeSethiUllmanNumber().

◆ closestSucc()

unsigned closestSucc ( const SUnit * SU)
static

closestSucc - Returns the scheduled cycle of the successor which is closest to the current cycle.

Definition at line 106 of file GCNILPSched.cpp.

References llvm::SUnit::getHeight(), llvm::SDep::getSUnit(), llvm::SDep::isCtrl(), and llvm::SUnit::Succs.