[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 05:57:45 PST 2024
================
@@ -137,8 +146,11 @@ static void cpuHelp(ArrayRef<SubtargetSubTypeKV> CPUTable) {
// Print the CPU table.
errs() << "Available CPUs for this target:\n\n";
- for (auto &CPU : CPUTable)
- errs() << "\t" << CPU.Key << "\n";
+ for (auto &CPU : CPUNames) {
+ if (CPU == "apple-latest")
+ continue;
+ errs() << "\t" << CPU << "\n";
+ }
----------------
fhahn wrote:
unrelated to this patch directly, but might be good to share the logic with `Help` in the future?
https://github.com/llvm/llvm-project/pull/118581
More information about the llvm-commits
mailing list