[flang-commits] [flang] [flang][evaluate] Fold SIND() by rewriting to SIN(x * pi/180) (PR #194527)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Wed Apr 29 07:04:58 PDT 2026


================
@@ -408,6 +408,23 @@ Expr<Type<TypeCategory::Real, KIND>> FoldIntrinsicFunction(
   } else if (name == "sign") {
     return FoldElementalIntrinsic<T, T, T>(
         context, std::move(funcRef), &Scalar<T>::SIGN);
+  } else if (name == "sind") {
----------------
eugeneepshteyn wrote:

Will also need to update https://github.com/llvm/llvm-project/blob/main/flang/docs/Extensions.md?plain=1#L419

https://github.com/llvm/llvm-project/pull/194527


More information about the flang-commits mailing list