[llvm] [llvm-objdump] Add triple support to `mcpu=help` (PR #165661)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 00:54:04 PST 2025
================
@@ -3533,6 +3533,19 @@ commaSeparatedValues(const llvm::opt::InputArgList &InputArgs, int ID) {
return Values;
}
+static void mcpuHelp() {
+ if (!TripleName.empty()) {
+ std::string Error;
+ Triple DummyTriple(TripleName);
+ const Target *DummyTarget =
+ TargetRegistry::lookupTarget(DummyTriple, Error);
+ if (!DummyTarget)
+ reportCmdLineError(Error);
+ // createMCSubtargetInfo prints the mcpu help text when called with "help"
----------------
jh7370 wrote:
```suggestion
// createMCSubtargetInfo prints the mcpu help text when called with "help".
```
https://github.com/llvm/llvm-project/pull/165661
More information about the llvm-commits
mailing list