reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc
78569   case 0: return (Subtarget->hasDot1Insts());
78570   case 1: return (Subtarget->hasDot2Insts());
78571   case 2: return (Subtarget->getWavefrontSize() == 64);
78572   case 3: return (Subtarget->getWavefrontSize() == 32);
78573   case 4: return (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX9);
78574   case 5: return (Subtarget->has16BitInsts());
78575   case 6: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78575   case 6: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78575   case 6: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78575   case 6: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78575   case 6: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78576   case 7: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX10);
78576   case 7: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX10);
78577   case 8: return (Subtarget->hasAddNoCarry());
78578   case 9: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78578   case 9: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78578   case 9: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78578   case 9: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78579   case 10: return (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS);
78580   case 11: return (Subtarget->ldsRequiresM0Init());
78581   case 12: return (!Subtarget->ldsRequiresM0Init());
78582   case 13: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS);
78582   case 13: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS);
78583   case 14: return (Subtarget->hasFlatGlobalInsts());
78584   case 15: return (Subtarget->hasFlatAddressSpace());
78585   case 16: return (Subtarget->ldsRequiresM0Init()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS);
78585   case 16: return (Subtarget->ldsRequiresM0Init()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS);
78586   case 17: return (Subtarget->d16PreservesUnusedBits());
78587   case 18: return (Subtarget->hasDot6Insts());
78588   case 19: return (Subtarget->hasDot4Insts());
78589   case 20: return (Subtarget->hasDot3Insts());
78590   case 21: return (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS);
78591   case 22: return (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX10);
78592   case 23: return (Subtarget->getLDSBankCount() == 32);
78593   case 24: return (Subtarget->getLDSBankCount() == 16);
78595   case 26: return (Subtarget->hasMAIInsts());
78596   case 27: return (Subtarget->hasUnpackedD16VMem());
78597   case 28: return (!Subtarget->hasUnpackedD16VMem());
78598   case 29: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX10);
78598   case 29: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX10);
78598   case 29: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX10);
78599   case 30: return (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78599   case 30: return (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78599   case 30: return (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78600   case 31: return (Subtarget->hasScalarStores()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS);
78600   case 31: return (Subtarget->hasScalarStores()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS);
78601   case 32: return (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS);
78602   case 33: return (Subtarget->getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS);
78603   case 34: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78603   case 34: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78603   case 34: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78603   case 34: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS ||Subtarget->getGeneration() == AMDGPUSubtarget::GFX9);
78605   case 36: return (Subtarget->hasDot5Insts());
78606   case 37: return (Subtarget->hasDLInsts());
78607   case 38: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() ==AMDGPUSubtarget::VOLCANIC_ISLANDS);
78607   case 38: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() ==AMDGPUSubtarget::VOLCANIC_ISLANDS);
78608   case 39: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX9);
78608   case 39: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX9);
78609   case 40: return (Subtarget->hasMadMixInsts());
78610   case 41: return (Subtarget->hasFmaMixInsts());
78611   case 42: return (!Subtarget->hasFP16Denormals());
78612   case 43: return (!Subtarget->hasFP32Denormals());
78613   case 44: return (Subtarget->hasFP16Denormals());
78614   case 45: return (Subtarget->hasFP32Denormals());
78615   case 46: return (!Subtarget->hasFP64Denormals());
78616   case 47: return (Subtarget->hasFP64Denormals());
78617   case 48: return (Subtarget->hasFP16Denormals()) && (Subtarget->hasVOP3PInsts());
78617   case 48: return (Subtarget->hasFP16Denormals()) && (Subtarget->hasVOP3PInsts());
78618   case 49: return (Subtarget->hasVOP3PInsts());
79643         if (ConstantBusUses > Subtarget->getConstantBusLimit(AMDGPU::V_ADD3_U32))
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  394   Subtarget = &MF.getSubtarget<GCNSubtarget>();
  399   assert(Subtarget->d16PreservesUnusedBits());
  479   if (!Subtarget->d16PreservesUnusedBits())
  522   const SIInstrInfo *TII = Subtarget->getInstrInfo();
  556         = static_cast<const GCNSubtarget *>(Subtarget)->getRegisterInfo();
  566         Subtarget->getInstrInfo()->get(N->getMachineOpcode());
  574     return Subtarget->getRegisterInfo()->getRegClass(RegClass);
  579         Subtarget->getRegisterInfo()->getRegClass(RCID);
  583     return Subtarget->getRegisterInfo()->getSubClassWithSubReg(SuperRC,
  613     if (Subtarget->ldsRequiresM0Init())
 1111   const GCNSubtarget *ST = static_cast<const GCNSubtarget *>(Subtarget);
 1158   if (Subtarget->hasUsableDSOffset() ||
 1159       Subtarget->unsafeDSOffsetFoldingEnabled())
 1200           if (Subtarget->hasAddNoCarry()) {
 1279           if (Subtarget->hasAddNoCarry()) {
 1328   if (Subtarget->useFlatForGlobal())
 1423   if (!Subtarget->hasAddr64())
 1532         (!Subtarget->privateMemoryResourceIsRangeChecked() ||
 1580     static_cast<const SIInstrInfo *>(Subtarget->getInstrInfo());
 1639   if (Subtarget->hasFlatInstOffsets() &&
 1640       (!Subtarget->hasFlatSegmentOffsetBug() ||
 1647     const SIInstrInfo *TII = Subtarget->getInstrInfo();
 1753   GCNSubtarget::Generation Gen = Subtarget->getGeneration();
 1755   int64_t EncodedOffset = AMDGPU::getSMRDEncodedOffset(*Subtarget, ByteOffset);
 1757   if (AMDGPU::isLegalSMRDImmOffset(*Subtarget, ByteOffset)) {
 1835   if (Subtarget->getGeneration() != AMDGPUSubtarget::SEA_ISLANDS)
 1860   if (Subtarget->getGeneration() != AMDGPUSubtarget::SEA_ISLANDS)
 2028     auto ST = static_cast<const GCNSubtarget *>(Subtarget);
 2046   const GCNSubtarget *ST = static_cast<const GCNSubtarget *>(Subtarget);
 2087   if (VT != MVT::f32 || (!Subtarget->hasMadMixInsts() &&
 2088                          !Subtarget->hasFmaMixInsts()) ||
 2089       ((IsFMA && Subtarget->hasMadMixInsts()) ||
 2090        (!IsFMA && Subtarget->hasFmaMixInsts()))) {
 2106   assert((IsFMA || !Subtarget->hasFP32Denormals()) &&
 2145   if (Subtarget->hasAddr64()) {
 2256       !Subtarget->hasGWSSemaReleaseAll()) {
 2637     static_cast<const SIRegisterInfo *>(Subtarget->getRegisterInfo());
 2639     static_cast<const SIInstrInfo *>(Subtarget->getInstrInfo());
 2696             Subtarget->getScalarizeGlobalBehavior() &&