Add Generators.float16s that returns a Generator of Float16

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: hotspot
    • None

      compiler/lib/generators/Generators.java should contain a method like:

      ```
      Generator<Float16> float16s()
      ```

      Currently it offers one that generates shorts, but although usable, it's cumbersome:

      ```
      Generator<Short> float16s()
      ```

      The choice was made to return `Generator<Short>` to avoid dependency on the incubating module.

      JDK-8346236 is the issue that added this method in the first place.

      One caveat here might be that it is preferable to work with short[] rather than Float16[], since the former would be auto-vectorized and the latter not. See https://github.com/openjdk/jdk/pull/22755#discussion_r2684887233 for more details.

            Assignee:
            Unassigned
            Reporter:
            Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: