[LLVMdev] Implementing platform specific library call simplification
Richard Osborne
richard at xmos.com
Fri Feb 25 09:26:37 PST 2011
On 24/02/11 07:21, Chris Lattner wrote:
> Hi Richard,
>
> Just to close the loop on this, I went ahead and added a new llvm/Target/TargetLibraryInfo.h and added it to simplifylibcalls. TargetLibraryInfo doesn't handle all the libcalls that SimplifyLibCalls handles yet, but it should provide a starting point for iprintf: just add an iprintf enum to TargetLibraryInfo and make your transformation predicated on TLI->has(LibFunc::iprintf).
>
> It would be great to see this go into mainline,
>
> -Chris
>
Hi Chris,
Thanks for this - it looks to be exactly what I need. I'll should have
some time next week to put together a patch with the iprintf optimizations.
--
Richard Osborne | XMOS
http://www.xmos.com
More information about the llvm-dev
mailing list