13 #ifndef LLVM_LIB_TARGET_RISCV_RISCVSUBTARGET_H 14 #define LLVM_LIB_TARGET_RISCV_RISCVSUBTARGET_H 29 #define GET_SUBTARGETINFO_HEADER 30 #include "RISCVGenSubtargetInfo.inc" 36 virtual void anchor();
37 bool HasStdExtM =
false;
38 bool HasStdExtA =
false;
39 bool HasStdExtF =
false;
40 bool HasStdExtD =
false;
41 bool HasStdExtC =
false;
44 bool EnableLinkerRelax =
false;
45 bool EnableRVCHintInstrs =
false;
72 return &FrameLowering;
98 assert(i < RISCV::NUM_TARGET_REGS &&
"Register out of range");
99 return UserReservedRegister[i];
RISCVABI::ABI getTargetABI() const
This class represents lattice values for constants.
const RegisterBankInfo * getRegBankInfo() const override
const RISCVRegisterInfo * getRegisterInfo() const override
std::unique_ptr< InstructionSelector > InstSelector
const SelectionDAGTargetInfo * getSelectionDAGInfo() const override
const LegalizerInfo * getLegalizerInfo() const override
Holds all the information related to register banks.
bool enableMachineScheduler() const override
std::unique_ptr< RegisterBankInfo > RegBankInfo
bool enableLinkerRelax() const
InstructionSelector * getInstructionSelector() const override
const RISCVTargetLowering * getTargetLowering() const override
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
Triple - Helper class for working with autoconf configuration names.
bool isRegisterReservedByUser(Register i) const
const CallLowering * getCallLowering() const override
const RISCVFrameLowering * getFrameLowering() const override
std::unique_ptr< LegalizerInfo > Legalizer
Provides the logic to select generic machine instructions.
std::unique_ptr< CallLowering > CallLoweringInfo
RISCVSubtarget(const Triple &TT, StringRef CPU, StringRef FS, StringRef ABIName, const TargetMachine &TM)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const RISCVInstrInfo * getInstrInfo() const override
This file describes how to lower LLVM calls to machine code calls.
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.
bool enableRVCHintInstrs() const
void ParseSubtargetFeatures(StringRef CPU, StringRef FS)
Wrapper class representing virtual and physical registers.