HomePhabricator

[GISel]: Provide standard interface to observe changes in GISel passes

Authored by aditya_nandakumar on Dec 5 2018, 12:14 PM.

Description

[GISel]: Provide standard interface to observe changes in GISel passes

https://reviews.llvm.org/D54980

This provides a standard API across GISel passes to observe and notify
passes about changes (insertions/deletions/mutations) to MachineInstrs.
This patch also removes the recordInsertion method in MachineIRBuilder
and instead provides method to setObserver.

Reviewed by: vkeles.

llvm-svn: 348406

Details