This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Enable _Float16
ClosedPublic

Authored by yaxunl on Apr 24 2019, 8:07 PM.

Details

Diff Detail

Event Timeline

yaxunl created this revision.Apr 24 2019, 8:07 PM

Looks good to me.

This revision is now accepted and ready to land.Apr 25 2019, 8:22 AM
yaxunl closed this revision.Jun 13 2019, 12:16 PM
foad added a subscriber: foad.Feb 24 2021, 1:33 AM

Should have updated https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point "_Float16 is currently only supported on the following targets, with further targets pending ABI standardization: ..."

arsenm added inline comments.Feb 24 2021, 6:14 AM
test/CodeGenCXX/amdgpu-float16.cpp
7

I thought clang tests were supposed to stop at the IR

yaxunl marked an inline comment as done.Feb 24 2021, 6:42 AM

Should have updated https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point "_Float16 is currently only supported on the following targets, with further targets pending ABI standardization: ..."

will update the doc

test/CodeGenCXX/amdgpu-float16.cpp
7

If you 'grep -- '-S ' clang/test/CodeGen/* | grep -v emit-llvm | grep clang', there are plenty of clang codegen tests checks assembly code. In this test we want to make sure f16 instructions are emitted for specific GPUs.