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

Derived Classes

lib/Target/AMDGPU/AMDGPUSubtarget.h
  247 class GCNSubtarget : public AMDGPUGenSubtargetInfo,
 1208 class R600Subtarget final : public R600GenSubtargetInfo,

Declarations

lib/Target/AMDGPU/AMDGPUISelLowering.h
   25 class AMDGPUSubtarget;
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
   29 class AMDGPUSubtarget;

References

gen/lib/Target/AMDGPU/AMDGPUGenCallingConv.inc
   30   if (static_cast<const GCNSubtarget&>(State.getMachineFunction().getSubtarget()).getGeneration() >= AMDGPUSubtarget::SOUTHERN_ISLANDS) {
   35   if (static_cast<const GCNSubtarget&>(State.getMachineFunction().getSubtarget()).getGeneration() >= AMDGPUSubtarget::SOUTHERN_ISLANDS && State.getCallingConv() == CallingConv::C) {
gen/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc
78573   case 4: return (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);
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);
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);
78585   case 16: return (Subtarget->ldsRequiresM0Init()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS);
78590   case 21: return (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS);
78591   case 22: return (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);
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);
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);
78607   case 38: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() ==AMDGPUSubtarget::VOLCANIC_ISLANDS);
78608   case 39: return (Subtarget->has16BitInsts()) && (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX9);
gen/lib/Target/AMDGPU/R600GenDAGISel.inc
12277   case 0: return (Subtarget->getGeneration() == AMDGPUSubtarget::EVERGREEN ||Subtarget->getGeneration() == AMDGPUSubtarget::NORTHERN_ISLANDS);
12277   case 0: return (Subtarget->getGeneration() == AMDGPUSubtarget::EVERGREEN ||Subtarget->getGeneration() == AMDGPUSubtarget::NORTHERN_ISLANDS);
12278   case 1: return (Subtarget->getGeneration() <= AMDGPUSubtarget::R700);
12279   case 2: return (Subtarget->getGeneration() <= AMDGPUSubtarget::NORTHERN_ISLANDS);
12281   case 4: return (Subtarget->getGeneration() >= AMDGPUSubtarget::EVERGREEN && !Subtarget->hasCaymanISA());
12282   case 5: return (Subtarget->getGeneration() == AMDGPUSubtarget::R700);
12283   case 6: return (Subtarget->hasFMA()) && (Subtarget->getGeneration() == AMDGPUSubtarget::EVERGREEN ||Subtarget->getGeneration() == AMDGPUSubtarget::NORTHERN_ISLANDS);
12283   case 6: return (Subtarget->hasFMA()) && (Subtarget->getGeneration() == AMDGPUSubtarget::EVERGREEN ||Subtarget->getGeneration() == AMDGPUSubtarget::NORTHERN_ISLANDS);
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  946   if (STM.getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS &&
  985   if (STM.getGeneration() <= AMDGPUSubtarget::SEA_ISLANDS ||
 1040   if (STM.getGeneration() < AMDGPUSubtarget::SEA_ISLANDS) {
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
 1766   if (Gen == AMDGPUSubtarget::SEA_ISLANDS && isUInt<32>(EncodedOffset)) {
 1835   if (Subtarget->getGeneration() != AMDGPUSubtarget::SEA_ISLANDS)
 1860   if (Subtarget->getGeneration() != AMDGPUSubtarget::SEA_ISLANDS)
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
   66                                            const AMDGPUSubtarget &STI)
  914   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(MF);
  914   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(MF);
 4176   const AMDGPUSubtarget &ST =
 4177       AMDGPUSubtarget::get(getTargetMachine(), MF.getFunction());
lib/Target/AMDGPU/AMDGPUISelLowering.h
   30   const AMDGPUSubtarget *Subtarget;
  147   AMDGPUTargetLowering(const TargetMachine &TM, const AMDGPUSubtarget &STI);
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  468   if (ST.getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS) {
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
  126     Changed |= AMDGPUSubtarget::get(TM, F).makeLIDRangeMetadata(CI);
lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
   25   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(MF);
   25   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(MF);
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  158   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(*TM, F);
  158   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(*TM, F);
  183   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(*TM, F);
  183   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(*TM, F);
  269   const AMDGPUSubtarget &ST =
  270       AMDGPUSubtarget::get(*TM, *Builder.GetInsertBlock()->getParent());
  627   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(*TM, F);
  627   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(*TM, F);
  757   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(*TM, ContainingFunction);
  757   const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(*TM, ContainingFunction);
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
   60   if (getGeneration() <= AMDGPUSubtarget::NORTHERN_ISLANDS) {
   94   if (getGeneration() >= AMDGPUSubtarget::SOUTHERN_ISLANDS) {
  146   HasFminFmaxLegacy = getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS;
  571   if (getGeneration() >= AMDGPUSubtarget::GFX10)
  574   if (getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS) {
  607   if (getGeneration() >= AMDGPUSubtarget::GFX10)
  611     if (getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
  613     if (getGeneration() == AMDGPUSubtarget::SEA_ISLANDS)
  894 const AMDGPUSubtarget &AMDGPUSubtarget::get(const MachineFunction &MF) {
  901 const AMDGPUSubtarget &AMDGPUSubtarget::get(const TargetMachine &TM, const Function &F) {
lib/Target/AMDGPU/AMDGPUSubtarget.h
   85   static const AMDGPUSubtarget &get(const MachineFunction &MF);
   86   static const AMDGPUSubtarget &get(const TargetMachine &TM,
  248                      public AMDGPUSubtarget {
  495     return (getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS);
  529     return getGeneration() >= AMDGPUSubtarget::GFX9;
  533     return getGeneration() >= AMDGPUSubtarget::GFX9;
  624     return getGeneration() >= AMDGPUSubtarget::GFX9;
  629     return getGeneration() >= AMDGPUSubtarget::GFX10;
  650     return getGeneration() < AMDGPUSubtarget::GFX9;
 1000     return getGeneration() != AMDGPUSubtarget::SOUTHERN_ISLANDS;
 1009     return getGeneration() == AMDGPUSubtarget::GFX9;
 1013     return getGeneration() == AMDGPUSubtarget::GFX9;
 1017     return getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS &&
 1018            getGeneration() <= AMDGPUSubtarget::GFX9;
 1071     return getGeneration() >= AMDGPUSubtarget::GFX9;
 1209                             public AMDGPUSubtarget {
lib/Target/AMDGPU/R600AsmPrinter.cpp
   71   if (STM.getGeneration() >= AMDGPUSubtarget::EVERGREEN) {
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp
  139   if (ST->getGeneration() <= AMDGPUSubtarget::R700) {
  179                ST->getGeneration() > AMDGPUSubtarget::EVERGREEN &&
  252     bool isEg = (ST->getGeneration() >= AMDGPUSubtarget::EVERGREEN);
lib/Target/AMDGPU/R600ISelLowering.cpp
  782   if (Gen >= AMDGPUSubtarget::R700)
lib/Target/AMDGPU/R600InstrInfo.cpp
 1321   if (ST.getGeneration() <= AMDGPUSubtarget::R700)
lib/Target/AMDGPU/SIFrameLowering.cpp
  223     if (ST.getGeneration() >= AMDGPUSubtarget::GFX10) {
lib/Target/AMDGPU/SIISelLowering.cpp
 1079   if (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX10)
 1167     if (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS) {
 1171     } else if (Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS) {
 1176     } else if (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS) {
 2144       if (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS &&
 5329   bool IsGFX10 = Subtarget->getGeneration() >= AMDGPUSubtarget::GFX10;
 5608     if (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
 5754     if (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
 5759     if (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
 5763     if (Subtarget->getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS)
 5861     bool IsGFX10 = Subtarget->getGeneration() >= AMDGPUSubtarget::GFX10;
 5942     if (Subtarget->getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS)
 6135     if (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX10) {
 6182     if (Subtarget->getGeneration() >= AMDGPUSubtarget::GFX10)
 7478     if (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS &&
10747       (getSubtarget()->getGeneration() < AMDGPUSubtarget::GFX10) ||
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
 1396         if (ST->getGeneration() <= AMDGPUSubtarget::SEA_ISLANDS)
lib/Target/AMDGPU/SIInstrInfo.cpp
 3705         ST.getGeneration() >= AMDGPUSubtarget::GFX10) {
 3711         ST.getGeneration() >= AMDGPUSubtarget::GFX10) {
 3717         ST.getGeneration() < AMDGPUSubtarget::GFX10) {
 5862   if (ST.getGeneration() >= AMDGPUSubtarget::GFX10) {
 5871     if (ST.getGeneration() <= AMDGPUSubtarget::VOLCANIC_ISLANDS)
 5876     if (ST.getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS)
 5889   if (ST.getGeneration() <= AMDGPUSubtarget::VOLCANIC_ISLANDS) {
 5900   if (ST.getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS &&
 5901       ST.getGeneration() <= AMDGPUSubtarget::GFX9)
 6277   if (ST.getGeneration() >= AMDGPUSubtarget::GFX10)
 6292   if (ST.getGeneration() >= AMDGPUSubtarget::GFX10) {
 6318   case AMDGPUSubtarget::SOUTHERN_ISLANDS:
 6319   case AMDGPUSubtarget::SEA_ISLANDS:
 6321   case AMDGPUSubtarget::VOLCANIC_ISLANDS:
 6322   case AMDGPUSubtarget::GFX9:
 6324   case AMDGPUSubtarget::GFX10:
 6334     ST.getGeneration() == AMDGPUSubtarget::GFX9)
 6348     case AMDGPUSubtarget::GFX9:
 6351     case AMDGPUSubtarget::GFX10:
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
  123     if (ST.getGeneration() >= AMDGPUSubtarget::GFX9 &&
lib/Target/AMDGPU/SIMemoryLegalizer.cpp
  658   if (Generation <= AMDGPUSubtarget::SOUTHERN_ISLANDS)
  660   if (Generation < AMDGPUSubtarget::GFX10)
lib/Target/AMDGPU/SIShrinkInstructions.cpp
  694           ST.getGeneration() >= AMDGPUSubtarget::GFX10 &&
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
 1296       Subtarget->getGeneration() <= AMDGPUSubtarget::SEA_ISLANDS)