[PATCH] D97823: Update default arch on AIX
Steven Wan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 3 07:34:26 PST 2021
stevewan added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:405
+ T.getOSVersion(major, minor, micro);
+ TargetCPUName = major == 7 && minor < 2 ? "pwr4" : "pwr7";
+ } else if (T.getArch() == llvm::Triple::ppc64le)
----------------
jsji wrote:
> jsji wrote:
> > Please add comments here about AIX 7.2's minimal arch is P7.
> `major == 7 ` should this be `major <= 7 `? Or else, we may get `pwr7` for AIX 5.1.
That's a great idea. Although I think we'd need to change `major == 7 && minor < 2` to `major < 7 || minor < 2` to also handle 4.3 and 5.3 properly. Let me know if you have further comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97823/new/
https://reviews.llvm.org/D97823
More information about the cfe-commits
mailing list