[PATCH] D98307: [RISCV] Remap 'generic' CPU to 'generic-rv32' or 'generic-rv64'. Validate 64Bit feature against the triple.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 14 16:45:36 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp:68
std::string CPUName = std::string(CPU);
- if (CPUName.empty())
+ if (CPUName.empty() || CPUName == "generic")
CPUName = TT.isArch64Bit() ? "generic-rv64" : "generic-rv32";
----------------
luismarques wrote:
> Shouldn't this one also be removed?
Yeah I forgot there were two files.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98307/new/
https://reviews.llvm.org/D98307
More information about the llvm-commits
mailing list