LLVM  5.0.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::MipsSubtarget Class Reference

#include "Target/Mips/MipsSubtarget.h"

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

Public Member Functions

bool isPositionIndependent () const
 
bool enablePostRAScheduler () const override
 This overrides the PostRAScheduler bit in the SchedModel for each CPU. More...
 
void getCriticalPathRCs (RegClassVector &CriticalPathRCs) const override
 
CodeGenOpt::Level getOptLevelToEnablePostRAScheduler () const override
 
bool isABI_N64 () const
 
bool isABI_N32 () const
 
bool isABI_O32 () const
 
const MipsABIInfo & getABI () const
 
bool isABI_FPXX () const
 
 MipsSubtarget (const Triple &TT, StringRef CPU, StringRef FS, bool little, const MipsTargetMachine &TM)
 This constructor initializes the data members to match that of the specified triple. More...
 
void ParseSubtargetFeatures (StringRef CPU, StringRef FS)
 ParseSubtargetFeatures - Parses features string setting specified subtarget options. More...
 
bool hasMips1 () const
 
bool hasMips2 () const
 
bool hasMips3 () const
 
bool hasMips4 () const
 
bool hasMips5 () const
 
bool hasMips4_32 () const
 
bool hasMips4_32r2 () const
 
bool hasMips32 () const
 
bool hasMips32r2 () const
 
bool hasMips32r3 () const
 
bool hasMips32r5 () const
 
bool hasMips32r6 () const
 
bool hasMips64 () const
 
bool hasMips64r2 () const
 
bool hasMips64r3 () const
 
bool hasMips64r5 () const
 
bool hasMips64r6 () const
 
bool hasCnMips () const
 
bool isLittle () const
 
bool isABICalls () const
 
bool isFPXX () const
 
bool isFP64bit () const
 
bool useOddSPReg () const
 
bool noOddSPReg () const
 
bool isNaN2008 () const
 
bool isGP64bit () const
 
bool isGP32bit () const
 
unsigned getGPRSizeInBytes () const
 
bool isPTR64bit () const
 
bool isPTR32bit () const
 
bool hasSym32 () const
 
bool isSingleFloat () const
 
bool isTargetELF () const
 
bool hasVFPU () const
 
bool inMips16Mode () const
 
bool inMips16ModeDefault () const
 
bool inMips16HardFloat () const
 
bool inMicroMipsMode () const
 
bool inMicroMips32r6Mode () const
 
bool inMicroMips64r6Mode () const
 
bool hasDSP () const
 
bool hasDSPR2 () const
 
bool hasDSPR3 () const
 
bool hasMSA () const
 
bool disableMadd4 () const
 
bool hasEVA () const
 
bool hasMT () const
 
bool useSmallSection () const
 
bool hasStandardEncoding () const
 
bool useSoftFloat () const
 
bool useLongCalls () const
 
bool enableLongBranchPass () const
 
bool hasExtractInsert () const
 Features related to the presence of specific instructions. More...
 
bool hasMTHC1 () const
 
bool allowMixed16_32 () const
 
bool os16 () const
 
bool isTargetNaCl () const
 
bool isXRaySupported () const override
 
unsigned stackAlignment () const
 
Reloc::Model getRelocationModel () const
 
MipsSubtarget & initializeSubtargetDependencies (StringRef CPU, StringRef FS, const TargetMachine &TM)
 
bool systemSupportsUnalignedAccess () const
 Does the system support unaligned memory access. More...
 
void setHelperClassesMips16 ()
 
void setHelperClassesMipsSE ()
 
const SelectionDAGTargetInfo * getSelectionDAGInfo () const override
 
const MipsInstrInfo * getInstrInfo () const override
 
const TargetFrameLowering * getFrameLowering () const override
 
const MipsRegisterInfo * getRegisterInfo () const override
 
const MipsTargetLowering * getTargetLowering () const override
 
const InstrItineraryData * getInstrItineraryData () const override
 

Static Public Member Functions

static bool useConstantIslands ()
 

Detailed Description

Definition at line 36 of file MipsSubtarget.h.

Constructor & Destructor Documentation

MipsSubtarget::MipsSubtarget ( const Triple &  TT,
StringRef  CPU,
StringRef  FS,
bool  little,
const MipsTargetMachine &  TM 
)

This constructor initializes the data members to match that of the specified triple.

Definition at line 62 of file MipsSubtarget.cpp.

References assert(), llvm::errs(), GPOpt, hasDSP(), hasMips32r6(), hasMips64r6(), hasMSA(), hasSym32(), isABI_N32(), isABI_N64(), isABI_O32(), isFP64bit(), isGP64bit(), isNaN2008(), llvm::TargetMachine::isPositionIndependent(), llvm::report_fatal_error(), and useOddSPReg().

Member Function Documentation

bool llvm::MipsSubtarget::allowMixed16_32 ( ) const
inline
bool llvm::MipsSubtarget::disableMadd4 ( ) const
inline

Definition at line 266 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::enableLongBranchPass ( ) const
inline

Definition at line 277 of file MipsSubtarget.h.

References allowMixed16_32(), and hasStandardEncoding().

bool MipsSubtarget::enablePostRAScheduler ( ) const
override

This overrides the PostRAScheduler bit in the SchedModel for each CPU.

This overrides the PostRAScheduler bit in the SchedModel for any CPU.

Definition at line 135 of file MipsSubtarget.cpp.

const MipsABIInfo & MipsSubtarget::getABI ( ) const
void MipsSubtarget::getCriticalPathRCs ( RegClassVector &  CriticalPathRCs) const
override

Definition at line 137 of file MipsSubtarget.cpp.

References isGP64bit().

const TargetFrameLowering* llvm::MipsSubtarget::getFrameLowering ( ) const
inlineoverride
unsigned llvm::MipsSubtarget::getGPRSizeInBytes ( ) const
inline

Definition at line 239 of file MipsSubtarget.h.

References isGP64bit().

Referenced by llvm::MipsTargetLowering::HandleByVal().

const MipsInstrInfo* llvm::MipsSubtarget::getInstrInfo ( ) const
inlineoverride
const InstrItineraryData* llvm::MipsSubtarget::getInstrItineraryData ( ) const
inlineoverride

Definition at line 330 of file MipsSubtarget.h.

CodeGenOpt::Level MipsSubtarget::getOptLevelToEnablePostRAScheduler ( ) const
override

Definition at line 143 of file MipsSubtarget.cpp.

References llvm::CodeGenOpt::Aggressive.

const MipsRegisterInfo* llvm::MipsSubtarget::getRegisterInfo ( ) const
inlineoverride
Reloc::Model MipsSubtarget::getRelocationModel ( ) const

Definition at line 168 of file MipsSubtarget.cpp.

References llvm::TargetMachine::getRelocationModel().

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

Definition at line 317 of file MipsSubtarget.h.

const MipsTargetLowering* llvm::MipsSubtarget::getTargetLowering ( ) const
inlineoverride

Definition at line 327 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasCnMips ( ) const
inline
bool llvm::MipsSubtarget::hasDSP ( ) const
inline
bool llvm::MipsSubtarget::hasDSPR2 ( ) const
inline
bool llvm::MipsSubtarget::hasDSPR3 ( ) const
inline

Definition at line 264 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasEVA ( ) const
inline

Definition at line 267 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasExtractInsert ( ) const
inline

Features related to the presence of specific instructions.

Definition at line 282 of file MipsSubtarget.h.

References hasMips32r2(), and inMips16Mode().

Referenced by performANDCombine(), and performORCombine().

bool llvm::MipsSubtarget::hasMips1 ( ) const
inline

Definition at line 195 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMips2 ( ) const
inline

Definition at line 196 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMips3 ( ) const
inline

Definition at line 197 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMips32 ( ) const
inline
bool llvm::MipsSubtarget::hasMips32r2 ( ) const
inline
bool llvm::MipsSubtarget::hasMips32r3 ( ) const
inline

Definition at line 210 of file MipsSubtarget.h.

References hasMips64r2().

bool llvm::MipsSubtarget::hasMips32r5 ( ) const
inline

Definition at line 214 of file MipsSubtarget.h.

References hasMips64r5().

bool llvm::MipsSubtarget::hasMips32r6 ( ) const
inline
bool llvm::MipsSubtarget::hasMips4 ( ) const
inline

Definition at line 198 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMips4_32 ( ) const
inline

Definition at line 200 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMips4_32r2 ( ) const
inline

Definition at line 201 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMips5 ( ) const
inline

Definition at line 199 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMips64 ( ) const
inline
bool llvm::MipsSubtarget::hasMips64r2 ( ) const
inline
bool llvm::MipsSubtarget::hasMips64r3 ( ) const
inline

Definition at line 224 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMips64r5 ( ) const
inline

Definition at line 225 of file MipsSubtarget.h.

Referenced by hasMips32r5().

bool llvm::MipsSubtarget::hasMips64r6 ( ) const
inline
bool llvm::MipsSubtarget::hasMSA ( ) const
inline
bool llvm::MipsSubtarget::hasMT ( ) const
inline

Definition at line 268 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::hasMTHC1 ( ) const
inline

Definition at line 283 of file MipsSubtarget.h.

References hasMips32r2().

bool llvm::MipsSubtarget::hasStandardEncoding ( ) const
inline

Definition at line 271 of file MipsSubtarget.h.

References inMips16Mode().

Referenced by llvm::MipsRegisterInfo::canRealignStack(), and enableLongBranchPass().

bool llvm::MipsSubtarget::hasSym32 ( ) const
inline

Definition at line 242 of file MipsSubtarget.h.

References isABI_N32(), isABI_N64(), and isABI_O32().

Referenced by MipsSubtarget().

bool llvm::MipsSubtarget::hasVFPU ( ) const
inline

Definition at line 247 of file MipsSubtarget.h.

MipsSubtarget & MipsSubtarget::initializeSubtargetDependencies ( StringRef  CPU,
StringRef  FS,
const TargetMachine &  TM 
)
bool llvm::MipsSubtarget::inMicroMips32r6Mode ( ) const
inline

Definition at line 260 of file MipsSubtarget.h.

References hasMips32r6().

bool llvm::MipsSubtarget::inMicroMips64r6Mode ( ) const
inline

Definition at line 261 of file MipsSubtarget.h.

References hasMips64r6().

bool llvm::MipsSubtarget::inMicroMipsMode ( ) const
inline
bool llvm::MipsSubtarget::inMips16HardFloat ( ) const
inline
bool llvm::MipsSubtarget::inMips16Mode ( ) const
inline
bool llvm::MipsSubtarget::inMips16ModeDefault ( ) const
inline

Definition at line 249 of file MipsSubtarget.h.

Referenced by allowMixed16_32().

bool llvm::MipsSubtarget::isABI_FPXX ( ) const
inline

Definition at line 184 of file MipsSubtarget.h.

References isABI_O32().

bool MipsSubtarget::isABI_N32 ( ) const
bool MipsSubtarget::isABI_N64 ( ) const
bool MipsSubtarget::isABI_O32 ( ) const
bool llvm::MipsSubtarget::isABICalls ( ) const
inline
bool llvm::MipsSubtarget::isFP64bit ( ) const
inline
bool llvm::MipsSubtarget::isFPXX ( ) const
inline
bool llvm::MipsSubtarget::isGP32bit ( ) const
inline

Definition at line 238 of file MipsSubtarget.h.

Referenced by llvm::MipsRegisterInfo::canRealignStack().

bool llvm::MipsSubtarget::isGP64bit ( ) const
inline
bool llvm::MipsSubtarget::isLittle ( ) const
inline
bool llvm::MipsSubtarget::isNaN2008 ( ) const
inline

Definition at line 236 of file MipsSubtarget.h.

Referenced by MipsSubtarget().

bool MipsSubtarget::isPositionIndependent ( ) const

Definition at line 130 of file MipsSubtarget.cpp.

References llvm::TargetMachine::isPositionIndependent().

bool llvm::MipsSubtarget::isPTR32bit ( ) const
inline

Definition at line 241 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::isPTR64bit ( ) const
inline

Definition at line 240 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::isSingleFloat ( ) const
inline
bool llvm::MipsSubtarget::isTargetELF ( ) const
inline

Definition at line 246 of file MipsSubtarget.h.

References llvm::Triple::isOSBinFormatELF().

bool llvm::MipsSubtarget::isTargetNaCl ( ) const
inline
bool llvm::MipsSubtarget::isXRaySupported ( ) const
inlineoverride

Definition at line 292 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::noOddSPReg ( ) const
inline

Definition at line 235 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::os16 ( ) const
inline

Definition at line 288 of file MipsSubtarget.h.

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

ParseSubtargetFeatures - Parses features string setting specified subtarget options.

Definition of function is auto generated by tblgen.

Referenced by initializeSubtargetDependencies().

void llvm::MipsSubtarget::setHelperClassesMips16 ( )
void llvm::MipsSubtarget::setHelperClassesMipsSE ( )
unsigned llvm::MipsSubtarget::stackAlignment ( ) const
inline

Definition at line 298 of file MipsSubtarget.h.

References hasMips64().

bool llvm::MipsSubtarget::systemSupportsUnalignedAccess ( ) const
inline

Does the system support unaligned memory access.

MIPS32r6/MIPS64r6 require full unaligned access support but does not specify which component of the system provides it. Hardware, software, and hybrid implementations are all valid.

Definition at line 311 of file MipsSubtarget.h.

References hasMips32r6().

Referenced by llvm::MipsSETargetLowering::allowsMisalignedMemoryAccesses(), llvm::MipsTargetLowering::lowerLOAD(), and llvm::MipsTargetLowering::lowerSTORE().

bool MipsSubtarget::useConstantIslands ( )
static

Definition at line 163 of file MipsSubtarget.cpp.

References llvm::dbgs(), DEBUG, and Mips16ConstantIslands.

bool llvm::MipsSubtarget::useLongCalls ( ) const
inline

Definition at line 275 of file MipsSubtarget.h.

bool llvm::MipsSubtarget::useOddSPReg ( ) const
inline

Definition at line 234 of file MipsSubtarget.h.

Referenced by llvm::MipsRegisterInfo::getReservedRegs(), and MipsSubtarget().

bool llvm::MipsSubtarget::useSmallSection ( ) const
inline

Definition at line 269 of file MipsSubtarget.h.

Referenced by llvm::MipsRegisterInfo::getReservedRegs().

bool llvm::MipsSubtarget::useSoftFloat ( ) const
inline

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