LLVM 20.0.0git
|
#include "Target/Mips/MipsSubtarget.h"
Static Public Member Functions | |
static bool | useConstantIslands () |
Protected Attributes | |
std::unique_ptr< CallLowering > | CallLoweringInfo |
std::unique_ptr< LegalizerInfo > | Legalizer |
std::unique_ptr< RegisterBankInfo > | RegBankInfo |
std::unique_ptr< InstructionSelector > | InstSelector |
Definition at line 38 of file MipsSubtarget.h.
MipsSubtarget::MipsSubtarget | ( | const Triple & | TT, |
StringRef | CPU, | ||
StringRef | FS, | ||
bool | little, | ||
const MipsTargetMachine & | TM, | ||
MaybeAlign | StackAlignOverride | ||
) |
This constructor initializes the data members to match that of the specified triple.
Definition at line 71 of file MipsSubtarget.cpp.
References assert(), CallLoweringInfo, llvm::createMipsInstructionSelector(), llvm::errs(), getRegisterInfo(), getTargetLowering(), GPOpt, hasCRC(), hasDSP(), hasDSPR2(), hasGINV(), hasMips32(), hasMips32r2(), hasMips32r5(), hasMips32r6(), hasMips64(), hasMips64r2(), hasMips64r6(), hasMSA(), hasSym32(), hasVirt(), inAbs2008Mode(), InstSelector, isABI_N32(), isABI_N64(), isABI_O32(), isFP64bit(), isGP64bit(), isNaN2008(), Mips16HardFloat, RegBankInfo, llvm::report_fatal_error(), and useOddSPReg().
|
inline |
Definition at line 352 of file MipsSubtarget.h.
References inMips16ModeDefault().
Referenced by enableLongBranchPass(), and llvm::MipsTargetMachine::getTargetTransformInfo().
|
inline |
Definition at line 325 of file MipsSubtarget.h.
|
inline |
Definition at line 344 of file MipsSubtarget.h.
References allowMixed16_32(), hasStandardEncoding(), and inMicroMipsMode().
|
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 228 of file MipsSubtarget.cpp.
const MipsABIInfo & MipsSubtarget::getABI | ( | ) | const |
Definition at line 282 of file MipsSubtarget.cpp.
References llvm::MipsTargetMachine::getABI().
Referenced by llvm::MipsSEInstrInfo::adjustStackPtr(), llvm::MipsSEFrameLowering::determineCalleeSaves(), llvm::MipsFrameLowering::eliminateCallFramePseudoInstr(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::MipsInstrInfo::getEquivalentCompactForm(), llvm::MipsSEFrameLowering::getFrameIndexReference(), isABI_N32(), isABI_N64(), isABI_O32(), llvm::MipsSEInstrInfo::loadRegFromStack(), and llvm::MipsSEFrameLowering::spillCalleeSavedRegisters().
|
override |
Definition at line 284 of file MipsSubtarget.cpp.
References CallLoweringInfo.
|
override |
Definition at line 230 of file MipsSubtarget.cpp.
References isGP64bit().
|
inlineoverride |
Definition at line 390 of file MipsSubtarget.h.
Referenced by llvm::MipsRegisterInfo::canRealignStack(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::MipsRegisterInfo::getReservedRegs(), and llvm::MipsTargetLowering::HandleByVal().
|
inline |
Definition at line 296 of file MipsSubtarget.h.
References isGP64bit().
Referenced by llvm::MipsTargetLowering::HandleByVal().
|
inlineoverride |
Definition at line 389 of file MipsSubtarget.h.
Referenced by llvm::Mips16FrameLowering::determineCalleeSaves(), llvm::MipsFrameLowering::eliminateCallFramePseudoInstr(), llvm::Mips16FrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitEpilogue(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::Mips16FrameLowering::emitPrologue(), llvm::MipsSEFrameLowering::emitPrologue(), and llvm::MipsSEFrameLowering::spillCalleeSavedRegisters().
|
inlineoverride |
Definition at line 399 of file MipsSubtarget.h.
|
override |
Definition at line 296 of file MipsSubtarget.cpp.
References InstSelector.
|
override |
Definition at line 288 of file MipsSubtarget.cpp.
|
override |
Definition at line 236 of file MipsSubtarget.cpp.
References llvm::Aggressive.
|
override |
Definition at line 292 of file MipsSubtarget.cpp.
References RegBankInfo.
Referenced by llvm::MipsCallLowering::lowerCall().
|
inlineoverride |
Definition at line 393 of file MipsSubtarget.h.
Referenced by llvm::MipsSEFrameLowering::emitEpilogue(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::MipsFrameLowering::estimateStackSize(), llvm::MipsTargetLowering::getOpndList(), llvm::MipsFrameLowering::hasBP(), llvm::MipsFrameLowering::hasFP(), llvm::MipsCallLowering::lowerCall(), llvm::Mips16TargetLowering::Mips16TargetLowering(), llvm::MipsSETargetLowering::MipsSETargetLowering(), and MipsSubtarget().
Reloc::Model MipsSubtarget::getRelocationModel | ( | ) | const |
Definition at line 275 of file MipsSubtarget.cpp.
References llvm::TargetMachine::getRelocationModel().
|
inlineoverride |
Definition at line 386 of file MipsSubtarget.h.
|
inline |
Definition at line 365 of file MipsSubtarget.h.
|
inlineoverride |
Definition at line 396 of file MipsSubtarget.h.
Referenced by MipsSubtarget().
|
inline |
Definition at line 323 of file MipsSubtarget.h.
|
inline |
Definition at line 283 of file MipsSubtarget.h.
Referenced by llvm::MipsSETargetLowering::MipsSETargetLowering(), llvm::MipsTargetLowering::MipsTargetLowering(), performANDCombine(), and performSHLCombine().
|
inline |
Definition at line 284 of file MipsSubtarget.h.
|
inline |
Definition at line 328 of file MipsSubtarget.h.
Referenced by MipsSubtarget().
|
inline |
Definition at line 320 of file MipsSubtarget.h.
Referenced by llvm::MipsSETargetLowering::getRepRegClassFor(), llvm::MipsSETargetLowering::MipsSETargetLowering(), MipsSubtarget(), and performDSPShiftCombine().
|
inline |
Definition at line 321 of file MipsSubtarget.h.
Referenced by llvm::MipsSETargetLowering::MipsSETargetLowering(), MipsSubtarget(), performSRACombine(), and performSRLCombine().
|
inline |
Definition at line 322 of file MipsSubtarget.h.
|
inline |
Definition at line 326 of file MipsSubtarget.h.
|
inline |
Features related to the presence of specific instructions.
Definition at line 349 of file MipsSubtarget.h.
References hasMips32r2(), and inMips16Mode().
Referenced by performANDCombine(), and performORCombine().
|
inline |
Definition at line 330 of file MipsSubtarget.h.
Referenced by MipsSubtarget().
|
inline |
Definition at line 250 of file MipsSubtarget.h.
|
inline |
Definition at line 251 of file MipsSubtarget.h.
|
inline |
Definition at line 252 of file MipsSubtarget.h.
|
inline |
Definition at line 257 of file MipsSubtarget.h.
References hasMips64().
Referenced by llvm::MipsTargetLowering::createFastISel(), llvm::MipsTargetLowering::isCheapToSpeculateCtlz(), llvm::MipsTargetLowering::isCheapToSpeculateCttz(), MipsSubtarget(), llvm::MipsTargetLowering::MipsTargetLowering(), performADDCombine(), and performSUBCombine().
|
inline |
Definition at line 261 of file MipsSubtarget.h.
References hasMips64r2().
Referenced by hasExtractInsert(), hasMTHC1(), llvm::MipsSETargetLowering::MipsSETargetLowering(), MipsSubtarget(), llvm::MipsTargetLowering::MipsTargetLowering(), and useIndirectJumpsHazard().
|
inline |
Definition at line 265 of file MipsSubtarget.h.
References hasMips64r2().
|
inline |
Definition at line 269 of file MipsSubtarget.h.
References hasMips64r5().
Referenced by MipsSubtarget().
|
inline |
Definition at line 273 of file MipsSubtarget.h.
References hasMips64r6().
Referenced by llvm::MipsSETargetLowering::allowsMisalignedMemoryAccesses(), llvm::MipsTargetLowering::createFastISel(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::MipsInstrInfo::getEquivalentCompactForm(), getLoadStoreOffsetSizeInBits(), inMicroMips32r6Mode(), llvm::MipsInstrInfo::insertNop(), llvm::MipsSETargetLowering::MipsSETargetLowering(), MipsSubtarget(), llvm::MipsTargetLowering::MipsTargetLowering(), performADDCombine(), performSUBCombine(), and systemSupportsUnalignedAccess().
|
inline |
Definition at line 253 of file MipsSubtarget.h.
|
inline |
Definition at line 255 of file MipsSubtarget.h.
|
inline |
Definition at line 256 of file MipsSubtarget.h.
|
inline |
Definition at line 254 of file MipsSubtarget.h.
|
inline |
Definition at line 277 of file MipsSubtarget.h.
Referenced by llvm::MipsRegisterInfo::getCalleeSavedRegs(), hasMips32(), llvm::MipsSETargetLowering::MipsSETargetLowering(), MipsSubtarget(), llvm::MipsTargetLowering::MipsTargetLowering(), and performMADD_MSUBCombine().
|
inline |
Definition at line 278 of file MipsSubtarget.h.
Referenced by hasMips32r2(), hasMips32r3(), MipsSubtarget(), llvm::MipsTargetLowering::MipsTargetLowering(), and performORCombine().
|
inline |
Definition at line 279 of file MipsSubtarget.h.
|
inline |
Definition at line 280 of file MipsSubtarget.h.
Referenced by hasMips32r5().
|
inline |
Definition at line 281 of file MipsSubtarget.h.
Referenced by llvm::MipsRegisterInfo::getCalleeSavedRegs(), hasMips32r6(), llvm::MipsSETargetLowering::MipsSETargetLowering(), MipsSubtarget(), and llvm::MipsTargetLowering::MipsTargetLowering().
|
inline |
Definition at line 324 of file MipsSubtarget.h.
Referenced by llvm::MipsSEFrameLowering::determineCalleeSaves(), getMSAMapping(), llvm::MipsSETargetLowering::MipsSETargetLowering(), MipsSubtarget(), performANDCombine(), performORCombine(), performSRACombine(), and performXORCombine().
|
inline |
Definition at line 327 of file MipsSubtarget.h.
|
inline |
Definition at line 350 of file MipsSubtarget.h.
References hasMips32r2().
|
inline |
Definition at line 336 of file MipsSubtarget.h.
Referenced by enableLongBranchPass().
|
inline |
Definition at line 299 of file MipsSubtarget.h.
References isABI_N32(), isABI_N64(), and isABI_O32().
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile(), and MipsSubtarget().
|
inline |
Definition at line 304 of file MipsSubtarget.h.
|
inline |
Definition at line 329 of file MipsSubtarget.h.
Referenced by MipsSubtarget().
|
inline |
Definition at line 293 of file MipsSubtarget.h.
Referenced by MipsSubtarget().
MipsSubtarget & MipsSubtarget::initializeSubtargetDependencies | ( | StringRef | CPU, |
StringRef | FS, | ||
const TargetMachine & | TM | ||
) |
Definition at line 241 of file MipsSubtarget.cpp.
References assert(), isABI_N32(), isABI_N64(), isABI_O32(), isGP64bit(), ParseSubtargetFeatures(), llvm::report_fatal_error(), and llvm::MIPS_MC::selectMipsCPU().
|
inline |
Definition at line 317 of file MipsSubtarget.h.
References hasMips32r6(), and inMicroMipsMode().
|
inline |
Definition at line 316 of file MipsSubtarget.h.
Referenced by llvm::MipsSEInstrInfo::copyPhysReg(), llvm::MipsTargetLowering::createFastISel(), emitDirectiveRelocJalr(), llvm::MipsAsmPrinter::emitFunctionEntryLabel(), enableLongBranchPass(), llvm::MipsSEInstrInfo::expandPostRAPseudo(), llvm::MipsInstrInfo::getEquivalentCompactForm(), getLoadStoreOffsetSizeInBits(), getUnconditionalBranch(), inMicroMips32r6Mode(), llvm::MipsInstrInfo::insertNop(), and llvm::MipsTargetLowering::MipsTargetLowering().
|
inline |
Definition at line 313 of file MipsSubtarget.h.
References inMips16Mode().
Referenced by llvm::MipsTargetLowering::getOpndList(), and llvm::MipsCCState::getSpecialCallingConvForCallee().
|
inline |
Definition at line 305 of file MipsSubtarget.h.
Referenced by llvm::MipsTargetLowering::AdjustInstrPostInstrSelection(), llvm::MipsRegisterInfo::canRealignStack(), llvm::MipsTargetLowering::create(), llvm::MipsInstrInfo::create(), llvm::MipsTargetLowering::createFastISel(), llvm::MipsAsmPrinter::emitConstantPool(), llvm::MipsAsmPrinter::emitFunctionBodyEnd(), llvm::MipsAsmPrinter::emitFunctionBodyStart(), llvm::MipsAsmPrinter::emitFunctionEntryLabel(), llvm::MipsAsmPrinter::emitInstruction(), llvm::MipsRegisterInfo::getFrameRegister(), llvm::MipsRegisterInfo::getReservedRegs(), hasExtractInsert(), inMips16HardFloat(), llvm::MipsInstrInfo::insertNop(), llvm::MipsTargetLowering::MipsTargetLowering(), performADDCombine(), performSUBCombine(), and llvm::MipsAsmPrinter::runOnMachineFunction().
|
inline |
Definition at line 306 of file MipsSubtarget.h.
Referenced by allowMixed16_32().
|
inline |
Definition at line 239 of file MipsSubtarget.h.
References isABI_O32().
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile().
bool MipsSubtarget::isABI_N32 | ( | ) | const |
Definition at line 280 of file MipsSubtarget.cpp.
References getABI(), and llvm::MipsABIInfo::IsN32().
Referenced by llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCallPreservedMask(), hasSym32(), initializeSubtargetDependencies(), and MipsSubtarget().
bool MipsSubtarget::isABI_N64 | ( | ) | const |
Definition at line 279 of file MipsSubtarget.cpp.
References getABI(), and llvm::MipsABIInfo::IsN64().
Referenced by llvm::MipsSEFrameLowering::emitPrologue(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCallPreservedMask(), hasSym32(), initializeSubtargetDependencies(), llvm::MipsSEInstrInfo::loadImmediate(), lowerMSALoadIntr(), lowerMSAStoreIntr(), and MipsSubtarget().
bool MipsSubtarget::isABI_O32 | ( | ) | const |
Definition at line 281 of file MipsSubtarget.cpp.
References getABI(), and llvm::MipsABIInfo::IsO32().
Referenced by llvm::MipsTargetLowering::getNumRegistersForCallingConv(), llvm::MipsTargetLowering::getRegisterTypeForCallingConv(), llvm::MipsTargetLowering::getTypeForExtReturn(), hasSym32(), initializeSubtargetDependencies(), isABI_FPXX(), MipsSubtarget(), and shouldTransformMulToShiftsAddsSubs().
|
inline |
Definition at line 287 of file MipsSubtarget.h.
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile(), and llvm::MipsRegisterInfo::getReservedRegs().
|
inline |
Definition at line 289 of file MipsSubtarget.h.
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile(), llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCallPreservedMask(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::MipsSETargetLowering::MipsSETargetLowering(), and MipsSubtarget().
|
inline |
Definition at line 288 of file MipsSubtarget.h.
Referenced by llvm::MipsRegisterInfo::getCalleeSavedRegs(), and llvm::MipsRegisterInfo::getCallPreservedMask().
|
inline |
Definition at line 295 of file MipsSubtarget.h.
Referenced by llvm::MipsRegisterInfo::canRealignStack().
|
inline |
Definition at line 294 of file MipsSubtarget.h.
Referenced by llvm::MipsSEFrameLowering::determineCalleeSaves(), getCriticalPathRCs(), getGPRSizeInBytes(), llvm::MipsTargetLowering::getRegisterByName(), initializeSubtargetDependencies(), llvm::MipsSETargetLowering::MipsSETargetLowering(), MipsSubtarget(), llvm::MipsTargetLowering::MipsTargetLowering(), and llvm::MipsAsmPrinter::PrintAsmOperand().
|
inline |
Definition at line 286 of file MipsSubtarget.h.
Referenced by CC_MipsO32(), llvm::MipsSEFrameLowering::emitPrologue(), llvm::MipsTargetLowering::lowerLOAD(), llvm::MipsTargetLowering::lowerSTORE(), performDSPShiftCombine(), performORCombine(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), and llvm::MipsAsmPrinter::PrintAsmOperand().
|
inline |
Definition at line 292 of file MipsSubtarget.h.
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile(), and MipsSubtarget().
bool MipsSubtarget::isPositionIndependent | ( | ) | const |
Definition at line 223 of file MipsSubtarget.cpp.
References llvm::TargetMachine::isPositionIndependent().
Referenced by getUnconditionalBranch().
|
inline |
Definition at line 298 of file MipsSubtarget.h.
|
inline |
Definition at line 297 of file MipsSubtarget.h.
|
inline |
Definition at line 302 of file MipsSubtarget.h.
Referenced by llvm::MipsRegisterInfo::getCalleeSavedRegs(), llvm::MipsRegisterInfo::getCallPreservedMask(), llvm::MipsTargetLowering::lowerSTORE(), and llvm::MipsSETargetLowering::MipsSETargetLowering().
|
inline |
Definition at line 303 of file MipsSubtarget.h.
References llvm::Triple::isOSBinFormatELF().
|
inline |
Definition at line 357 of file MipsSubtarget.h.
References llvm::Triple::isOSNaCl().
Referenced by llvm::MipsAsmPrinter::emitFunctionEntryLabel(), llvm::MipsRegisterInfo::getReservedRegs(), and llvm::MipsAsmPrinter::runOnMachineFunction().
|
inlineoverride |
Definition at line 359 of file MipsSubtarget.h.
|
inline |
Definition at line 291 of file MipsSubtarget.h.
|
inline |
Definition at line 355 of file MipsSubtarget.h.
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 | ( | ) |
|
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 378 of file MipsSubtarget.h.
References hasMips32r6().
Referenced by llvm::MipsSETargetLowering::allowsMisalignedMemoryAccesses(), isGprbTwoInstrUnalignedLoadOrStore(), llvm::MipsTargetLowering::lowerLOAD(), and llvm::MipsTargetLowering::lowerSTORE().
|
static |
Definition at line 269 of file MipsSubtarget.cpp.
References llvm::dbgs(), LLVM_DEBUG, and Mips16ConstantIslands.
Referenced by llvm::MipsAsmPrinter::emitConstantPool().
|
inline |
Definition at line 331 of file MipsSubtarget.h.
References hasMips32r2().
Referenced by llvm::MipsInstrInfo::verifyInstruction().
|
inline |
Definition at line 340 of file MipsSubtarget.h.
|
inline |
Definition at line 290 of file MipsSubtarget.h.
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile(), and MipsSubtarget().
|
inline |
Definition at line 334 of file MipsSubtarget.h.
Referenced by llvm::MipsRegisterInfo::getReservedRegs().
|
inline |
Definition at line 338 of file MipsSubtarget.h.
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile(), llvm::Mips16TargetLowering::Mips16TargetLowering(), and llvm::MipsSETargetLowering::MipsSETargetLowering().
|
inline |
Definition at line 342 of file MipsSubtarget.h.
Referenced by llvm::MipsTargetLowering::createFastISel().
|
protected |
Definition at line 405 of file MipsSubtarget.h.
Referenced by getCallLowering(), and MipsSubtarget().
|
protected |
Definition at line 408 of file MipsSubtarget.h.
Referenced by getInstructionSelector(), and MipsSubtarget().
|
protected |
Definition at line 406 of file MipsSubtarget.h.
|
protected |
Definition at line 407 of file MipsSubtarget.h.
Referenced by getRegBankInfo(), and MipsSubtarget().