[llvm-commits] [llvm] r82701 - /llvm/trunk/docs/LangRef.html
Chris Lattner
clattner at apple.com
Fri Sep 25 09:43:36 PDT 2009
On Sep 24, 2009, at 3:27 PM, Dale Johannesen wrote:
>
> On Sep 24, 2009, at 1:49 PMPDT, Török Edwin wrote:
>
>> On 2009-09-24 21:38, Dale Johannesen wrote:
>>>
>>> Clarify that llvm attaches C language semantics to
>>> functions with names that match the C library.
>>
>> In fact this list is longer [1], it includes (excluding Andersens.cpp
>> and SimplifyLibcalls)
>> abs, absf, absl, atexit, calloc, ceil, copysign, copysignf, cosl,
>> __dso_handle,
>> exit, fabsf, fabsl, free, __half_powr4, __main, main, memcpy,
>> realloc,
>> _setjmp, setjmp,
>> sinf, sinl.
>
> Functions starting with __ are fair game, I don't think we need
> document those at this level. Could you add the others to my list?
Is there any reason to have an explicit list? Why not just say "llvm
assumes that functions defined in libc and libm are well known, this
is something we'd like to fix in the future to better support
freestanding environments." and leave it at that?
-Chris
More information about the llvm-commits
mailing list