[LLVMdev] ExpandDivRemLibCall vs. AEABI

Tim Northover t.p.northover at gmail.com
Fri Jun 21 07:56:28 PDT 2013


Hi Renato,

>  * Have some call-back mechanism, possibly upon a flag
> (HasSpecialDivRemLowering), and update the remainder result

If you setOperationAction on SDIVREM and UDIVREM to Custom you can
expand the rtlib call appropriately yourself. There's precedent for
sincos on Darwin systems (both ARM and x86) and in AArch64 for
basically every operation on fp128.

Cheers.

Tim.



More information about the llvm-dev mailing list