[llvm] InstructionSelect: Use GISelChangeObserver instead of MachineFunction::Delegate (PR #105725)

Tobias Stadler via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 16:19:47 PDT 2024


================
@@ -36,6 +38,8 @@ class InstructionSelector : public GIMatchTableExecutor {
   const TargetPassConfig *TPC = nullptr;
 
   MachineOptimizationRemarkEmitter *MORE = nullptr;
+
+  GISelObserverWrapper *AllObservers = nullptr;
----------------
tobias-stadler wrote:

Add `/// Note: InstructionSelect does not track changed instructions. changingInstr() and changedInstr() will never be called on these observers.`?

https://github.com/llvm/llvm-project/pull/105725


More information about the llvm-commits mailing list