LLVM 24.0.0git
XtensaFrameLowering.cpp File Reference

Go to the source code of this file.

Macros

#define UNITS_PER_WORD   4
#define MIN_FRAME_SIZE   (8 * UNITS_PER_WORD)

Functions

static uint64_t getFrameSize (const MachineFunction &MF, uint64_t StackSize)
static uint64_t getMaxStackSize (const MachineFunction &MF, uint64_t Estimate)
static bool canUseDefAsScratchReg (const MachineInstr &MI, const MachineRegisterInfo &MRI, const TargetRegisterInfo *TRI)
static bool canEncodeFrameOffset (const MachineInstr &MI, unsigned OpNo, int64_t StackSize, int64_t FrameSize)
static bool frameOffsetMayNeedScratchReg (const MachineFunction &MF, uint64_t Estimate)

Macro Definition Documentation

◆ MIN_FRAME_SIZE

#define MIN_FRAME_SIZE   (8 * UNITS_PER_WORD)

Definition at line 31 of file XtensaFrameLowering.cpp.

Referenced by llvm::XtensaFrameLowering::emitPrologue().

◆ UNITS_PER_WORD

#define UNITS_PER_WORD   4

Definition at line 30 of file XtensaFrameLowering.cpp.

Function Documentation

◆ canEncodeFrameOffset()

◆ canUseDefAsScratchReg()

bool canUseDefAsScratchReg ( const MachineInstr & MI,
const MachineRegisterInfo & MRI,
const TargetRegisterInfo * TRI )
static

Definition at line 392 of file XtensaFrameLowering.cpp.

References MI, MRI, and TRI.

Referenced by frameOffsetMayNeedScratchReg().

◆ frameOffsetMayNeedScratchReg()

◆ getFrameSize()

◆ getMaxStackSize()