[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
================
@@ -104,14 +110,17 @@ static void Help(ArrayRef<SubtargetSubTypeKV> CPUTable,
}
// Determine the length of the longest CPU and Feature entries.
- unsigned MaxCPULen = getLongestEntryLength(CPUTable);
+ unsigned MaxCPULen = getLongestEntryLength(CPUNames);
unsigned MaxFeatLen = getLongestEntryLength(FeatTable);
// Print the CPU table.
errs() << "Available CPUs for this target:\n\n";
- for (auto &CPU : CPUTable)
- errs() << format(" %-*s - Select the %s processor.\n", MaxCPULen, CPU.Key,
- CPU.Key);
+ for (auto &CPUName : CPUNames) {
+ if (CPUName == "apple-latest")
+ continue;
----------------
fhahn wrote:
Could you add a comment here why this is skipped?
https://github.com/llvm/llvm-project/pull/118581
More information about the llvm-commits
mailing list