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

Dale Johannesen dalej at apple.com
Fri Sep 25 09:48:05 PDT 2009


On Sep 25, 2009, at 9:43 AM, Chris Lattner 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?

What's in libc and libm varies from target to target, but I'm OK with  
pointing to one of the standards (probably C99) if you want to do that.





More information about the llvm-commits mailing list