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

Anton Korobeynikov anton at korobeynikov.info
Mon Dec 26 04:08:48 PST 2011


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?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-commits mailing list