32 #define DEBUG_TYPE "amdgpu-subtarget" 34 #define GET_SUBTARGETINFO_TARGET_DESC 35 #define GET_SUBTARGETINFO_CTOR 36 #define AMDGPUSubtarget GCNSubtarget 37 #include "AMDGPUGenSubtargetInfo.inc" 38 #define GET_SUBTARGETINFO_TARGET_DESC 39 #define GET_SUBTARGETINFO_CTOR 40 #undef AMDGPUSubtarget 41 #include "R600GenSubtargetInfo.inc" 44 "amdgpu-disable-power-sched",
45 cl::desc(
"Disable scheduling to minimize mAI power bursts"),
49 "amdgpu-vgpr-index-mode",
50 cl::desc(
"Use GPR indexing mode instead of movrel for vector indexing"),
91 SmallString<256> FullFS(
"+promote-alloca,+load-store-opt,+sram-ecc,+xnack,");
94 FullFS +=
"+flat-for-global,+unaligned-buffer-access,+trap-handler,";
100 FullFS +=
"+fp64-fp16-denormals,";
102 FullFS +=
"-fp32-denormals,";
105 FullFS +=
"+enable-prt-strict-null,";
110 FullFS +=
"-wavefrontsize16,";
112 FullFS +=
"-wavefrontsize32,";
114 FullFS +=
"-wavefrontsize64,";
127 if (!hasAddr64() && !FS.
contains(
"flat-for-global")) {
128 FlatForGlobal =
true;
132 if (MaxPrivateElementSize == 0)
133 MaxPrivateElementSize = 4;
135 if (LDSBankCount == 0)
143 if (!HasMovrel && !HasVGPRIndexMode)
153 if (DoesNotSupportXNACK && EnableXNACK) {
154 ToggleFeature(AMDGPU::FeatureXNACK);
161 if (DoesNotSupportSRAMECC && EnableSRAMECC) {
162 ToggleFeature(AMDGPU::FeatureSRAMECC);
163 EnableSRAMECC =
false;
194 InstrItins(getInstrItineraryForCPU(GPU)),
196 MaxPrivateElementSize(0),
199 HalfRate64Ops(
false),
201 FP64FP16Denormals(
false),
202 FlatForGlobal(
false),
203 AutoWaitcntBeforeBarrier(
false),
205 UnalignedScratchAccess(
false),
206 UnalignedBufferAccess(
false),
208 HasApertureRegs(
false),
210 DoesNotSupportXNACK(
false),
215 EnableUnsafeDSOffsetFolding(
false),
216 EnableSIScheduler(
false),
218 EnablePRTStrictNull(
false),
227 GFX7GFX8GFX9Insts(
false),
229 HasSMemRealTime(
false),
231 HasFmaMixInsts(
false),
233 HasVGPRIndexMode(
false),
234 HasScalarStores(
false),
235 HasScalarAtomics(
false),
237 HasSDWAScalar(
false),
240 HasSDWAOutModsVOPC(
false),
244 HasNSAEncoding(
false),
253 HasPkFmacF16Inst(
false),
254 HasAtomicFaddInsts(
false),
255 EnableSRAMECC(
false),
256 DoesNotSupportSRAMECC(
false),
257 HasNoSdstCMPX(
false),
259 HasRegisterBanking(
false),
260 HasVOP3Literal(
false),
261 HasNoDataDepHazard(
false),
262 FlatAddressSpace(
false),
263 FlatInstOffsets(
false),
264 FlatGlobalInsts(
false),
265 FlatScratchInsts(
false),
266 ScalarFlatScratchInsts(
false),
267 AddNoCarryInsts(
false),
268 HasUnpackedD16VMem(
false),
269 LDSMisalignedBug(
false),
270 HasMFMAInlineLiteralBug(
false),
274 HasVcmpxPermlaneHazard(
false),
275 HasVMEMtoScalarWriteHazard(
false),
276 HasSMEMtoVectorWriteHazard(
false),
277 HasInstFwdPrefetchBug(
false),
278 HasVcmpxExecWARHazard(
false),
279 HasLdsBranchVmemWARHazard(
false),
280 HasNSAtoVMEMBug(
false),
281 HasOffset3fBug(
false),
282 HasFlatSegmentOffsetBug(
false),
284 FeatureDisable(
false),
285 InstrInfo(initializeSubtargetDependencies(TT, GPU, FS)),
293 *
this, *static_cast<AMDGPURegisterBankInfo *>(RegBankInfo.get()), TM));
301 case AMDGPU::V_LSHLREV_B64:
302 case AMDGPU::V_LSHLREV_B64_gfx10:
303 case AMDGPU::V_LSHL_B64:
304 case AMDGPU::V_LSHRREV_B64:
305 case AMDGPU::V_LSHRREV_B64_gfx10:
306 case AMDGPU::V_LSHR_B64:
307 case AMDGPU::V_ASHRREV_I64:
308 case AMDGPU::V_ASHRREV_I64_gfx10:
309 case AMDGPU::V_ASHR_I64:
322 if (!WorkGroupsPerCu)
332 if (!WorkGroupsPerCu)
336 unsigned NumWaves = Limit / (Bytes ? Bytes : 1u);
337 NumWaves = std::min(NumWaves, MaxWaves);
348 std::pair<unsigned, unsigned>
366 std::pair<unsigned, unsigned>
Default =
371 F,
"amdgpu-flat-work-group-size", Default);
374 if (Requested.first > Requested.second)
398 unsigned MinImpliedByFlatWorkGroupSize =
400 bool RequestedFlatWorkGroupSize =
false;
403 Default.first = MinImpliedByFlatWorkGroupSize;
404 RequestedFlatWorkGroupSize =
true;
409 F,
"amdgpu-waves-per-eu", Default,
true);
412 if (Requested.second && Requested.first > Requested.second)
424 if (RequestedFlatWorkGroupSize &&
425 Requested.first < MinImpliedByFlatWorkGroupSize)
433 unsigned MinSize = 0;
435 bool IdQuery =
false;
438 if (
auto *CI = dyn_cast<CallInst>(I)) {
439 const Function *
F = CI->getCalledFunction();
441 unsigned Dim = UINT_MAX;
443 case Intrinsic::amdgcn_workitem_id_x:
444 case Intrinsic::r600_read_tidig_x:
447 case Intrinsic::r600_read_local_size_x:
450 case Intrinsic::amdgcn_workitem_id_y:
451 case Intrinsic::r600_read_tidig_y:
454 case Intrinsic::r600_read_local_size_y:
457 case Intrinsic::amdgcn_workitem_id_z:
458 case Intrinsic::r600_read_tidig_z:
461 case Intrinsic::r600_read_local_size_z:
468 if (
auto Node = Kernel->
getMetadata(
"reqd_work_group_size"))
469 if (Node->getNumOperands() == 3)
470 MinSize = MaxSize = mdconst::extract<ConstantInt>(
471 Node->getOperand(Dim))->getZExtValue();
487 MDNode *MaxWorkGroupSizeRange = MDB.createRange(
APInt(32, MinSize),
489 I->
setMetadata(LLVMContext::MD_range, MaxWorkGroupSizeRange);
494 Align &MaxAlign)
const {
499 uint64_t ExplicitArgBytes = 0;
505 const Align Alignment(DL.getABITypeAlignment(ArgTy));
506 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy);
507 ExplicitArgBytes =
alignTo(ExplicitArgBytes, Alignment) + AllocSize;
508 MaxAlign =
std::max(MaxAlign, Alignment);
511 return ExplicitArgBytes;
515 Align &MaxAlign)
const {
520 uint64_t TotalSize = ExplicitOffset + ExplicitArgBytes;
522 if (ImplicitBytes != 0) {
524 TotalSize =
alignTo(ExplicitArgBytes, Alignment) + ImplicitBytes;
549 unsigned NumRegionInstrs)
const {
561 if (!enableSIScheduler())
566 return InstrInfo.pseudoToMCOpcode(AMDGPU::V_MAD_F16) != -1;
604 unsigned RoundedRegs = ((VGPRs + Granule - 1) / Granule) * Granule;
620 if (isXNACKEnabled())
633 Occupancy = std::min(Occupancy, getOccupancyWithNumSGPRs(NumSGPRs));
635 Occupancy = std::min(Occupancy, getOccupancyWithNumVGPRs(NumVGPRs));
645 std::pair<unsigned, unsigned> WavesPerEU = MFI.
getWavesPerEU();
647 unsigned MaxAddressableNumSGPRs =
getMaxNumSGPRs(WavesPerEU.first,
true);
653 F,
"amdgpu-num-sgpr", MaxNumSGPRs);
656 if (Requested && (Requested <= getReservedNumSGPRs(MF)))
667 if (Requested && Requested < InputNumSGPRs)
668 Requested = InputNumSGPRs;
672 if (Requested && Requested >
getMaxNumSGPRs(WavesPerEU.first,
false))
674 if (WavesPerEU.second &&
679 MaxNumSGPRs = Requested;
682 if (hasSGPRInitBug())
685 return std::min(MaxNumSGPRs - getReservedNumSGPRs(MF),
686 MaxAddressableNumSGPRs);
695 std::pair<unsigned, unsigned> WavesPerEU = MFI.
getWavesPerEU();
702 F,
"amdgpu-num-vgpr", MaxNumVGPRs);
708 if (WavesPerEU.second &&
713 MaxNumVGPRs = Requested;
734 for (++
I;
I !=
E &&
I->isBundledWithPred(); ++
I) {
735 if (
I->modifiesRegister(
Reg, TRI))
747 for (++
I;
I !=
E &&
I->isBundledWithPred() && Lat; ++
I) {
748 if (
I->readsRegister(
Reg, TRI))
763 SUnit *SUa =
nullptr;
783 (TII->
isDS(MI1) && TII->
isDS(MI2))) {
791 if (&SU != &DAG->
ExitSU) {
811 bool isSALU(
const SUnit *SU)
const {
816 bool isVALU(
const SUnit *SU)
const {
818 return MI && TII->
isVALU(*MI);
821 bool canAddEdge(
const SUnit *Succ,
const SUnit *Pred)
const {
827 for (
unsigned I = 0;
I < Succs.size(); ++
I) {
828 for (
const SDep &
SI : Succs[
I]->Succs) {
829 const SUnit *SU =
SI.getSUnit();
830 if (SU != Succs[
I] &&
llvm::find(Succs, SU) == Succs.end())
836 while (!Preds.empty()) {
837 const SUnit *SU = Preds.pop_back_val();
856 while (!Worklist.empty() && MaxChain-- > 0) {
857 SUnit *SU = Worklist.pop_back_val();
858 if (!Visited.
insert(SU).second)
869 if (SUv != From && isVALU(SUv) && canAddEdge(SUv, SU))
875 if (Succ != SU && isSALU(Succ) && canAddEdge(From, Succ))
876 Worklist.push_back(Succ);
889 if (!TSchedModel || DAG->
SUnits.empty())
896 auto LastSALU = DAG->
SUnits.begin();
901 if (!TII->
isMAI(MAI) ||
902 MAI.
getOpcode() == AMDGPU::V_ACCVGPR_WRITE_B32 ||
903 MAI.
getOpcode() == AMDGPU::V_ACCVGPR_READ_B32)
906 unsigned Lat = TSchedModel->computeInstrLatency(&MAI) - 1;
909 dbgs() <<
"Need " << Lat
910 <<
" instructions to cover latency.\n");
914 for ( ; Lat && LastSALU !=
E; ++LastSALU) {
915 if (Visited.
count(&*LastSALU))
918 if (!isSALU(&*LastSALU) || !canAddEdge(&*LastSALU, &SU))
921 Lat -= linkSALUChain(&SU, &*LastSALU, Lat, Visited);
929 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations)
const {
930 Mutations.push_back(std::make_unique<MemOpClusterMutation>(&InstrInfo));
931 Mutations.push_back(std::make_unique<FillMFMAShadowMutation>(&InstrInfo));
bool makeLIDRangeMetadata(Instruction *I) const
Creates value range metadata on an workitemid.* inrinsic call or load.
A parsed version of the target data layout string in and methods for querying it. ...
Calling convention used for Mesa/AMDPAL hull shaders (= tessellation control shaders).
This file declares the targeting of the RegisterBankInfo class for AMDGPU.
This class represents an incoming formal argument to a Function.
AMDGPU specific subclass of TargetSubtarget.
instr_iterator instr_end()
This class represents lattice values for constants.
static cl::opt< bool > DisablePowerSched("amdgpu-disable-power-sched", cl::desc("Disable scheduling to minimize mAI power bursts"), cl::init(false))
unsigned getImplicitArgNumBytes(const Function &F) const
unsigned getOccupancyWithLocalMemSize(uint32_t Bytes, const Function &) const
Inverse of getMaxLocalMemWithWaveCount.
unsigned getMaxWorkGroupsPerCU(unsigned FlatWorkGroupSize) const override
bool useVGPRIndexMode() const
unsigned getVGPRAllocGranule(const MCSubtargetInfo *STI, Optional< bool > EnableWavefrontSize32)
This file describes how to lower LLVM calls to machine code calls.
std::pair< unsigned, unsigned > getDefaultFlatWorkGroupSize(CallingConv::ID CC) const
LLVMContext & getContext() const
All values hold a context through their type.
bool hasFnAttribute(Attribute::AttrKind Kind) const
Return true if the function has the attribute.
Mutate the DAG as a postpass after normal DAG building.
unsigned const TargetRegisterInfo * TRI
block Block Frequency true
unsigned getKernArgSegmentSize(const Function &F, Align &MaxAlign) const
InstrItineraryData InstrItins
unsigned getReg() const
Returns the register associated with this edge.
Calling convention used for AMDPAL vertex shader if tessellation is in use.
ScheduleDAGMI is an implementation of ScheduleDAGInstrs that simply schedules machine instructions ac...
Generation getGeneration() const
static bool isSMRD(const MachineInstr &MI)
SmallVector< SDep, 4 > Preds
All sunit predecessors.
Calling convention used for Mesa/AMDPAL geometry shaders.
std::pair< int, int > getIntegerPairAttribute(const Function &F, StringRef Name, std::pair< int, int > Default, bool OnlyFirstRequired)
A templated base class for SmallPtrSet which provides the typesafe interface that is common across al...
bool hasFlatScratchInit() const
MachineFunction & MF
Machine function.
static bool isDS(const MachineInstr &MI)
static const AMDGPUSubtarget & get(const MachineFunction &MF)
unsigned int getInstrLatency(const InstrItineraryData *ItinData, const MachineInstr &MI, unsigned *PredCost=nullptr) const override
SPIR_KERNEL - Calling convention for SPIR kernel functions.
static bool isFLAT(const MachineInstr &MI)
This file declares the targeting of the InstructionSelector class for AMDGPU.
const DataLayout & getDataLayout() const
Get the data layout for the module's target platform.
Provide an instruction scheduling machine model to CodeGen passes.
const HexagonInstrInfo * TII
int getLocalMemorySize() const
void getPostRAMutations(std::vector< std::unique_ptr< ScheduleDAGMutation >> &Mutations) const override
MDNode * getMetadata(unsigned KindID) const
Get the current metadata attachments for the given kind, if any.
void apply(Opt *O, const Mod &M, const Mods &... Ms)
bool isTerminator(QueryType Type=AnyInBundle) const
Returns true if this instruction part of the terminator for a basic block.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
static bool isVALU(const MachineInstr &MI)
unsigned getMaxNumSGPRs(const MCSubtargetInfo *STI, unsigned WavesPerEU, bool Addressable)
unsigned getTotalNumVGPRs(const MCSubtargetInfo *STI)
static cl::opt< bool > ScalarizeGlobal("amdgpu-scalarize-global-loads", cl::desc("Enable global load scalarization"), cl::init(true), cl::Hidden)
static cl::opt< bool > EnableLoadStoreOpt("aarch64-enable-ldst-opt", cl::desc("Enable the load/store pair" " optimization pass"), cl::init(true), cl::Hidden)
Align getAlignmentForImplicitArgPtr() const
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
unsigned getMaxNumVGPRs(const MCSubtargetInfo *STI, unsigned WavesPerEU)
Align getStackAlignment() const
const InstrItineraryData * getInstrItineraryData() const override
std::pair< unsigned, unsigned > getWavesPerEU(const Function &F) const
unsigned getMaxNumSGPRs(unsigned WavesPerEU, bool Addressable) const
bool mayStore(QueryType Type=AnyInBundle) const
Return true if this instruction could possibly modify memory.
initializer< Ty > init(const Ty &Val)
void overrideSchedPolicy(MachineSchedPolicy &Policy, unsigned NumRegionInstrs) const override
MachineInstr * getInstr() const
Returns the representative MachineInstr for this SUnit.
* if(!EatIfPresent(lltok::kw_thread_local)) return false
ParseOptionalThreadLocal := /*empty.
unsigned getMinNumSGPRs(const MCSubtargetInfo *STI, unsigned WavesPerEU)
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
The instances of the Type class are immutable: once they are created, they are never changed...
unsigned getReservedNumSGPRs(const MachineFunction &MF) const
void ParseSubtargetFeatures(StringRef CPU, StringRef FS)
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
R600Subtarget(const Triple &TT, StringRef CPU, StringRef FS, const TargetMachine &TM)
void adjustSchedDependency(SUnit *Src, SUnit *Dst, SDep &Dep) const override
std::pair< iterator, bool > insert(PtrType Ptr)
Inserts Ptr if and only if there is no element in the container equal to Ptr.
bool ShouldTrackLaneMasks
Track LaneMasks to allow reordering of independent subregister writes of the same vreg...
Ty * getInfo()
getInfo - Keep track of various per-function pieces of information for backends that would like to do...
Generation getGeneration() const
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
const Triple & getTargetTriple() const
std::pair< unsigned, unsigned > getWavesPerEU() const
const TargetSchedModel * getSchedModel() const
Gets the machine model for instruction scheduling.
size_type count(ConstPtrType Ptr) const
count - Return 1 if the specified pointer is in the set, 0 otherwise.
self_iterator getIterator()
LLVM_NODISCARD bool contains(StringRef Other) const
Return true if the given string is a substring of *this, and false otherwise.
The AMDGPU TargetMachine interface definition for hw codgen targets.
static constexpr const Align None()
Returns a default constructed Align which corresponds to no alignment.
auto find(R &&Range, const T &Val) -> decltype(adl_begin(Range))
Provide wrappers to std::find which take ranges instead of having to pass begin/end explicitly...
void setMetadata(unsigned KindID, MDNode *Node)
Set the metadata of the specified kind to the specified node.
constexpr char NumSGPRs[]
Key for Kernel::CodeProps::Metadata::mNumSGPRs.
This struct is a compact representation of a valid (non-zero power of two) alignment.
Triple - Helper class for working with autoconf configuration names.
static cl::opt< bool > EnableVGPRIndexMode("amdgpu-vgpr-index-mode", cl::desc("Use GPR indexing mode instead of movrel for vector indexing"), cl::init(false))
unsigned getWavefrontSize() const
const R600RegisterInfo * getRegisterInfo() const override
Iterator for intrusive lists based on ilist_node.
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements...
BlockVerifier::State From
Align max(MaybeAlign Lhs, Align Rhs)
CallingConv::ID getCallingConv() const
getCallingConv()/setCallingConv(CC) - These method get and set the calling convention of this functio...
static bool isSALU(const MachineInstr &MI)
unsigned getExplicitKernelArgOffset(const Function &F) const
Returns the offset in bytes from the start of the input buffer of the first explicit kernel argument...
Calling convention used for Mesa/AMDPAL pixel shaders.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Information about stack frame layout on the target.
LLVM_NODISCARD size_t find_lower(char C, size_t From=0) const
Search for the first character C in the string, ignoring case.
bool hasCaymanISA() const
bool addPredBarrier(SUnit *SU)
Adds a barrier edge to SU by calling addPred(), with latency 0 generally or latency 1 for a store fol...
This class provides the information for the target register banks.
Intrinsic::ID getIntrinsicID() const LLVM_READONLY
getIntrinsicID - This method returns the ID number of the specified function, or Intrinsic::not_intri...
const Function & getFunction() const
Return the LLVM function that this machine code represents.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
unsigned getMaxWavesPerEU(const MCSubtargetInfo *STI)
Class for arbitrary precision integers.
GCNSubtarget(const Triple &TT, StringRef GPU, StringRef FS, const GCNTargetMachine &TM)
This file declares the targeting of the Machinelegalizer class for AMDGPU.
unsigned computeOccupancy(const MachineFunction &MF, unsigned LDSSize=0, unsigned NumSGPRs=0, unsigned NumVGPRs=0) const
Return occupancy for the given function.
constexpr char NumVGPRs[]
Key for Kernel::CodeProps::Metadata::mNumVGPRs.
void dumpNode(const SUnit &SU) const override
unsigned getOccupancyWithNumSGPRs(unsigned SGPRs) const
Return the maximum number of waves per SIMD for kernels using SGPRs SGPRs.
void setLatency(unsigned Lat)
Sets the latency for this edge.
const MachineBasicBlock * getParent() const
unsigned getMaxWavesPerEU() const
Provides AMDGPU specific target descriptions.
A ScheduleDAG for scheduling lists of MachineInstr.
Define a generic scheduling policy for targets that don't provide their own MachineSchedStrategy.
Representation of each machine instruction.
SUnit ExitSU
Special node for the region exit.
This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which inter...
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
AMDGPUSubtarget(const Triple &TT)
static bool isMAI(const MachineInstr &MI)
uint64_t getExplicitKernArgSize(const Function &F, Align &MaxAlign) const
const Function * getParent() const
Return the enclosing method, or null if none.
Calling convention used for Mesa vertex shaders, or AMDPAL last shader stage before rasterization (ve...
int getIntegerAttribute(const Function &F, StringRef Name, int Default)
static bool isVMEM(const MachineInstr &MI)
const LLVMTargetMachine & getTarget() const
getTarget - Return the target machine this machine code is compiled with
unsigned getMaxFlatWorkGroupSize() const override
Kind getKind() const
Returns an enum value representing the kind of the dependence.
unsigned getMinFlatWorkGroupSize() const override
unsigned NodeNum
Entry # of node in the node vector.
unsigned getMaxNumVGPRs(unsigned WavesPerEU) const
bool mayLoad(QueryType Type=AnyInBundle) const
Return true if this instruction could possibly read memory.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
bool addPred(const SDep &D, bool Required=true)
Adds the specified edge as a pred of the current node if not already.
Module * getParent()
Get the module that this global value is contained inside of...
SmallVector< SDep, 4 > Succs
All sunit successors.
#define LLVM_FALLTHROUGH
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
unsigned getNumPreloadedSGPRs() const
Arbitrary strong DAG edge (no real dependence).
GCNSubtarget & initializeSubtargetDependencies(const Triple &TT, StringRef GPU, StringRef FS)
Primary interface to the complete machine description for the target machine.
unsigned getMinNumVGPRs(const MCSubtargetInfo *STI, unsigned WavesPerEU)
StringRef - Represent a constant reference to a string, i.e.
unsigned getConstantBusLimit(unsigned Opcode) const
unsigned getMaxLocalMemSizeWithWaveCount(unsigned WaveCount, const Function &) const
Return the amount of LDS that can be used that will not restrict the occupancy lower than WaveCount...
std::vector< SUnit > SUnits
The scheduling units.
unsigned getOccupancyWithNumVGPRs(unsigned VGPRs) const
Return the maximum number of waves per SIMD for kernels using VGPRs VGPRs.
const STC & getSubtarget(const Function &F) const
This method returns a pointer to the specified type of TargetSubtargetInfo.
unsigned getMinWavesPerEU() const override
const SITargetLowering * getTargetLowering() const override
std::pair< unsigned, unsigned > getFlatWorkGroupSizes(const Function &F) const
R600Subtarget & initializeSubtargetDependencies(const Triple &TT, StringRef GPU, StringRef FS)
Calling convention for AMDGPU code object kernels.
bool isInstr() const
Returns true if this SUnit refers to a machine instruction as opposed to an SDNode.
iterator_range< arg_iterator > args()
Scheduling unit. This is a node in the scheduling DAG.
Calling convention used for AMDPAL shader stage before geometry shader if geometry is in use...
const BasicBlock * getParent() const