[llvm-dev] RFC: [X86] Introducing command line options to prefer narrower vector instructions even when wider instructions are available

Sanjay Patel via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 13 15:45:29 PST 2017

On Mon, Nov 13, 2017 at 3:15 PM, Craig Topper <craig.topper at gmail.com>

> Do we have a precedent for setting a target independent flag from a target
> specific cpu string in the clang driver? Want to make sure I understand
> what the processing on such a thing would look like. Particularly to get
> the order right so the user can override it.

I think Clang::AddX86TargetArgs() has a target CPU in its arg list, so you
could do some checking/adding in there, but I'm just guessing at what's the
right way to do this - ask on cfe-dev?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171113/51e37143/attachment.html>

More information about the llvm-dev mailing list