This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Add cl_khr_subgroup_non_uniform_arithmetic to TableGen BIFs
ClosedPublic

Authored by svenvh on Feb 3 2021, 6:35 AM.

Details

Summary

Add the builtin functions brought by the cl_khr_subgroup_non_uniform_arithmetic extension to -fdeclare-opencl-builtins.

Diff Detail

Event Timeline

svenvh created this revision.Feb 3 2021, 6:35 AM
svenvh requested review of this revision.Feb 3 2021, 6:35 AM
Anastasia accepted this revision.Feb 5 2021, 5:23 AM

LGTM! Thanks

clang/lib/Sema/OpenCLBuiltins.td
1529

There is a bit of repetition with FuncExtKhrSubgroups but I guess it's not worth creating common patterns?

This revision is now accepted and ready to land.Feb 5 2021, 5:23 AM
svenvh added inline comments.Feb 5 2021, 5:45 AM
clang/lib/Sema/OpenCLBuiltins.td
1529

Indeed there is some overlap, but factoring out commonality would increase complexity.

This revision was landed with ongoing or failed builds.Feb 10 2021, 1:45 AM
This revision was automatically updated to reflect the committed changes.