[PATCH] D140693: [Driver][RISCV] Adjust the priority between -mcpu, -mtune and -march
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 30 00:24:27 PST 2022
craig.topper added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:5457
+ // RISC-V will handle -mcpu option in Clang::AddRISCVTargetArgs.
+ if (!Triple.isRISCV()) {
+ // Add the target cpu
----------------
kito-cheng wrote:
> craig.topper wrote:
> > I wonder if we should stop getCPUName from calling `getRISCVTargetCPU` instead? Have you audited all callers of getCPUName?
> That sounds a better way, that prevent us to auditing every caller of `getCPUName`.
I think we need to do the audit either way.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140693/new/
https://reviews.llvm.org/D140693
More information about the cfe-commits
mailing list