[llvm-commits] [PATCH] Add float abi CL option for lli

Amara Emerson Amara.Emerson at arm.com
Wed Oct 10 09:28:16 PDT 2012


Softfp isn't an ABI variant, it signals that software FP library calls should be used instead of hardware FP instructions. In llc, the -soft-float option *implies* the use of soft float ABI but it's still a distinct feature.

Are you asking why a soft-float lli option wasn't included in this patch? If so, our testing infrastructure is transitioning to hard float ABI so this is the minimal option needed in order to work, we don't need softfp at this moment in time.

Amara

-----Original Message-----
From: Alex Rosenberg [mailto:alexr at leftfield.org] 
Sent: 10 October 2012 17:09
To: Amara Emerson
Cc: <llvm-commits at cs.uiuc.edu>
Subject: Re: [llvm-commits] [PATCH] Add float abi CL option for lli

What about the "softfp" variant?

Sent from my iPad

On Oct 8, 2012, at 8:32 AM, "Amara Emerson" <amara.emerson at arm.com> wrote:

> Hi,
> 
> lli currently uses the default target options for most things, including the
> float ABI which defaults to soft. On hard float systems, this can cause
> silent faults when the JITed code tries to call library functions built for
> hard float ABI.
> 
> The attached patch allows specifying the float abi to lli in exactly the
> same way as llc does it, via a -float-abi=[hard|soft|default] option.
> 
> Amara
> <lli-specify-floatabi-2.patch>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits






More information about the llvm-commits mailing list