LLVM 24.0.0git
StackColoring.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "stack-coloring"

Functions

 STATISTIC (NumMarkerSeen, "Number of lifetime markers found.")
 STATISTIC (StackSpaceSaved, "Number of bytes saved due to merging slots.")
 STATISTIC (StackSlotMerged, "Number of stack slot merged.")
 STATISTIC (EscapedAllocas, "Number of allocas that escaped the lifetime region")
 INITIALIZE_PASS_BEGIN (StackColoringLegacy, DEBUG_TYPE, "Merge disjoint stack slots", false, false) INITIALIZE_PASS_END(StackColoringLegacy
static int getStartOrEndSlot (const MachineInstr &MI)

Variables

 DEBUG_TYPE
Merge disjoint stack slots
Merge disjoint stack false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "stack-coloring"

Definition at line 67 of file StackColoring.cpp.

Function Documentation

◆ getStartOrEndSlot()

int getStartOrEndSlot ( const MachineInstr & MI)
inlinestatic

Definition at line 546 of file StackColoring.cpp.

References assert(), llvm::MachineOperand::getIndex(), and MI.

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( StackColoringLegacy ,
DEBUG_TYPE ,
"Merge disjoint stack slots" ,
false ,
false  )

◆ STATISTIC() [1/4]

STATISTIC ( EscapedAllocas ,
"Number of allocas that escaped the lifetime region"  )

References llvm::End.

◆ STATISTIC() [2/4]

STATISTIC ( NumMarkerSeen ,
"Number of lifetime markers found."  )

◆ STATISTIC() [3/4]

STATISTIC ( StackSlotMerged ,
"Number of stack slot merged."  )

◆ STATISTIC() [4/4]

STATISTIC ( StackSpaceSaved ,
"Number of bytes saved due to merging slots."  )

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 501 of file StackColoring.cpp.

◆ false

Merge disjoint stack false

Definition at line 502 of file StackColoring.cpp.

◆ slots

Merge disjoint stack slots

Definition at line 502 of file StackColoring.cpp.