This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Guard 64-bit atomic types
ClosedPublic

Authored by svenvh on Feb 15 2022, 9:42 AM.

Details

Summary

Until now, overloads with a 64-bit atomic type argument were always
made available with -fdeclare-opencl-builtins. Ensure these
overloads are only available when both the cl_khr_int64_base_atomics
and cl_khr_int64_extended_atomics extensions have been enabled, as
required by the OpenCL specification.

Diff Detail

Event Timeline

svenvh created this revision.Feb 15 2022, 9:42 AM
svenvh requested review of this revision.Feb 15 2022, 9:42 AM
Anastasia accepted this revision.Feb 15 2022, 10:02 AM

LGTM! Thanks!

I imagine this is another change to align with opencl-c.h?

This revision is now accepted and ready to land.Feb 15 2022, 10:02 AM

LGTM! Thanks!

I imagine this is another change to align with opencl-c.h?

Yes. This addresses the issue of D119398 for tablegen (although the problem for the tablegen case was less severe, since it only affects diagnostics).

This revision was landed with ongoing or failed builds.Feb 17 2022, 2:59 AM
This revision was automatically updated to reflect the committed changes.