This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Do not guard vload/store_half builtins
ClosedPublic

Authored by svenvh on May 11 2022, 9:59 AM.

Details

Summary

The vload*_half* and vstore*_half* builtins do not require the
cl_khr_fp16 extension: pointers to half can be declared without the
extension and the _half variants of vload and vstore should be
available without the extension.

This aligns the guards for these builtins for
-fdeclare-opencl-builtins with opencl-c.h.

Fixes https://github.com/llvm/llvm-project/issues/55275

Diff Detail

Event Timeline

svenvh created this revision.May 11 2022, 9:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2022, 9:59 AM
svenvh requested review of this revision.May 11 2022, 9:59 AM
svenvh updated this revision to Diff 428952.May 12 2022, 8:24 AM

Add test case.

Anastasia accepted this revision.May 16 2022, 3:18 AM

LGTM! Thanks

This revision is now accepted and ready to land.May 16 2022, 3:18 AM
This revision was automatically updated to reflect the committed changes.