[#llvm-eraseInstrs] = xref:llvm.adoc[llvm]::eraseInstrs :relfileprefix: ../ :mrdocs: Erase a list of dead instructions, optionally notifying a debug observer. == Synopsis Declared in `<llvm/CodeGen/GlobalISel/Utils.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void eraseInstrs( xref:llvm/ArrayRef-08.adoc[ArrayRef<MachineInstr*>] DeadInstrs, xref:llvm/MachineRegisterInfo.adoc[MachineRegisterInfo]& MRI, xref:llvm/LostDebugLocObserver.adoc[LostDebugLocObserver]* LocObserver = nullptr); ---- == Parameters [cols="1,4"] |=== | Name| Description | *DeadInstrs* | Instructions to erase. | *MRI* | Register information for the function. | *LocObserver* | Optional observer for lost debug locations. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#