LLVM API Documentation

Public Member Functions
llvm::HexagonFrameLowering Class Reference

#include <HexagonFrameLowering.h>

Inheritance diagram for llvm::HexagonFrameLowering:
Inheritance graph
[legend]
Collaboration diagram for llvm::HexagonFrameLowering:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HexagonFrameLowering ()
void emitPrologue (MachineFunction &MF) const override
void emitEpilogue (MachineFunction &MF, MachineBasicBlock &MBB) const override
bool spillCalleeSavedRegisters (MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const override
void eliminateCallFramePseudoInstr (MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const override
bool restoreCalleeSavedRegisters (MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const override
int getFrameIndexOffset (const MachineFunction &MF, int FI) const override
bool hasFP (const MachineFunction &MF) const override
bool hasTailCall (MachineBasicBlock &MBB) const

Detailed Description

Definition at line 18 of file HexagonFrameLowering.h.


Constructor & Destructor Documentation

Definition at line 23 of file HexagonFrameLowering.h.


Member Function Documentation

eliminateCallFramePseudoInstr - This method is called during prolog/epilog code insertion to eliminate call frame setup and destroy pseudo instructions (but only if the Target is using them). It is responsible for eliminating these instructions, replacing them with concrete instructions. This method need only be implemented if using call frame setup/destroy pseudo instructions.

Reimplemented from llvm::TargetFrameLowering.

Definition at line 332 of file HexagonFrameLowering.cpp.

References llvm::MachineBasicBlock::erase(), llvm::MachineInstr::getOpcode(), I, llvm_unreachable, and llvm::AArch64CC::MI.

void HexagonFrameLowering::emitEpilogue ( MachineFunction MF,
MachineBasicBlock MBB 
) const [override, virtual]
void HexagonFrameLowering::emitPrologue ( MachineFunction MF) const [override, virtual]
int HexagonFrameLowering::getFrameIndexOffset ( const MachineFunction MF,
int  FI 
) const [override, virtual]

getFrameIndexOffset - Returns the displacement from the frame register to the stack frame of the specified index.

getFrameIndexOffset - Returns the displacement from the frame register to the stack frame of the specified index. This is the default implementation which is overridden for some targets.

Reimplemented from llvm::TargetFrameLowering.

Definition at line 346 of file HexagonFrameLowering.cpp.

References llvm::MachineFunction::getFrameInfo(), and llvm::MachineFrameInfo::getObjectOffset().

bool HexagonFrameLowering::hasFP ( const MachineFunction MF) const [override, virtual]

hasFP - Return true if the specified function should have a dedicated frame pointer register. For most targets this is true only if the function has variable sized allocas or if frame pointer elimination is disabled.

Implements llvm::TargetFrameLowering.

Definition at line 206 of file HexagonFrameLowering.cpp.

References llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getInfo(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFrameInfo::hasCalls(), and llvm::HexagonMachineFunctionInfo::hasClobberLR().

Referenced by emitEpilogue(), and emitPrologue().

restoreCalleeSavedRegisters - Issues instruction(s) to restore all callee saved registers and returns true if it isn't possible / profitable to do so by issuing a series of load instructions via loadRegToStackSlot(). Returns false otherwise.

Reimplemented from llvm::TargetFrameLowering.

Definition at line 279 of file HexagonFrameLowering.cpp.

References llvm::MachineBasicBlock::addLiveIn(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::TargetRegisterInfo::getMinimalPhysRegClass(), llvm::MachineBasicBlock::getParent(), getReg(), llvm::MachineFunction::getSubtarget(), llvm::TargetInstrInfo::loadRegFromStackSlot(), TII, and uniqueSuperReg().

spillCalleeSavedRegisters - Issues instruction(s) to spill all callee saved registers and returns true if it isn't possible / profitable to do so by issuing a series of store instructions via storeRegToStackSlot(). Returns false otherwise.

Reimplemented from llvm::TargetFrameLowering.

Definition at line 225 of file HexagonFrameLowering.cpp.

References llvm::MachineBasicBlock::addLiveIn(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::TargetRegisterInfo::getMinimalPhysRegClass(), llvm::MachineBasicBlock::getParent(), getReg(), llvm::MachineFunction::getSubtarget(), llvm::TargetInstrInfo::storeRegToStackSlot(), TII, and uniqueSuperReg().


The documentation for this class was generated from the following files: