[cfe-commits] [PATCH] Add vfpv3-d16 and fix vfp2/vfp3 handling in the Clang driver

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Dec 26 05:36:10 PST 2011


On Mon, Dec 26, 2011 at 4:08 PM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
> Hi Evgeniy
>
>> Please review.
>> +    } else if (FPU == "vfp3-d16" || FPU == "vfpv3-d16") {
>> +      CmdArgs.push_back("-target-feature");
>> +      CmdArgs.push_back("+vfp3");
>> +      CmdArgs.push_back("-target-feature");
>> +      CmdArgs.push_back("+d16");
>> +      CmdArgs.push_back("-target-feature");
>> +      CmdArgs.push_back("-neon");
> Can we instead of huge if / else chains encode the necessary FPU =>
> feature mapping via some table?

You mean a tblgen table? I doubt it will be any shorter than this.




More information about the cfe-commits mailing list