[llvm-dev] Command line -mcpu= and -march=

Mark R V Murray via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 19 05:58:02 PST 2018

> On 19 Dec 2018, at 10:34, Tim Northover <t.p.northover at gmail.com> wrote:
> Hi Mark,

Hi Tim,

> I think the top-level code you want is in (under clang)
> lib/Driver/ToolChains/Clang.cpp (a bunch of getTargetFeature stuff)
> and lib/Driver/ToolChains/CommonArgs.cpp (getCPUName especially).
> These defer to target-specific .cpp files in the more complete targets
> (lib/Driver/ToolChains/Arch/XYZ.cpp).

Spot on! Thank you!

I got it working now :-)

Mark R V Murray

More information about the llvm-dev mailing list