Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303415

Add VM_Version::is_intrinsic_supported(id)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b14
    • generic
    • generic

      Currently we check VM's flags, directives and JIT compiler's support when we generate intrinsics.
      We have *product* VM flags for most intrinsics and set them in VM based on HW support.
      But not all intrinsics have such flags and it is not scalable to add new *product* flag for each new intrinsic.
      Also we have -XX:DisableIntrinsic=<id> and -XX:ControlIntrinsic=<id> flags to control intrinsics from command line. We don't need specific flags for that.

      I propose to add new VM_Version::is_intrinsic_supported(id) method to check HW/platform support for an intrinsic without adding a new flag.

            kvn Vladimir Kozlov
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: