This is an archive of the discontinued LLVM Phabricator instance.

Add fp16 builtin implementations to libclc's clspv target.
Needs ReviewPublic

Authored by aarongreig on Oct 5 2022, 7:52 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Many of these are simply upcast based implementations with some edge case handling, the ones with the license text at the top were ported from the rocm device library (hence the license text). Some of the upcast implementations here rely on builtins added by https://reviews.llvm.org/D134887, so this revision is based on those changes, and is intended to be merged after them.

Also removes code from generic files that was generating an ldexp fp16 declaration without an implementation.

This contribution is being made by Codeplay on behalf of Samsung.

Diff Detail

Event Timeline

aarongreig created this revision.Oct 5 2022, 7:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 7:52 AM
Herald added a subscriber: jvesely. · View Herald Transcript
aarongreig requested review of this revision.Oct 5 2022, 7:52 AM
aarongreig edited the summary of this revision. (Show Details)Oct 26 2022, 9:24 AM