12#ifndef LLVM_CODEGEN_GLOBALISEL_LOSTDEBUGLOCOBSERVER_H
13#define LLVM_CODEGEN_GLOBALISEL_LOSTDEBUGLOCOBSERVER_H
23 unsigned NumLostDebugLocs = 0;
46 void analyzeDebugLocations();
This contains common code to allow clients to notify changes to machine instr.
This file defines the SmallSet class.
Abstract class that contains various methods for clients to notify about changes.
void createdInstr(MachineInstr &MI) override
An instruction has been created and inserted into the function.
void changedInstr(MachineInstr &MI) override
This instruction was mutated in some way.
void checkpoint(bool CheckDebugLocs=true)
Call this to indicate that it's a good point to assess whether locations have been lost.
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.
LostDebugLocObserver(StringRef DebugType)
unsigned getNumLostDebugLocs() const
Representation of each machine instruction.
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.