(ctx:AllocCtx, b:UOp)
| 169 | return ret |
| 170 | |
| 171 | def replace_input_buffer(ctx:AllocCtx, b:UOp): |
| 172 | ctx.replacements.append(b) |
| 173 | return UOp.param(len(ctx.replacements)-1, b.dtype, b.shape, b.device, |
| 174 | b._min_max if b.op is Ops.BIND else None, b.src[0].arg[0] if b.op is Ops.BIND else None) |
| 175 | |
| 176 | pm_finalize_call = PatternMatcher([ |
| 177 | (UPat(Ops.AFTER, name="x"), finalize_after), |