24 #define DEBUG_TYPE "riscv-subtarget" 26 #define GET_SUBTARGETINFO_TARGET_DESC 27 #define GET_SUBTARGETINFO_CTOR 28 #include "RISCVGenSubtargetInfo.inc" 30 void RISCVSubtarget::anchor() {}
36 std::string CPUName = CPU;
38 CPUName = Is64Bit ?
"generic-rv64" :
"generic-rv32";
53 UserReservedRegister(RISCV::NUM_TARGET_REGS),
54 FrameLowering(initializeSubtargetDependencies(TT, CPU, FS, ABIName)),
55 InstrInfo(*this), RegInfo(getHwMode()), TLInfo(TM, *this) {
62 *static_cast<const RISCVTargetMachine *>(&TM), *
this, *RBI));
This class represents lattice values for constants.
const RegisterBankInfo * getRegBankInfo() const override
const RISCVRegisterInfo * getRegisterInfo() const override
InstructionSelector * createRISCVInstructionSelector(const RISCVTargetMachine &, RISCVSubtarget &, RISCVRegisterBankInfo &)
std::unique_ptr< InstructionSelector > InstSelector
This class provides the information for the target register banks.
const LegalizerInfo * getLegalizerInfo() const override
Holds all the information related to register banks.
std::unique_ptr< RegisterBankInfo > RegBankInfo
InstructionSelector * getInstructionSelector() const override
This file describes how to lower LLVM calls to machine code calls.
const RISCVTargetLowering * getTargetLowering() const override
Triple - Helper class for working with autoconf configuration names.
const CallLowering * getCallLowering() const override
Provides the logic to select generic machine instructions.
std::unique_ptr< CallLowering > CallLoweringInfo
bool isArch64Bit() const
Test whether the architecture is 64-bit.
RISCVSubtarget(const Triple &TT, StringRef CPU, StringRef FS, StringRef ABIName, const TargetMachine &TM)
ABI computeTargetABI(const Triple &TT, FeatureBitset FeatureBits, StringRef ABIName)
This class provides the information for the target register banks.
Primary interface to the complete machine description for the target machine.
This file declares the targeting of the RegisterBankInfo class for RISCV.
StringRef - Represent a constant reference to a string, i.e.
void ParseSubtargetFeatures(StringRef CPU, StringRef FS)
void validate(const Triple &TT, const FeatureBitset &FeatureBits)
This file declares the targeting of the Machinelegalizer class for RISCV.