[llvm-commits] [llvm] r145596 - in /llvm/trunk: include/llvm/Target/TargetLibraryInfo.h lib/Target/TargetLibraryInfo.cpp

Chad Rosier mcrosier at apple.com
Thu Dec 1 09:54:37 PST 2011


Author: mcrosier
Date: Thu Dec  1 11:54:37 2011
New Revision: 145596

URL: http://llvm.org/viewvc/llvm-project?rev=145596&view=rev
Log:
Add a few more functions to TargetLibraryInfo. More of rdar://10500969.

Modified:
    llvm/trunk/include/llvm/Target/TargetLibraryInfo.h
    llvm/trunk/lib/Target/TargetLibraryInfo.cpp

Modified: llvm/trunk/include/llvm/Target/TargetLibraryInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLibraryInfo.h?rev=145596&r1=145595&r2=145596&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLibraryInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLibraryInfo.h Thu Dec  1 11:54:37 2011
@@ -36,6 +36,12 @@
       atanl,
       /// float atanf(float x);
       atanf,
+      /// double atan2(double y, double x);
+      atan2,
+      /// long double atan2l(long double y, long double x);
+      atan2l,
+      /// float atan2f(float y, float x);
+      atan2f,
       /// double ceil(double x);
       ceil,
       /// long double ceill(long double x);
@@ -86,6 +92,12 @@
       floorf,
       /// int fiprintf(FILE *stream, const char *format, ...);
       fiprintf,
+      /// double fmod(double x, double y);
+      fmod,
+      /// long double fmodl(long double x, long double y);
+      fmodl,
+      /// float fmodf(float x, float y);
+      fmodf,
       /// int fputs(const char *s, FILE *stream);
       fputs,
       /// size_t fwrite(const void *ptr, size_t size, size_t nitems,
@@ -131,6 +143,18 @@
       powf,
       /// long double powl(long double x, long double y);
       powl,
+      /// double sin(double x);
+      sin,
+      /// long double sinl(long double x);
+      sinl,
+      /// float sinf(float x);
+      sinf,
+      /// double sinh(double x);
+      sinh,
+      /// long double sinhl(long double x);
+      sinhl,
+      /// float sinhf(float x);
+      sinhf,
       /// int siprintf(char *str, const char *format, ...);
       siprintf,
       /// double sqrt(double x);
@@ -139,6 +163,18 @@
       sqrtl,
       /// float sqrtf(float x);
       sqrtf,
+      /// double tan(double x);
+      tan,
+      /// long double tanl(long double x);
+      tanl,
+      /// float tanf(float x);
+      tanf,
+      /// double tanh(double x);
+      tanh,
+      /// long double tanhl(long double x);
+      tanhl,
+      /// float tanhf(float x);
+      tanhf,
 
       NumLibFuncs
     };

Modified: llvm/trunk/lib/Target/TargetLibraryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLibraryInfo.cpp?rev=145596&r1=145595&r2=145596&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLibraryInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetLibraryInfo.cpp Thu Dec  1 11:54:37 2011
@@ -31,6 +31,9 @@
     "atan",
     "atanl",
     "atanf",
+    "atan2",
+    "atan2l",
+    "atan2f",
     "ceil",
     "ceill",
     "ceilf",
@@ -56,6 +59,9 @@
     "floorl",
     "floorf",
     "fiprintf",
+    "fmod",
+    "fmodl",
+    "fmodf",
     "fputs",
     "fwrite",
     "iprintf",
@@ -79,9 +85,18 @@
     "powf",
     "powl",
     "siprintf",
+    "sin",
+    "sinl",
+    "sinf",
     "sqrt",
     "sqrtl",
-    "sqrtf"
+    "sqrtf",
+    "tan",
+    "tanl",
+    "tanf",
+    "tanh",
+    "tanhl",
+    "tanhf"
   };
 
 /// initialize - Initialize the set of available library functions based on the





More information about the llvm-commits mailing list