LLVM API Documentation
#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>
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 DEBUG_TYPE "stackcoloring" |
Definition at line 14 of file StackSlotColoring.cpp.
| 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" | ||||
| ) |
Definition at line 81 of file StackSlotColoring.cpp.
| SmallVector<SmallVector<LiveInterval*,4>, 16> Assignments |
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<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.
| const MachineLoopInfo* loopInfo |
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.
| SmallVector<unsigned, 16> OrigSizes |
Definition at line 75 of file StackSlotColoring.cpp.
| std::vector<LiveInterval*> SSIntervals |
Definition at line 66 of file StackSlotColoring.cpp.
| SmallVector<SmallVector<MachineInstr*, 8>, 16> SSRefs |
Definition at line 69 of file StackSlotColoring.cpp.
| const TargetInstrInfo* TII |
Definition at line 61 of file StackSlotColoring.cpp.
| const TargetRegisterInfo* TRI |
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] |