[code-reflection] Integrated: Remove the Op copy methods

Paul Sandoz psandoz at openjdk.org
Tue Sep 30 19:49:48 UTC 2025


On Tue, 23 Sep 2025 18:14:14 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> The two `copy` methods on `Op` were not widely used, and may cause confusion as to which can be used and when to use the underlying `transform` method instead.
> 
> The no-arg `copy` method is very confusing because it only works for operations with no operands and capture no values, namely operations like `func` operations whose body is isolated. The single arg `copy` method defers to `transform` with the copying transformer, `OpTransformer.COPYING_TRANSFORMER`.

This pull request has now been integrated.

Changeset: e2236199
Author:    Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/e22361991569a8ececc3bb359b59105eb180e4c9
Stats:     39 lines in 3 files changed: 7 ins; 27 del; 5 mod

Remove the Op copy methods

-------------

PR: https://git.openjdk.org/babylon/pull/581


More information about the babylon-dev mailing list