[flang-commits] [flang] 0c08418 - [Flang] Removing Float Bessel functions for AIX

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Tue Nov 22 07:43:17 PST 2022


Author: Kelvin Li
Date: 2022-11-22T10:43:03-05:00
New Revision: 0c08418d4b2dd9d4ad48031cbabd0f1fe0ccb426

URL: https://github.com/llvm/llvm-project/commit/0c08418d4b2dd9d4ad48031cbabd0f1fe0ccb426
DIFF: https://github.com/llvm/llvm-project/commit/0c08418d4b2dd9d4ad48031cbabd0f1fe0ccb426.diff

LOG: [Flang] Removing Float Bessel functions for AIX

AIX libc only provides bessel functions j0,j1,jn and y0,y1,yn but
does not have their float equivalents j0f,j1f,jnf and y0f,y1f,ynf.

Committed on behalf of madanial

Differential Revision: https://reviews.llvm.org/D136128

Added: 
    

Modified: 
    flang/lib/Evaluate/intrinsics-library.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Evaluate/intrinsics-library.cpp b/flang/lib/Evaluate/intrinsics-library.cpp
index 17cbc7db50083..c333ffeac90c7 100644
--- a/flang/lib/Evaluate/intrinsics-library.cpp
+++ b/flang/lib/Evaluate/intrinsics-library.cpp
@@ -295,6 +295,8 @@ struct HostRuntimeLibrary<std::complex<HostT>, LibraryVersion::Libm> {
 /// Define libm extensions
 /// Bessel functions are defined in POSIX.1-2001.
 
+// Remove float bessel funcitons for AIX as they are not supported
+#ifndef _AIX
 template <> struct HostRuntimeLibrary<float, LibraryVersion::LibmExtensions> {
   using F = FuncPointer<float, float>;
   using FN = FuncPointer<float, int, float>;
@@ -309,6 +311,7 @@ template <> struct HostRuntimeLibrary<float, LibraryVersion::LibmExtensions> {
   static constexpr HostRuntimeMap map{table};
   static_assert(map.Verify(), "map must be sorted");
 };
+#endif
 
 template <> struct HostRuntimeLibrary<double, LibraryVersion::LibmExtensions> {
   using F = FuncPointer<double, double>;


        


More information about the flang-commits mailing list