[llvm-commits] [llvm-gcc-4.2] r55783 - in /llvm-gcc-4.2/trunk/gcc: llvm-convert.cpp llvm-internal.h

Chris Lattner clattner at apple.com
Sun Sep 21 12:21:24 PDT 2008


On Sep 5, 2008, at 9:55 AM, Dale Johannesen wrote:

>
> On Sep 5, 2008, at 1:19 AMPDT, Duncan Sands wrote:
>
>> Hi Dale,
>>
>>> I think it's wrong for the back end to be keying off the C names;  
>>> not
>>> all languages are C, not all dialects are C99, and not all
>>> environments
>>> are hosted.
>>
>> I also don't like keying off the name.  Maybe the SimplifyLibcalls
>> pass
>> could turn calls to math functions ("sin") into calls to llvm
>> intrinsics
>> ("llvm.sin"), which would concentrate this kind of thing in one  
>> place.
>
> I think that is too late; we should already be into language-
> independent code by that time.

simplifylibcalls is specific to languages that use the standard C  
runtime library, so that would be ok.

-Chris




More information about the llvm-commits mailing list