[PATCH] D63105: Add --print-supported-cpus flag for clang.

Ziang Wan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 14:44:31 PDT 2019


ziangwan added inline comments.


================
Comment at: llvm/lib/MC/MCSubtargetInfo.cpp:143
+
+  errs() << "Use -mcpu to specify the target processor.\n"
+            "For example, clang --target=aarch64-unknown-linux-gui -mcpu=cortex-a35\n";
----------------
lebedev.ri wrote:
> Is this correct? Is this due to the `--target`?
> I've never ever seen that flag used, on x86 `-march`/`-mtune` is pretty much always used.
Both `-mtune` and `-mcpu` accept the processor names listed by `--print-supported-cpus`. The difference is that `-mcpu` also specify the instruction set given the processor while `-mtune` will use a more generic instruction set.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63105/new/

https://reviews.llvm.org/D63105





More information about the llvm-commits mailing list