Lines Matching refs:STM
210 const GCNSubtarget &STM = MF->getSubtarget<GCNSubtarget>(); in EmitFunctionBodyStart() local
212 if (!STM.hasCodeObjectV3() && STM.isAmdHsaOrMesa(F) && in EmitFunctionBodyStart()
220 if (STM.isAmdHsaOS()) in EmitFunctionBodyStart()
269 const GCNSubtarget &STM = MF->getSubtarget<GCNSubtarget>(); in EmitFunctionEntryLabel() local
270 if (MFI->isEntryFunction() && STM.isAmdHsaOrMesa(MF->getFunction())) { in EmitFunctionEntryLabel()
413 const GCNSubtarget &STM = MF.getSubtarget<GCNSubtarget>(); in runOnMachineFunction() local
416 if (!STM.isAmdHsaOS() && !STM.isAmdPalOS()) { in runOnMachineFunction()
432 if (STM.isAmdPalOS()) in runOnMachineFunction()
434 else if (!STM.isAmdHsaOS()) { in runOnMachineFunction()
519 if (STM.dumpCode()) { in runOnMachineFunction()
540 const GCNSubtarget &STM = MF.getSubtarget<GCNSubtarget>(); in getFunctionCodeSize() local
541 const SIInstrInfo *TII = STM.getInstrInfo(); in getFunctionCodeSize()
826 const GCNSubtarget &STM = MF.getSubtarget<GCNSubtarget>(); in getSIProgramInfo() local
828 const SIInstrInfo *TII = STM.getInstrInfo(); in getSIProgramInfo()
838 if (STM.getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS && in getSIProgramInfo()
839 !STM.hasSGPRInitBug()) { in getSIProgramInfo()
840 unsigned MaxAddressableNumSGPRs = STM.getAddressableNumSGPRs(); in getSIProgramInfo()
873 std::max(ProgInfo.NumSGPR, 1u), STM.getMinNumSGPRs(MFI->getMaxWavesPerEU())); in getSIProgramInfo()
875 std::max(ProgInfo.NumVGPR, 1u), STM.getMinNumVGPRs(MFI->getMaxWavesPerEU())); in getSIProgramInfo()
877 if (STM.getGeneration() <= AMDGPUSubtarget::SEA_ISLANDS || in getSIProgramInfo()
878 STM.hasSGPRInitBug()) { in getSIProgramInfo()
879 unsigned MaxAddressableNumSGPRs = STM.getAddressableNumSGPRs(); in getSIProgramInfo()
895 if (STM.hasSGPRInitBug()) { in getSIProgramInfo()
902 if (MFI->getNumUserSGPRs() > STM.getMaxNumUserSGPRs()) { in getSIProgramInfo()
909 if (MFI->getLDSSize() > static_cast<unsigned>(STM.getLocalMemorySize())) { in getSIProgramInfo()
917 &STM, ProgInfo.NumSGPRsForWavesPerEU); in getSIProgramInfo()
919 &STM, ProgInfo.NumVGPRsForWavesPerEU); in getSIProgramInfo()
924 if (STM.debuggerEmitPrologue()) { in getSIProgramInfo()
935 ProgInfo.IEEEMode = STM.enableIEEEBit(MF); in getSIProgramInfo()
938 ProgInfo.DX10Clamp = STM.enableDX10Clamp(); in getSIProgramInfo()
941 if (STM.getGeneration() < AMDGPUSubtarget::SEA_ISLANDS) { in getSIProgramInfo()
962 alignTo(ProgInfo.ScratchSize * STM.getWavefrontSize(), in getSIProgramInfo()
987 S_00B84C_TRAP_HANDLER(STM.isAmdHsaOS() ? 0 : STM.isTrapHandlerEnabled()) | in getSIProgramInfo()
995 S_00B84C_LDS_SIZE(STM.isAmdHsaOS() ? 0 : ProgInfo.LDSBlocks) | in getSIProgramInfo()
1145 const GCNSubtarget &STM = MF.getSubtarget<GCNSubtarget>(); in getAmdKernelCode() local
1159 getElementByteSizeValue(STM.getMaxPrivateElementSize())); in getAmdKernelCode()
1184 if (STM.debuggerSupported()) in getAmdKernelCode()
1187 if (STM.isXNACKEnabled()) in getAmdKernelCode()
1191 Out.kernarg_segment_byte_size = STM.getKernArgSegmentSize(F, MaxKernArgAlign); in getAmdKernelCode()
1202 if (STM.debuggerEmitPrologue()) { in getAmdKernelCode()