aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2023-04-27 14:35:15 +0800
committerKito Cheng <kito.cheng@sifive.com>2023-04-27 14:46:01 +0800
commitda4fcb0c0b281746067f92d8804c18dbce4269bd (patch)
treea6dcb4e57b1716dd990e344d4089fd4f09a9c861 /llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
parent82b1e3b4122d8602556fbd439c7e5fc1f7f7eb4f (diff)
downloadllvm-da4fcb0c0b281746067f92d8804c18dbce4269bd.zip
llvm-da4fcb0c0b281746067f92d8804c18dbce4269bd.tar.gz
llvm-da4fcb0c0b281746067f92d8804c18dbce4269bd.tar.bz2
[RISCV][Driver] Allow the use of CPUs with a different XLEN than the triple.
Our downstream toolchain release got some issue is we set the default triple by creating symbolic link of clang like `riscv64-unknown-elf-clang`, and has lots of multi-lib config including rv32's config. However when we trying to set arch by a 32 bit CPU like generic-rv32 but got error message below: error: unsupported argument 'generic-rv32' to option '-mcpu=' `generic-rv32` is listed in the output of `-mcpu=help`, that might be confusing for user since help message say supported. So let clang driver also consider -mcpu option during computing the target triple to archvie that. Reviewed By: asb, craig.topper Differential Revision: https://reviews.llvm.org/D148124
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleSlotTracker.cpp')
0 files changed, 0 insertions, 0 deletions