[LLVMdev] [cfe-dev] [RFC] Encoding Compile Flags into the IR

Renato Golin rengolin at systemcall.org
Mon Apr 30 02:50:23 PDT 2012


On 30 April 2012 10:41, David Chisnall <csdavec at swan.ac.uk> wrote:
> It seems that the correct solution for this would be to make the softfloat and hardfloat calling conventions into... calling conventions.  This would require sinking some logic for defining calling conventions down into LLVM, rather than requiring every single front end to duplicate the same logic, but reduced code duplication might just be a price worth paying for making writing front ends and optimisation passes easier...

There is already a function attribute for soft/hard float (in ARM is
AAPCS_VFP), which is generally (or should be) produced when the
compiler specifies hard-float.


-- 
cheers,
--renato

http://systemcall.org/




More information about the llvm-dev mailing list