Currently there is no documentation for these flags, users might find it
confusing to know which values are permitted. This change simply adds
documentation to suggest using -mcpu=help to list the availible target
names.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, though it's a bit jarring that -march suggests using -mcpu=help (should we ensure that -march=help works on all targets instead?)
Comment Actions
Using -march=help works inadvertently because it will list the targets when given an invalid one. We could probably map the -mcpu=help handling to -march=help but I'm not entirely sure what the semantics should be there. The distinction between -march and -mcpu is still not entirely clear to me, it's just a matter of whether or not the target decided to choose one or the other.
Comment Actions
Oh, when I was trying it out, -march=help was not giving any useful information on some targets: https://godbolt.org/z/js4a64aTK -- FWIW, it's also unclear to me why and how these options differ.