[llvm-commits] [llvm-gcc-4.2] r55783 - in /llvm-gcc-4.2/trunk/gcc: llvm-convert.cpp llvm-internal.h
Dale Johannesen
dalej at apple.com
Fri Sep 5 09:55:30 PDT 2008
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.
> Ciao,
>
> Duncan.
>
> PS: I guess that would also mean that there is no need for llvm-gcc
> to generate the llvm intrinsics: it would happen automagically.
More information about the llvm-commits
mailing list