27 #define DEBUG_TYPE "livestacks"
31 "Live Stack Slot Analysis",
false,
false)
47 VNInfoAllocator.
Reset();
61 assert(Slot >= 0 &&
"Spill slot indice must be >= 0");
62 SS2IntervalMap::iterator
I = S2IMap.find(Slot);
63 if (I == S2IMap.end()) {
64 I = S2IMap.emplace(std::piecewise_construct, std::forward_as_tuple(Slot),
65 std::forward_as_tuple(
68 S2RCMap.insert(std::make_pair(Slot, RC));
80 OS <<
"********** INTERVALS **********\n";
A Module instance is used to store all the information related to an LLVM module. ...
LiveInterval - This class represents the liveness of a register, or stack slot.
INITIALIZE_PASS_BEGIN(LiveStacks,"livestacks","Live Stack Slot Analysis", false, false) INITIALIZE_PASS_END(LiveStacks
const TargetRegisterClass * getCommonSubClass(const TargetRegisterClass *A, const TargetRegisterClass *B) const
getCommonSubClass - find the largest common subclass of A and B.
const_iterator end() const
#define INITIALIZE_PASS_DEPENDENCY(depName)
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
const TargetRegisterClass * getIntervalRegClass(int Slot) const
void Reset()
Deallocate all but the current slab and reset the current pointer to the beginning of it...
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
LiveInterval & getOrCreateInterval(int Slot, const TargetRegisterClass *RC)
const char * getRegClassName(const TargetRegisterClass *Class) const
getRegClassName - Returns the name of the register class.
SS2IntervalMap::const_iterator const_iterator
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
char & LiveStacksID
LiveStacks pass. An analysis keeping track of the liveness of stack slots.
Represent the analysis usage information of a pass.
bool runOnMachineFunction(MachineFunction &) override
runOnMachineFunction - pass entry point
const_iterator begin() const
This class implements an extremely fast bulk output stream that can only output to a stream...
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
virtual const TargetRegisterInfo * getRegisterInfo() const
getRegisterInfo - If register information is available, return it.
void print(raw_ostream &O, const Module *=nullptr) const override
print - Implement the dump method.
static unsigned index2StackSlot(int FI)
index2StackSlot - Convert a non-negative frame index to a stack slot register value.