[flang] Implement tand intrinsic
authorDavid Truby <david@truby.dev>
Thu, 6 Jul 2023 14:59:16 +0000 (15:59 +0100)
committerDavid Truby <david@truby.dev>
Wed, 19 Jul 2023 13:42:04 +0000 (14:42 +0100)
commit1ae04d1c893d965148a4fba0b85392f794b571d2
tree9ad26757901ab0d934d845d68d73f90eec36af9c
parent3681a7dd7818aa93956fe42d37e97da6882f23ae
[flang] Implement tand intrinsic

This implements the tand intrinsic by performing a multiplication
by pi/180 to the argument before calling tan inline.

This is a commonly provided extension that is used by OpenRadioss

Differential Revision: https://reviews.llvm.org/D154614
flang/docs/Extensions.md
flang/include/flang/Optimizer/Builder/IntrinsicCall.h
flang/lib/Optimizer/Builder/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/tand.f90 [new file with mode: 0644]