This is an archive of the discontinued LLVM Phabricator instance.

Add missing nearbyintf16 builtin functions
AcceptedPublic

Authored by joshua-arch1 on Mar 21 2023, 4:23 AM.

Details

Summary

To generate FROUND.H instructions in https://reviews.llvm.org/D143982, we need to use llvm intrinsics in IR files. Now I add corresponding nearbyintf16 builtin function to make sure these roundtointegral instructions can be generated from C codes.

Diff Detail

Event Timeline

joshua-arch1 created this revision.Mar 21 2023, 4:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 4:23 AM
joshua-arch1 requested review of this revision.Mar 21 2023, 4:23 AM
efriedma accepted this revision.Mar 21 2023, 10:23 AM

Can you add a codegen testcase? Otherwise LGTM.

This revision is now accepted and ready to land.Mar 21 2023, 10:23 AM

Please also add a release note and add documentation for the builtin.