llvm-project/llvm/lib/Target/RISCV/MCTargetDesc
Craig Topper fcdf7f6224 [RISCV] Give an explicit error if 'generic' CPU is passed instead of 'generic-rv32' or 'generic-rv64'. Validate 64Bit feature against the triple.
I encountered a project that uses llvm that passes "generic" by
default. While I could fix that project, I wouldn't be surprised
if other projects did something similar. So it seems like
a good idea to provide a better error here.

I've also added validation of the 64Bit feature against the
triple so that we can catch a mismatched CPU before failing in
a mysterious way. We can make it pretty far in isel because we
calculate XLenVT from the triple and use that to set up the legal
integer type.

Reviewed By: luismarques, khchen

Differential Revision: https://reviews.llvm.org/D98307
2021-03-14 17:21:31 -07:00
..
CMakeLists.txt [RISCV] Merge Utils library into MCTargetDesc 2021-01-14 11:47:30 -08:00
RISCVAsmBackend.cpp [MC][RISCV] Support .reloc *, BFD_RELOC_{NONE,32,64}, * 2021-03-05 21:45:11 -08:00
RISCVAsmBackend.h [RISCV] Merge Utils library into MCTargetDesc 2021-01-14 11:47:30 -08:00
RISCVBaseInfo.cpp [RISCV] Give an explicit error if 'generic' CPU is passed instead of 'generic-rv32' or 'generic-rv64'. Validate 64Bit feature against the triple. 2021-03-14 17:21:31 -07:00
RISCVBaseInfo.h [RISCV] Make scalable vector FMA commutable for register allocation. 2021-02-08 10:05:33 -08:00
RISCVELFObjectWriter.cpp
RISCVELFStreamer.cpp [RISCV] Merge Utils library into MCTargetDesc 2021-01-14 11:47:30 -08:00
RISCVELFStreamer.h
RISCVFixupKinds.h
RISCVInstPrinter.cpp [llvm] Remove redundant return and continue statements (NFC) 2021-01-14 20:30:34 -08:00
RISCVInstPrinter.h [RISCV] Remove unused method RISCVInstPrinter::printSImm5Plus1. NFC 2021-01-04 12:21:35 -08:00
RISCVMCAsmInfo.cpp [MC][RISCV] Set UseIntegratedAssembler to true 2020-07-12 21:04:48 -07:00
RISCVMCAsmInfo.h
RISCVMCCodeEmitter.cpp [RISCV] Merge Utils library into MCTargetDesc 2021-01-14 11:47:30 -08:00
RISCVMCExpr.cpp [RISCV] Don't include CodeGen layer files in MC layer 2020-11-12 07:45:38 -08:00
RISCVMCExpr.h [RISCV] Remove unused forward declarations. NFC. 2020-04-23 16:30:45 +01:00
RISCVMCTargetDesc.cpp [RISCV] Give an explicit error if 'generic' CPU is passed instead of 'generic-rv32' or 'generic-rv64'. Validate 64Bit feature against the triple. 2021-03-14 17:21:31 -07:00
RISCVMCTargetDesc.h [RISCV] Remove unused forward declarations. NFC. 2020-04-23 16:30:45 +01:00
RISCVMatInt.cpp [RISCV] Merge Utils library into MCTargetDesc 2021-01-14 11:47:30 -08:00
RISCVMatInt.h [RISCV] Merge Utils library into MCTargetDesc 2021-01-14 11:47:30 -08:00
RISCVTargetStreamer.cpp [RISCV] Update the version number to v0.10 for vector. 2021-01-30 07:20:05 +08:00
RISCVTargetStreamer.h [llvm] Forward-declare formatted_raw_ostream (NFC) 2021-01-28 22:21:13 -08:00