[llvm-commits] [llvm] r82701 - /llvm/trunk/docs/LangRef.html

Dale Johannesen dalej at apple.com
Thu Sep 24 11:38:21 PDT 2009


Author: johannes
Date: Thu Sep 24 13:38:21 2009
New Revision: 82701

URL: http://llvm.org/viewvc/llvm-project?rev=82701&view=rev
Log:
Clarify that llvm attaches C language semantics to
functions with names that match the C library.


Modified:
    llvm/trunk/docs/LangRef.html

Modified: llvm/trunk/docs/LangRef.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.html?rev=82701&r1=82700&r2=82701&view=diff

==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Thu Sep 24 13:38:21 2009
@@ -5045,6 +5045,13 @@
   %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>
 
 <!-- _______________________________________________________________________ -->





More information about the llvm-commits mailing list