Lines Matching refs:ST

26 static ArrayRef<MCPhysReg> getAllSGPR128(const GCNSubtarget &ST,  in getAllSGPR128()  argument
29 ST.getMaxNumSGPRs(MF) / 4); in getAllSGPR128()
32 static ArrayRef<MCPhysReg> getAllSGPRs(const GCNSubtarget &ST, in getAllSGPRs() argument
35 ST.getMaxNumSGPRs(MF)); in getAllSGPRs()
38 void SIFrameLowering::emitFlatScratchInit(const GCNSubtarget &ST, in emitFlatScratchInit() argument
41 const SIInstrInfo *TII = ST.getInstrInfo(); in emitFlatScratchInit()
73 if (ST.flatScratchIsPointer()) { in emitFlatScratchInit()
101 const GCNSubtarget &ST, in getReservedPrivateSegmentBufferReg() argument
114 if (ST.hasSGPRInitBug() || in getReservedPrivateSegmentBufferReg()
130 ArrayRef<MCPhysReg> AllSGPR128s = getAllSGPR128(ST, MF); in getReservedPrivateSegmentBufferReg()
152 const GCNSubtarget &ST, in getReservedPrivateSegmentWaveByteOffsetReg() argument
168 if (ST.hasSGPRInitBug()) in getReservedPrivateSegmentWaveByteOffsetReg()
173 ArrayRef<MCPhysReg> AllSGPRs = getAllSGPRs(ST, MF); in getReservedPrivateSegmentWaveByteOffsetReg()
223 const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>(); in emitEntryFunctionPrologue() local
224 if (ST.debuggerEmitPrologue()) in emitEntryFunctionPrologue()
237 const SIInstrInfo *TII = ST.getInstrInfo(); in emitEntryFunctionPrologue()
252 emitFlatScratchInit(ST, MF, MBB); in emitEntryFunctionPrologue()
268 .addImm(StackSize * ST.getWavefrontSize()); in emitEntryFunctionPrologue()
273 = getReservedPrivateSegmentBufferReg(ST, TII, TRI, MFI, MF); in emitEntryFunctionPrologue()
277 = getReservedPrivateSegmentWaveByteOffsetReg(ST, TII, TRI, MFI, MF); in emitEntryFunctionPrologue()
292 if (ST.isAmdHsaOrMesa(F)) { in emitEntryFunctionPrologue()
311 assert(ST.isAmdHsaOrMesa(F) || ST.isMesaGfxShader(F)); in emitEntryFunctionPrologue()
336 ST.isAmdHsaOrMesa(F) && in emitEntryFunctionPrologue()
362 emitEntryFunctionScratchSetup(ST, MF, MBB, MFI, I, in emitEntryFunctionPrologue()
367 void SIFrameLowering::emitEntryFunctionScratchSetup(const GCNSubtarget &ST, in emitEntryFunctionScratchSetup() argument
372 const SIInstrInfo *TII = ST.getInstrInfo(); in emitEntryFunctionScratchSetup()
377 if (ST.isAmdPalOS()) { in emitEntryFunctionScratchSetup()
395 if (ST.hasMergedShaders()) { in emitEntryFunctionScratchSetup()
434 if (ST.isMesaGfxShader(Fn) in emitEntryFunctionScratchSetup()
436 assert(!ST.isAmdHsaOrMesa(Fn)); in emitEntryFunctionScratchSetup()
540 const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>(); in emitPrologue() local
541 const SIInstrInfo *TII = ST.getInstrInfo(); in emitPrologue()
570 .addImm((Alignment - 1) * ST.getWavefrontSize()) in emitPrologue()
574 .addImm(-Alignment * ST.getWavefrontSize()) in emitPrologue()
590 .addImm(RoundedSize * ST.getWavefrontSize()) in emitPrologue()
610 const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>(); in emitEpilogue() local
611 const SIInstrInfo *TII = ST.getInstrInfo(); in emitEpilogue()
641 .addImm(RoundedSize * ST.getWavefrontSize()); in emitEpilogue()
671 const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>(); in processFunctionBeforeFrameFinalized() local
672 const SIInstrInfo *TII = ST.getInstrInfo(); in processFunctionBeforeFrameFinalized()
753 const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>(); in eliminateCallFramePseudoInstr() local
754 const SIInstrInfo *TII = ST.getInstrInfo(); in eliminateCallFramePseudoInstr()
772 .addImm(Amount * ST.getWavefrontSize()); in eliminateCallFramePseudoInstr()
782 const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>(); in emitDebuggerPrologue() local
783 const SIInstrInfo *TII = ST.getInstrInfo(); in emitDebuggerPrologue()