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

David Chisnall csdavec at swan.ac.uk
Mon Apr 30 02:41:19 PDT 2012


On 29 Apr 2012, at 23:44, Bill Wendling wrote:

> - Module-level flags would be used for those options which affect the whole module and which prevent two modules that do not have that flag set from being merged together. For example, `-msoft-float' changes the calling convention in the output file. Therefore, it's only useful if the whole program is compiled with it. It would be a module-level IR flag:

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...

David



More information about the cfe-dev mailing list