LLVM: llvm::LostDebugLocObserver Class Reference (original) (raw)

#include "[llvm/CodeGen/GlobalISel/LostDebugLocObserver.h](LostDebugLocObserver%5F8h%5Fsource.html)"

Public Member Functions
LostDebugLocObserver (StringRef DebugType)
unsigned getNumLostDebugLocs () const
void checkpoint (bool CheckDebugLocs=true)
Call this to indicate that it's a good point to assess whether locations have been lost.
void createdInstr (MachineInstr &MI) override
An instruction has been created and inserted into the function.
void erasingInstr (MachineInstr &MI) override
An instruction is about to be erased.
void changingInstr (MachineInstr &MI) override
This instruction is about to be mutated in some way.
void changedInstr (MachineInstr &MI) override
This instruction was mutated in some way.
Public Member Functions inherited from llvm::GISelChangeObserver
virtual ~GISelChangeObserver ()=default
LLVM_ABI void changingAllUsesOfReg (const MachineRegisterInfo &MRI, Register Reg)
All the instructions using the given register are being changed.
LLVM_ABI void finishedChangingAllUsesOfReg ()
All instructions reported as changing by changingAllUsesOfReg() have finished being changed.

Definition at line 20 of file LostDebugLocObserver.h.

llvm::LostDebugLocObserver::LostDebugLocObserver ( StringRef DebugType) inline

changedInstr()

void LostDebugLocObserver::changedInstr ( MachineInstr & MI) overridevirtual

changingInstr()

void LostDebugLocObserver::changingInstr ( MachineInstr & MI) overridevirtual

checkpoint()

void LostDebugLocObserver::checkpoint ( bool CheckDebugLocs = true )

Call this to indicate that it's a good point to assess whether locations have been lost.

Typically this will be when a logical change has been completed such as the caller has finished replacing some instructions with alternatives. When CheckDebugLocs is true, the locations will be checked to see if any have been lost since the last checkpoint. When CheckDebugLocs is false, it will just reset ready for the next checkpoint without checking anything. This can be helpful to limit the detection to easy-to-fix portions of an algorithm before allowing more difficult ones.

Definition at line 70 of file LostDebugLocObserver.cpp.

Referenced by llvm::createLibcall(), llvm::createMemLibcall(), llvm::Legalizer::legalizeMachineFunction(), and llvm::saveUsesAndErase().

createdInstr()

void LostDebugLocObserver::createdInstr ( MachineInstr & MI) overridevirtual

erasingInstr()

void LostDebugLocObserver::erasingInstr ( MachineInstr & MI) overridevirtual

getNumLostDebugLocs()

unsigned llvm::LostDebugLocObserver::getNumLostDebugLocs ( ) const inline

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