All apply functions now have a TransformRewriter & parameter. This rewriter should be used to modify the IR. It has a TrackingListener attached and updates the internal handle-payload mappings based on rewrites.
Implementations no longer need to create their own TrackingListener and IRRewriter. Error checking is integrated into applyTransform.
Additional API will be added to TransformRewriter in subsequent revisions. This revision just adds an "empty" TransformRewriter class and updates all apply implementations.
Depends On: D152446
Please update the actual tutorial as well, it lives in mlir/docs/Tutorials/transform/. It should remain in sync with these sources.