[LLVMdev] Default implementations for __ashldi3, __ashrdi3, __divdi3, __udivdi3, etc?

Chris Lattner
Fri, 31 Oct 2008 20:07:58 -0000

On Oct 31, 2008, at 10:13 AM, Daniel M Gessel wrote:

> Are there existing "generic" implementations for these functions
under
> the same license as LLVM? By generic I mean C or IR that doesn't use
> any particular HW intrinsics.

Hi Daniel,

We're working on a complete ground-up implementation of the API vended
by libgcc, including these routines, under the LLVM license.  We need
to finish it and get approval to release them as part of llvm.org, but
I expect it to happen in the next month or two.  I don't know if this
will align with your needs or not, but I thought I would mention it.

-Chris