LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
ResourcePriorityQueue.cpp File Reference
#include "llvm/CodeGen/ResourcePriorityQueue.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/SelectionDAGNodes.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetLowering.h"
#include "llvm/Target/TargetMachine.h"
Include dependency graph for ResourcePriorityQueue.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "scheduler"
 

Functions

static unsigned numberCtrlDepsInSU (SUnit *SU)
 
static unsigned numberCtrlPredInSU (SUnit *SU)
 

Variables

static cl::opt< boolDisableDFASched ("disable-dfa-sched", cl::Hidden, cl::ZeroOrMore, cl::init(false), cl::desc("Disable use of DFA during scheduling"))
 
static cl::opt< signed > RegPressureThreshold ("dfa-sched-reg-pressure-threshold", cl::Hidden, cl::ZeroOrMore, cl::init(5), cl::desc("Track reg pressure and switch priority to in-depth"))
 
static const unsigned PriorityOne = 200
 
static const unsigned PriorityTwo = 50
 
static const unsigned PriorityThree = 15
 
static const unsigned PriorityFour = 5
 
static const unsigned ScaleOne = 20
 
static const unsigned ScaleTwo = 10
 
static const unsigned ScaleThree = 5
 
static const unsigned FactorOne = 2
 

Macro Definition Documentation

#define DEBUG_TYPE   "scheduler"

Definition at line 22 of file ResourcePriorityQueue.cpp.

Function Documentation

static unsigned numberCtrlDepsInSU ( SUnit SU)
static

Definition at line 146 of file ResourcePriorityQueue.cpp.

References I, and llvm::SUnit::Succs.

Referenced by llvm::ResourcePriorityQueue::scheduledNode().

static unsigned numberCtrlPredInSU ( SUnit SU)
static

Definition at line 156 of file ResourcePriorityQueue.cpp.

References I, and llvm::SUnit::Preds.

Referenced by llvm::ResourcePriorityQueue::scheduledNode().

Variable Documentation

cl::opt<bool> DisableDFASched("disable-dfa-sched", cl::Hidden, cl::ZeroOrMore, cl::init(false), cl::desc("Disable use of DFA during scheduling"))
static
const unsigned FactorOne = 2
static
const unsigned PriorityFour = 5
static
const unsigned PriorityOne = 200
static
const unsigned PriorityThree = 15
static
const unsigned PriorityTwo = 50
static
cl::opt<signed> RegPressureThreshold("dfa-sched-reg-pressure-threshold", cl::Hidden, cl::ZeroOrMore, cl::init(5), cl::desc("Track reg pressure and switch priority to in-depth"))
static
const unsigned ScaleOne = 20
static
const unsigned ScaleThree = 5
static
const unsigned ScaleTwo = 10
static