LLVM API Documentation

StackSlotColoring.cpp File Reference

#include "VirtRegMap.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/LiveStackAnalysis.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/PseudoSourceValue.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include <vector>

Include dependency graph for StackSlotColoring.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "stackcoloring"

Functions

 STATISTIC (NumEliminated,"Number of stack slots eliminated due to coloring")
 STATISTIC (NumRegRepl,"Number of stack slot refs replaced with reg refs")
 STATISTIC (NumLoadElim,"Number of loads eliminated")
 STATISTIC (NumStoreElim,"Number of stores eliminated")
 STATISTIC (NumDead,"Number of trivially dead stack accesses eliminated")
FunctionPass * llvm::createStackSlotColoringPass (bool)
 createStackSlotColoringPass - This pass performs stack slot coloring.

Variables

static cl::opt< bool > DisableSharing ("no-stack-slot-sharing", cl::init(false), cl::Hidden, cl::desc("Suppress slot sharing during stack coloring"))
static cl::opt< bool > ColorWithRegsOpt ("color-ss-with-regs", cl::init(false), cl::Hidden, cl::desc("Color stack slots with free registers"))
static cl::opt< int > DCELimit ("ssc-dce-limit", cl::init(-1), cl::Hidden)
static RegisterPass
< StackSlotColoring > 
X ("stack-slot-coloring","Stack Slot Coloring")


Define Documentation

#define DEBUG_TYPE   "stackcoloring"

Definition at line 14 of file StackSlotColoring.cpp.


Function Documentation

STATISTIC ( NumDead  ,
"Number of trivially dead stack accesses eliminated"   
)

STATISTIC ( NumStoreElim  ,
"Number of stores eliminated"   
)

STATISTIC ( NumLoadElim  ,
"Number of loads eliminated"   
)

STATISTIC ( NumRegRepl  ,
"Number of stack slot refs replaced with reg refs"   
)

STATISTIC ( NumEliminated  ,
"Number of stack slots eliminated due to coloring"   
)


Variable Documentation

Definition at line 81 of file StackSlotColoring.cpp.

Definition at line 90 of file StackSlotColoring.cpp.

Definition at line 56 of file StackSlotColoring.cpp.

cl::opt<bool> ColorWithRegsOpt("color-ss-with-regs", cl::init(false), cl::Hidden, cl::desc("Color stack slots with free registers")) [static]

cl::opt<int> DCELimit("ssc-dce-limit", cl::init(-1), cl::Hidden) [static]

cl::opt<bool> DisableSharing("no-stack-slot-sharing", cl::init(false), cl::Hidden, cl::desc("Suppress slot sharing during stack coloring")) [static]

char ID [static]

Definition at line 93 of file StackSlotColoring.cpp.

Definition at line 63 of file StackSlotColoring.cpp.

Definition at line 57 of file StackSlotColoring.cpp.

Definition at line 59 of file StackSlotColoring.cpp.

Definition at line 60 of file StackSlotColoring.cpp.

int NextColor

Definition at line 84 of file StackSlotColoring.cpp.

Definition at line 72 of file StackSlotColoring.cpp.

Definition at line 75 of file StackSlotColoring.cpp.

std::vector<LiveInterval*> SSIntervals

Definition at line 66 of file StackSlotColoring.cpp.

Definition at line 69 of file StackSlotColoring.cpp.

Definition at line 61 of file StackSlotColoring.cpp.

Definition at line 62 of file StackSlotColoring.cpp.

Definition at line 87 of file StackSlotColoring.cpp.

Definition at line 58 of file StackSlotColoring.cpp.

RegisterPass<StackSlotColoring> X("stack-slot-coloring","Stack Slot Coloring") [static]