LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::LiveRangeEdit::Delegate Class Reference

Callback methods for LiveRangeEdit owners. More...

#include "llvm/CodeGen/LiveRangeEdit.h"

Public Member Functions

virtual ~Delegate ()=default
 
virtual void LRE_WillEraseInstruction (MachineInstr *MI)
 Called immediately before erasing a dead machine instruction. More...
 
virtual bool LRE_CanEraseVirtReg (unsigned)
 Called when a virtual register is no longer used. More...
 
virtual void LRE_WillShrinkVirtReg (unsigned)
 Called before shrinking the live range of a virtual register. More...
 
virtual void LRE_DidCloneVirtReg (unsigned New, unsigned Old)
 Called after cloning a virtual register. More...
 

Detailed Description

Callback methods for LiveRangeEdit owners.

Definition at line 49 of file LiveRangeEdit.h.

Constructor & Destructor Documentation

◆ ~Delegate()

virtual llvm::LiveRangeEdit::Delegate::~Delegate ( )
virtualdefault

Member Function Documentation

◆ LRE_CanEraseVirtReg()

virtual bool llvm::LiveRangeEdit::Delegate::LRE_CanEraseVirtReg ( unsigned  )
inlinevirtual

Called when a virtual register is no longer used.

Return false to defer its deletion from LiveIntervals.

Definition at line 60 of file LiveRangeEdit.h.

◆ LRE_DidCloneVirtReg()

virtual void llvm::LiveRangeEdit::Delegate::LRE_DidCloneVirtReg ( unsigned  New,
unsigned  Old 
)
inlinevirtual

Called after cloning a virtual register.

This is used for new registers representing connected components of Old.

Definition at line 67 of file LiveRangeEdit.h.

References aa, llvm::RegState::Dead, MI, MRI, and TII.

◆ LRE_WillEraseInstruction()

virtual void llvm::LiveRangeEdit::Delegate::LRE_WillEraseInstruction ( MachineInstr MI)
inlinevirtual

Called immediately before erasing a dead machine instruction.

Definition at line 56 of file LiveRangeEdit.h.

◆ LRE_WillShrinkVirtReg()

virtual void llvm::LiveRangeEdit::Delegate::LRE_WillShrinkVirtReg ( unsigned  )
inlinevirtual

Called before shrinking the live range of a virtual register.

Definition at line 63 of file LiveRangeEdit.h.


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