This is an archive of the discontinued LLVM Phabricator instance.

[Flang] Lower sin, cos intrinsics
ClosedPublic

Authored by kiranchandramohan on Mar 23 2022, 8:14 AM.

Details

Summary

The intrinsic computes the sin, cosine values. By default they are lowered
to runtime calls to the pgmath library, for llvm lowering they are
lowered to llvm intrinsics. The generic and llvm lowering does not
lower floating point types with kind greater than 8, the llvm lowering
does not support the complex types.

This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 23 2022, 8:14 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
kiranchandramohan requested review of this revision.Mar 23 2022, 8:14 AM
This revision is now accepted and ready to land.Mar 23 2022, 8:16 AM
This revision was landed with ongoing or failed builds.Mar 23 2022, 8:22 AM
This revision was automatically updated to reflect the committed changes.