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

Some intrinsic flags could be replaced with one general flag

XMLWordPrintable

    • b03
    • generic
    • generic

      Currently we have individual flags to control some intrinsics generation. The more intrinsics we add - more flags we have. We should avoid adding new flags which are costly to maintain and remember.

      We have DisableIntrinsic flag to specify list of intrinsics which should be disabled:
       diagnostic(ccstrlist, DisableIntrinsic, "",

      We could add opposite flag to specify list of intrinsics which should be enabled:

      diagnostic(ccstrlist, EnableIntrinsic, "",

      Some intrinsics flag control set of intrinsics, for example, InlineUnsafeOps so we may keep them as flags. But flags which control specific intrinsic, for example, UseAESIntrinsics could be converted.

      Note, some flags setting are based on hardware feature and are set ergonomically in vm_version_<arch>.cpp files.

            xliu Xin Liu
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: