LLVM 24.0.0git
MipsSEFrameLowering.cpp File Reference

Go to the source code of this file.

Functions

static std::pair< unsigned, unsigned > getMFHiLoOpc (unsigned Src)
static unsigned getNumCSRInstrs (const MipsSubtarget &STI, ArrayRef< CalleeSavedInfo > CSI)
 Return the number of instructions that save (or restore) the callee-saved registers in CSI.
static void setAliasRegs (MachineFunction &MF, BitVector &SavedRegs, unsigned Reg)
 Mark Reg and all registers aliasing it in the bitset.

Function Documentation

◆ getMFHiLoOpc()

std::pair< unsigned, unsigned > getMFHiLoOpc ( unsigned Src)
static

Definition at line 48 of file MipsSEFrameLowering.cpp.

References contains().

◆ getNumCSRInstrs()

unsigned getNumCSRInstrs ( const MipsSubtarget & STI,
ArrayRef< CalleeSavedInfo > CSI )
static

Return the number of instructions that save (or restore) the callee-saved registers in CSI.

On MIPS I an AFGR64 register has no sdc1/ldc1 and is saved and restored with two swc1/lwc1.

Definition at line 66 of file MipsSEFrameLowering.cpp.

References llvm::count_if(), llvm::MipsSubtarget::hasMips2(), I, N, and llvm::ArrayRef< T >::size().

Referenced by llvm::MipsSEFrameLowering::emitEpilogue(), and llvm::MipsSEFrameLowering::emitPrologue().

◆ setAliasRegs()

void setAliasRegs ( MachineFunction & MF,
BitVector & SavedRegs,
unsigned Reg )
static