LLVM 22.0.0git
M68kFrameLowering.cpp File Reference

This file contains the M68k implementation of TargetFrameLowering class. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "m68k-frame"

Functions

static unsigned findDeadCallerSavedReg (MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const M68kRegisterInfo *TRI)
 Return a caller-saved register that isn't live when it reaches the "return" instruction.
static bool isRegLiveIn (MachineBasicBlock &MBB, unsigned Reg)
static bool isTailCallOpcode (unsigned Opc)

Detailed Description

This file contains the M68k implementation of TargetFrameLowering class.

Definition in file M68kFrameLowering.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "m68k-frame"

Definition at line 36 of file M68kFrameLowering.cpp.

Function Documentation

◆ findDeadCallerSavedReg()

unsigned findDeadCallerSavedReg ( MachineBasicBlock & MBB,
MachineBasicBlock::iterator & MBBI,
const M68kRegisterInfo * TRI )
static

Return a caller-saved register that isn't live when it reaches the "return" instruction.

We can then pop a stack object to this register without worry about clobbering it.

Definition at line 139 of file M68kFrameLowering.cpp.

References llvm::MachineFunction::callsEHReturn(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isReg(), llvm::MCRegAliasIterator::isValid(), MBB, MBBI, Reg, TRI, and Uses.

Referenced by llvm::M68kFrameLowering::emitSPUpdate().

◆ isRegLiveIn()

bool isRegLiveIn ( MachineBasicBlock & MBB,
unsigned Reg )
static

Definition at line 178 of file M68kFrameLowering.cpp.

References llvm::any_of(), MBB, and Reg.

Referenced by llvm::M68kFrameLowering::emitSPUpdate().

◆ isTailCallOpcode()

bool isTailCallOpcode ( unsigned Opc)
static