Open patrick-rivos opened 1 month ago
This might be an invalid issue. The error: unknown target CPU 'sifive-s54'
and error: unknown target CPU 'xiangshan-nanhu'
error messages were from -mtune and the unsupported argument error messages appear to be cpu group names?
I think the problem here is that the error message uses fillValidCPUArchList/fillValidTuneCPUArchList from RISCVTargetParser.cpp which is called by clang/lib/Basic/Targets/RISCV.cpp
The list for help
is generated by the clang driver invoking the -mcpu=help
handling in MCSubtargetInfo.cpp. There's no hook for the target to filter this list, it's just the raw tablegen generated CPU list.
Godbolts: https://godbolt.org/z/Tzcb8f4vz https://godbolt.org/z/YPohsdEso
Related: #102959