From 07de8d1acf10117cac2cc53f1cb0ae888be6a5bc Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 24 Sep 2009 18:38:21 +0000 Subject: Clarify that llvm attaches C language semantics to 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/LangRef.html b/docs/LangRef.html index bdc9e17..1331b02 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -5045,6 +5045,13 @@ Loop: ; Infinite loop that counts from 0 on up... %ZZ = call zeroext i32 @bar() ; Return value is %zero extended +

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.

+ -- cgit v1.1