[PATCH] D98307: [RISCV] Remap 'generic' CPU to 'generic-rv32' or 'generic-rv64'. Validate 64Bit feature against the triple.
Luís Marques via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 14 16:38:44 PDT 2021
luismarques 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";
----------------
Shouldn't this one also be removed?
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