LLVM 22.0.0git
SILowerSGPRSpills.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "si-lower-sgpr-spills"

Typedefs

using MBBVector = SmallVector<MachineBasicBlock *, 4>

Functions

 INITIALIZE_PASS_BEGIN (SILowerSGPRSpillsLegacy, DEBUG_TYPE, "SI lower SGPR spill instructions", false, false) INITIALIZE_PASS_END(SILowerSGPRSpillsLegacy
static bool isLiveIntoMBB (MCRegister Reg, MachineBasicBlock &MBB, const TargetRegisterInfo *TRI)
static void insertCSRSaves (MachineBasicBlock &SaveBlock, ArrayRef< CalleeSavedInfo > CSI, SlotIndexes *Indexes, LiveIntervals *LIS)
 Insert spill code for the callee-saved registers used in the function.
static void insertCSRRestores (MachineBasicBlock &RestoreBlock, MutableArrayRef< CalleeSavedInfo > CSI, SlotIndexes *Indexes, LiveIntervals *LIS)
 Insert restore code for the callee-saved registers used in the function.
static void updateLiveness (MachineFunction &MF, ArrayRef< CalleeSavedInfo > CSI)

Variables

 DEBUG_TYPE
SI lower SGPR spill instructions
SI lower SGPR spill false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "si-lower-sgpr-spills"

Definition at line 31 of file SILowerSGPRSpills.cpp.

Typedef Documentation

◆ MBBVector

Definition at line 33 of file SILowerSGPRSpills.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( SILowerSGPRSpillsLegacy ,
DEBUG_TYPE ,
"SI lower SGPR spill instructions" ,
false ,
false  )

◆ insertCSRRestores()

◆ insertCSRSaves()

◆ isLiveIntoMBB()

bool isLiveIntoMBB ( MCRegister Reg,
MachineBasicBlock & MBB,
const TargetRegisterInfo * TRI )
static

Definition at line 103 of file SILowerSGPRSpills.cpp.

References const, isLiveIntoMBB(), MBB, Reg, and TRI.

Referenced by insertCSRSaves(), and isLiveIntoMBB().

◆ updateLiveness()

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 98 of file SILowerSGPRSpills.cpp.

◆ false

SI lower SGPR spill false

Definition at line 99 of file SILowerSGPRSpills.cpp.

◆ instructions

SI lower SGPR spill instructions

Definition at line 99 of file SILowerSGPRSpills.cpp.