Clarify that llvm attaches C language semantics to
authorDale Johannesen <dalej@apple.com>
Thu, 24 Sep 2009 18:38:21 +0000 (18:38 +0000)
committerDale Johannesen <dalej@apple.com>
Thu, 24 Sep 2009 18:38:21 +0000 (18:38 +0000)
functions with names that match the C library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82701 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index bdc9e1706422c784fae66780eade038ae8554d80..1331b021c101b8729ccbb42c6d739d1432277fd2 100644 (file)
@@ -5045,6 +5045,13 @@ Loop:       ; Infinite loop that counts from 0 on up...
   %ZZ = call zeroext i32 @bar()                     <i>; Return value is %zero extended</i>
 </pre>
 
+<p>llvm treats calls to some functions with names and arguments that match the
+standard C library as being the C library functions, and may perform
+optimizations or generate code for them under that assumption.  These
+functions currently include:
+acos, asin, atan, atan2, ceil, cos, cosf, cosh, exp, fabs, floor, fmod, log,
+log10, malloc, pow, sin, sinh, sqrt, sqrtf, sin, sinf, tan, tanh.</p>
+
 </div>
 
 <!-- _______________________________________________________________________ -->