LLVM 22.0.0git
LocalStackSlotAllocation.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "localstackalloc"

Functions

 STATISTIC (NumAllocations, "Number of frame indices allocated into local block")
 STATISTIC (NumBaseRegisters, "Number of virtual frame base registers allocated")
 STATISTIC (NumReplacements, "Number of frame indices references replaced")
 INITIALIZE_PASS (LocalStackSlotPass, DEBUG_TYPE, "Local Stack Slot Allocation", false, false) bool LocalStackSlotImpl
static bool lookupCandidateBaseReg (Register BaseReg, int64_t BaseOffset, int64_t FrameSizeAdjust, int64_t LocalFrameOffset, const MachineInstr &MI, const TargetRegisterInfo *TRI)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "localstackalloc"

Definition at line 43 of file LocalStackSlotAllocation.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( LocalStackSlotPass ,
DEBUG_TYPE ,
"Local Stack Slot Allocation" ,
false ,
false  )

◆ lookupCandidateBaseReg()

bool lookupCandidateBaseReg ( Register BaseReg,
int64_t BaseOffset,
int64_t FrameSizeAdjust,
int64_t LocalFrameOffset,
const MachineInstr & MI,
const TargetRegisterInfo * TRI )
inlinestatic

Definition at line 290 of file LocalStackSlotAllocation.cpp.

References MI, llvm::Offset, and TRI.

◆ STATISTIC() [1/3]

STATISTIC ( NumAllocations ,
"Number of frame indices allocated into local block"  )

◆ STATISTIC() [2/3]

STATISTIC ( NumBaseRegisters ,
"Number of virtual frame base registers allocated"  )

◆ STATISTIC() [3/3]

STATISTIC ( NumReplacements ,
"Number of frame indices references replaced"  )

References I, MI, and llvm::Offset.