[cfe-dev] When to use '-mcpu' versus '-march'
Eric Christopher via cfe-dev
cfe-dev at lists.llvm.org
Mon Mar 19 21:40:12 PDT 2018
Hi Martin,
Sorry about the delay here, but I've got some advice even though a lot of
things aren't solid anywhere.
a) Does this match an out of tree target for gcc? If so, I'd match that.
b) Typically -march/-mtune (though the latter isn't supported in llvm at
the moment, see an earlier post from me to llvm-dev on how to support that)
are what I'd use for new ports. We used it in a number of new/out of tree
ports in gcc as well.
c) -mcpu is occastionally used for "-march+-mtune" when -march by itself is
generally "this architecture, but generic tuning".
Hope this helps and happy to elaborate if you need it anywhere.
-eric
On Wed, Mar 14, 2018 at 7:48 AM ORiordan, Martin via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Hi CFE Devs,
>
>
>
> For out-of-tree target developers, what is the best practice advice for
> when to use ‘-mcpu’ and when to use ‘-march’ to identify variants or
> various generations of a target?
>
>
>
> Thanks,
>
>
>
> MartinO
>
>
>
> --------------------------------------------------------------
> Intel Research and Development Ireland Limited
> Registered in Ireland
> Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
> Registered Number: 308263
>
> This e-mail and any attachments may contain confidential material for the
> sole use of the intended recipient(s). Any review or distribution by others
> is strictly prohibited. If you are not the intended recipient, please
> contact the sender and delete all copies.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180320/351f53c6/attachment.html>
More information about the cfe-dev
mailing list