7 namespace RISCVSysReg {
8 #define GET_SysRegsList_IMPL 9 #include "RISCVGenSystemOperands.inc" 17 bool IsRV32E = FeatureBits[RISCV::FeatureRV32E];
22 <<
"' is not a recognized ABI for this target (ignoring target-abi)\n";
23 }
else if (ABIName.
startswith(
"ilp32") && IsRV64) {
24 errs() <<
"32-bit ABIs are not supported for 64-bit targets (ignoring " 27 }
else if (ABIName.
startswith(
"lp64") && !IsRV64) {
28 errs() <<
"64-bit ABIs are not supported for 32-bit targets (ignoring " 34 <<
"Only the ilp32e ABI is supported for RV32E (ignoring target-abi)\n";
72 namespace RISCVFeatures {
75 if (TT.
isArch64Bit() && FeatureBits[RISCV::FeatureRV32E])
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
This class represents lattice values for constants.
LLVM_NODISCARD bool startswith(StringRef Prefix) const
Check if this string starts with the given Prefix.
StringSwitch & Case(StringLiteral S, T Value)
LLVM_NODISCARD R Default(T Value)
LLVM_NODISCARD bool empty() const
empty - Check if the string is empty.
A switch()-like statement whose cases are string literals.
Container class for subtarget features.
ABI getTargetABI(StringRef ABIName)
Triple - Helper class for working with autoconf configuration names.
bool isArch64Bit() const
Test whether the architecture is 64-bit.
ABI computeTargetABI(const Triple &TT, FeatureBitset FeatureBits, StringRef ABIName)
StringRef - Represent a constant reference to a string, i.e.
void validate(const Triple &TT, const FeatureBitset &FeatureBits)
Wrapper class representing virtual and physical registers.