[PATCH] D63105: Add --print-supported-cpus flag for clang.
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 13:46:07 PDT 2019
lebedev.ri added inline comments.
================
Comment at: clang/docs/ClangCommandLineReference.rst:613
+
+.. option:: -mcpu=<cpu>
+
----------------
kongyi wrote:
> L615 should be after L609.
this line seems out-of-place, it's already documented in `Target-dependent compilation options` section
================
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";
----------------
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.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63105/new/
https://reviews.llvm.org/D63105
More information about the llvm-commits
mailing list