This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Alter arm_fp16.h to be target-based, not preprocessor based.
ClosedPublic

Authored by dmgreen on Nov 2 2022, 8:00 AM.

Details

Summary

As the other recent patches, this alters the arm_fp16 intrinsics to be target based, not preprocessor based. Apparently arm_fp16.h is AArch64 only under clang, making this mostly trivial with the TargetGuard infrastructure.

Diff Detail

Event Timeline

dmgreen created this revision.Nov 2 2022, 8:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 8:00 AM
dmgreen requested review of this revision.Nov 2 2022, 8:00 AM

Nit: your summary line and commit message don't match :-) One of them says "changed from target to preprocessor" and the other vice versa.

dmgreen edited the summary of this revision. (Show Details)Nov 3 2022, 7:36 AM

Oh yeah, so I did. That should be fixed. Thanks.

simon_tatham accepted this revision.Nov 3 2022, 7:44 AM

But otherwise this is a very easy-to-check change compared to the previous ones on the same lines :-) LGTM.

This revision is now accepted and ready to land.Nov 3 2022, 7:44 AM
This revision was landed with ongoing or failed builds.Nov 3 2022, 9:06 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptNov 3 2022, 9:06 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript