25 #define DEBUG_TYPE "livestacks" 29 "Live Stack Slot Analysis",
false,
false)
45 VNInfoAllocator.
Reset();
59 assert(Slot >= 0 &&
"Spill slot indice must be >= 0");
60 SS2IntervalMap::iterator
I = S2IMap.find(Slot);
61 if (I == S2IMap.end()) {
62 I = S2IMap.emplace(std::piecewise_construct, std::forward_as_tuple(Slot),
63 std::forward_as_tuple(
66 S2RCMap.insert(std::make_pair(Slot, RC));
78 OS <<
"********** INTERVALS **********\n";
const TargetRegisterClass * getCommonSubClass(const TargetRegisterClass *A, const TargetRegisterClass *B, const MVT::SimpleValueType SVT=MVT::SimpleValueType::Any) const
Find the largest common subclass of A and B.
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
SS2IntervalMap::const_iterator const_iterator
virtual const TargetRegisterInfo * getRegisterInfo() const
getRegisterInfo - If register information is available, return it.
LiveInterval - This class represents the liveness of a register, or stack slot.
const char * getRegClassName(const TargetRegisterClass *Class) const
Returns the name of the register class.
#define INITIALIZE_PASS_DEPENDENCY(depName)
void Reset()
Deallocate all but the current slab and reset the current pointer to the beginning of it...
LiveInterval & getOrCreateInterval(int Slot, const TargetRegisterClass *RC)
const_iterator begin() const
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
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.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
INITIALIZE_PASS_BEGIN(LiveStacks, DEBUG_TYPE, "Live Stack Slot Analysis", false, false) INITIALIZE_PASS_END(LiveStacks
Represent the analysis usage information of a pass.
INITIALIZE_PASS_END(RegBankSelect, DEBUG_TYPE, "Assign register bank of generic virtual registers", false, false) RegBankSelect
bool runOnMachineFunction(MachineFunction &) override
runOnMachineFunction - pass entry point
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const TargetRegisterClass * getIntervalRegClass(int Slot) 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...
const_iterator end() const
void print(raw_ostream &O, const Module *=nullptr) const override
print - Implement the dump method.
static unsigned index2StackSlot(int FI)
Convert a non-negative frame index to a stack slot register value.