This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Added support for the vcvta_u16_f16 instrinsic for FP16 Armv8.2-A
ClosedPublic

Authored by LukeGeeson on Jun 13 2018, 3:39 AM.

Details

Summary

-Added support for existing IP for vcvta_u16_f16 instrinsic for Armv8.2A
-CGBuiltin simply adds cases for this intrinsic to gen the clang IR
-tests added for AArch64 and Arm test suites
-tested and works using ninja check

Diff Detail

Repository
rC Clang

Event Timeline

LukeGeeson created this revision.Jun 13 2018, 3:39 AM

Nits title:

  • Think you can simplify the title to something along the lines of: "[AArch64] Support the FP16 VCVTA_U16 intrinsic". No need to mention tests are added in the subject (tests should always be added).

Nits summary:

  • Arm v8.2a -> Armv8.2-A
  • Aarch64 -> AArch64
  • No need to mention "tested and works using ninja check"; this is obvious and should always be done.
  • This is a bit vague: "Added support for existing IP". I think you can reduce the summary to just: "Added support for the vcvta_u16_f16 instrinsic for FP16 Armv8.2-A"
CodeGen/arm-v8.2a-neon-intrinsics.c
170

Is this exactly the same test also added in aarch64-v8.2a-neon-intrinsics.c?

LukeGeeson edited the summary of this revision. (Show Details)Jun 13 2018, 4:05 AM
LukeGeeson edited the summary of this revision. (Show Details)
LukeGeeson retitled this revision from [AArch64] Added Clang Codegen+Test Support for FP16 VCVTA_U16 intrinsic to [AArch64] Added Clang Codegen Support for FP16 VCVTA_U16 intrinsic.
LukeGeeson retitled this revision from [AArch64] Added Clang Codegen Support for FP16 VCVTA_U16 intrinsic to [AArch64] Added support for the vcvta_u16_f16 instrinsic for FP16 Armv8.2-A.
LukeGeeson marked an inline comment as done.Jun 13 2018, 4:07 AM

address Nit's and code comments, please see above.

CodeGen/arm-v8.2a-neon-intrinsics.c
170

Not that I'm aware. One is for AArch platforms and the other is Arm. see the second CHECK line of each

SjoerdMeijer accepted this revision.Jun 13 2018, 5:44 AM

Thanks. Looks like a straightforward fix to me.

CodeGen/arm-v8.2a-neon-intrinsics.c
170

Ah, of course, my bad. Looked too quickly.

This revision is now accepted and ready to land.Jun 13 2018, 5:44 AM
LukeGeeson closed this revision.Jun 14 2018, 1:34 AM
LukeGeeson marked an inline comment as done.