LLVM  10.0.0
Public Member Functions | Protected Attributes | List of all members
llvm::RISCVSubtarget Class Reference

#include "Target/RISCV/RISCVSubtarget.h"

Inheritance diagram for llvm::RISCVSubtarget:
[legend]
Collaboration diagram for llvm::RISCVSubtarget:
[legend]

Public Member Functions

 RISCVSubtarget (const Triple &TT, StringRef CPU, StringRef FS, StringRef ABIName, const TargetMachine &TM)
 
void ParseSubtargetFeatures (StringRef CPU, StringRef FS)
 
const RISCVFrameLowering * getFrameLowering () const override
 
const RISCVInstrInfo * getInstrInfo () const override
 
const RISCVRegisterInfo * getRegisterInfo () const override
 
const RISCVTargetLowering * getTargetLowering () const override
 
const SelectionDAGTargetInfo * getSelectionDAGInfo () const override
 
bool enableMachineScheduler () const override
 
bool hasStdExtM () const
 
bool hasStdExtA () const
 
bool hasStdExtF () const
 
bool hasStdExtD () const
 
bool hasStdExtC () const
 
bool is64Bit () const
 
bool isRV32E () const
 
bool enableLinkerRelax () const
 
bool enableRVCHintInstrs () const
 
MVT getXLenVT () const
 
unsigned getXLen () const
 
RISCVABI::ABI getTargetABI () const
 
bool isRegisterReservedByUser (Register i) const
 
const CallLowering * getCallLowering () const override
 
InstructionSelector * getInstructionSelector () const override
 
const LegalizerInfo * getLegalizerInfo () const override
 
const RegisterBankInfo * getRegBankInfo () const override
 

Protected Attributes

std::unique_ptr< CallLowering > CallLoweringInfo
 
std::unique_ptr< InstructionSelector > InstSelector
 
std::unique_ptr< LegalizerInfo > Legalizer
 
std::unique_ptr< RegisterBankInfo > RegBankInfo
 

Detailed Description

Definition at line 35 of file RISCVSubtarget.h.

Constructor & Destructor Documentation

◆ RISCVSubtarget()

RISCVSubtarget::RISCVSubtarget ( const Triple &  TT,
StringRef  CPU,
StringRef  FS,
StringRef  ABIName,
const TargetMachine &  TM 
)

Member Function Documentation

◆ enableLinkerRelax()

bool llvm::RISCVSubtarget::enableLinkerRelax ( ) const
inline

Definition at line 92 of file RISCVSubtarget.h.

◆ enableMachineScheduler()

bool llvm::RISCVSubtarget::enableMachineScheduler ( ) const
inlineoverride

Definition at line 84 of file RISCVSubtarget.h.

◆ enableRVCHintInstrs()

bool llvm::RISCVSubtarget::enableRVCHintInstrs ( ) const
inline

Definition at line 93 of file RISCVSubtarget.h.

◆ getCallLowering()

const CallLowering * RISCVSubtarget::getCallLowering ( ) const
override

Definition at line 65 of file RISCVSubtarget.cpp.

References CallLoweringInfo.

◆ getFrameLowering()

const RISCVFrameLowering* llvm::RISCVSubtarget::getFrameLowering ( ) const
inlineoverride

Definition at line 71 of file RISCVSubtarget.h.

◆ getInstrInfo()

const RISCVInstrInfo* llvm::RISCVSubtarget::getInstrInfo ( ) const
inlineoverride

◆ getInstructionSelector()

InstructionSelector * RISCVSubtarget::getInstructionSelector ( ) const
override

Definition at line 69 of file RISCVSubtarget.cpp.

References InstSelector.

◆ getLegalizerInfo()

const LegalizerInfo * RISCVSubtarget::getLegalizerInfo ( ) const
override

Definition at line 73 of file RISCVSubtarget.cpp.

◆ getRegBankInfo()

const RegisterBankInfo * RISCVSubtarget::getRegBankInfo ( ) const
override

Definition at line 77 of file RISCVSubtarget.cpp.

References RegBankInfo.

◆ getRegisterInfo()

const RISCVRegisterInfo* llvm::RISCVSubtarget::getRegisterInfo ( ) const
inlineoverride

◆ getSelectionDAGInfo()

const SelectionDAGTargetInfo* llvm::RISCVSubtarget::getSelectionDAGInfo ( ) const
inlineoverride

Definition at line 81 of file RISCVSubtarget.h.

◆ getTargetABI()

RISCVABI::ABI llvm::RISCVSubtarget::getTargetABI ( ) const
inline

◆ getTargetLowering()

const RISCVTargetLowering* llvm::RISCVSubtarget::getTargetLowering ( ) const
inlineoverride

Definition at line 78 of file RISCVSubtarget.h.

Referenced by RISCVSubtarget().

◆ getXLen()

unsigned llvm::RISCVSubtarget::getXLen ( ) const
inline

◆ getXLenVT()

MVT llvm::RISCVSubtarget::getXLenVT ( ) const
inline

◆ hasStdExtA()

bool llvm::RISCVSubtarget::hasStdExtA ( ) const
inline

Definition at line 86 of file RISCVSubtarget.h.

Referenced by llvm::RISCVTargetLowering::RISCVTargetLowering().

◆ hasStdExtC()

bool llvm::RISCVSubtarget::hasStdExtC ( ) const
inline

Definition at line 89 of file RISCVSubtarget.h.

Referenced by llvm::RISCVTargetLowering::RISCVTargetLowering().

◆ hasStdExtD()

bool llvm::RISCVSubtarget::hasStdExtD ( ) const
inline

◆ hasStdExtF()

bool llvm::RISCVSubtarget::hasStdExtF ( ) const
inline

◆ hasStdExtM()

bool llvm::RISCVSubtarget::hasStdExtM ( ) const
inline

◆ is64Bit()

bool llvm::RISCVSubtarget::is64Bit ( ) const
inline

◆ isRegisterReservedByUser()

bool llvm::RISCVSubtarget::isRegisterReservedByUser ( Register  i) const
inline

◆ isRV32E()

bool llvm::RISCVSubtarget::isRV32E ( ) const
inline

Definition at line 91 of file RISCVSubtarget.h.

Referenced by llvm::RISCVTargetLowering::RISCVTargetLowering().

◆ ParseSubtargetFeatures()

void llvm::RISCVSubtarget::ParseSubtargetFeatures ( StringRef  CPU,
StringRef  FS 
)

Member Data Documentation

◆ CallLoweringInfo

std::unique_ptr<CallLowering> llvm::RISCVSubtarget::CallLoweringInfo
protected

Definition at line 104 of file RISCVSubtarget.h.

Referenced by getCallLowering(), and RISCVSubtarget().

◆ InstSelector

std::unique_ptr<InstructionSelector> llvm::RISCVSubtarget::InstSelector
protected

Definition at line 105 of file RISCVSubtarget.h.

Referenced by getInstructionSelector(), and RISCVSubtarget().

◆ Legalizer

std::unique_ptr<LegalizerInfo> llvm::RISCVSubtarget::Legalizer
protected

Definition at line 106 of file RISCVSubtarget.h.

◆ RegBankInfo

std::unique_ptr<RegisterBankInfo> llvm::RISCVSubtarget::RegBankInfo
protected

Definition at line 107 of file RISCVSubtarget.h.

Referenced by getRegBankInfo(), and RISCVSubtarget().


The documentation for this class was generated from the following files: