Lines Matching refs:CurrentProgramInfo

191     getAmdKernelCode(KernelCode, CurrentProgramInfo, *MF);  in emitFunctionBodyStart()
196 HSAMetadataStream->emitKernel(*MF, CurrentProgramInfo); in emitFunctionBodyStart()
230 STM, KernelName, getAmdhsaKernelDescriptor(*MF, CurrentProgramInfo), in emitFunctionBodyEnd()
231 CurrentProgramInfo.NumVGPRsForWavesPerEU, in emitFunctionBodyEnd()
232 CurrentProgramInfo.NumSGPRsForWavesPerEU - in emitFunctionBodyEnd()
234 &STM, CurrentProgramInfo.VCCUsed, CurrentProgramInfo.FlatUsed, in emitFunctionBodyEnd()
236 CurrentProgramInfo.VCCUsed, CurrentProgramInfo.FlatUsed); in emitFunctionBodyEnd()
413 if (CurrentProgramInfo.DynamicCallStack && in getAmdhsaKernelCodeProperties()
444 assert(STM.hasGFX90AInsts() || CurrentProgramInfo.ComputePGMRSrc3GFX90A == 0); in getAmdhsaKernelDescriptor()
447 CurrentProgramInfo.ComputePGMRSrc3GFX90A; in getAmdhsaKernelDescriptor()
463 CurrentProgramInfo = SIProgramInfo(); in runOnMachineFunction()
483 getSIProgramInfo(CurrentProgramInfo, MF); in runOnMachineFunction()
488 EmitPALMetadata(MF, CurrentProgramInfo); in runOnMachineFunction()
492 EmitProgramInfoSI(MF, CurrentProgramInfo); in runOnMachineFunction()
513 emitResourceUsageRemarks(MF, CurrentProgramInfo, MFI->isModuleEntryFunction(), in runOnMachineFunction()
536 CurrentProgramInfo.NumArchVGPR, in runOnMachineFunction()
537 STM.hasMAIInsts() ? CurrentProgramInfo.NumAccVGPR in runOnMachineFunction()
539 CurrentProgramInfo.NumVGPR, CurrentProgramInfo.NumSGPR, in runOnMachineFunction()
540 CurrentProgramInfo.ScratchSize, getFunctionCodeSize(MF), MFI); in runOnMachineFunction()
543 " FloatMode: " + Twine(CurrentProgramInfo.FloatMode), false); in runOnMachineFunction()
545 " IeeeMode: " + Twine(CurrentProgramInfo.IEEEMode), false); in runOnMachineFunction()
547 " LDSByteSize: " + Twine(CurrentProgramInfo.LDSSize) + in runOnMachineFunction()
551 " SGPRBlocks: " + Twine(CurrentProgramInfo.SGPRBlocks), false); in runOnMachineFunction()
553 " VGPRBlocks: " + Twine(CurrentProgramInfo.VGPRBlocks), false); in runOnMachineFunction()
557 Twine(CurrentProgramInfo.NumSGPRsForWavesPerEU), false); in runOnMachineFunction()
560 Twine(CurrentProgramInfo.NumVGPRsForWavesPerEU), false); in runOnMachineFunction()
565 Twine((CurrentProgramInfo.AccumOffset + 1) * 4), false); in runOnMachineFunction()
569 Twine(CurrentProgramInfo.Occupancy), false); in runOnMachineFunction()
575 Twine(CurrentProgramInfo.ScratchEnable), in runOnMachineFunction()
578 Twine(CurrentProgramInfo.UserSGPR), in runOnMachineFunction()
581 Twine(CurrentProgramInfo.TrapHandlerEnable), in runOnMachineFunction()
584 Twine(CurrentProgramInfo.TGIdXEnable), in runOnMachineFunction()
587 Twine(CurrentProgramInfo.TGIdYEnable), in runOnMachineFunction()
590 Twine(CurrentProgramInfo.TGIdZEnable), in runOnMachineFunction()
593 Twine(CurrentProgramInfo.TIdIGCompCount), in runOnMachineFunction()
597 CurrentProgramInfo.ComputePGMRSrc3GFX90A == 0); in runOnMachineFunction()
601 Twine((AMDHSA_BITS_GET(CurrentProgramInfo.ComputePGMRSrc3GFX90A, in runOnMachineFunction()
606 Twine((AMDHSA_BITS_GET(CurrentProgramInfo.ComputePGMRSrc3GFX90A, in runOnMachineFunction()
971 const SIProgramInfo &CurrentProgramInfo) { in EmitProgramInfoSI() argument
979 OutStreamer->emitInt32(CurrentProgramInfo.getComputePGMRSrc1(STM)); in EmitProgramInfoSI()
982 OutStreamer->emitInt32(CurrentProgramInfo.getComputePGMRSrc2()); in EmitProgramInfoSI()
987 ? S_00B860_WAVESIZE_GFX12Plus(CurrentProgramInfo.ScratchBlocks) in EmitProgramInfoSI()
989 ? S_00B860_WAVESIZE_GFX11(CurrentProgramInfo.ScratchBlocks) in EmitProgramInfoSI()
990 : S_00B860_WAVESIZE_PreGFX11(CurrentProgramInfo.ScratchBlocks)); in EmitProgramInfoSI()
996 OutStreamer->emitIntValue(S_00B028_VGPRS(CurrentProgramInfo.VGPRBlocks) | in EmitProgramInfoSI()
997 S_00B028_SGPRS(CurrentProgramInfo.SGPRBlocks), 4); in EmitProgramInfoSI()
1001 ? S_0286E8_WAVESIZE_GFX12Plus(CurrentProgramInfo.ScratchBlocks) in EmitProgramInfoSI()
1003 ? S_0286E8_WAVESIZE_GFX11(CurrentProgramInfo.ScratchBlocks) in EmitProgramInfoSI()
1004 : S_0286E8_WAVESIZE_PreGFX11(CurrentProgramInfo.ScratchBlocks)); in EmitProgramInfoSI()
1010 ? divideCeil(CurrentProgramInfo.LDSBlocks, 2) in EmitProgramInfoSI()
1011 : CurrentProgramInfo.LDSBlocks; in EmitProgramInfoSI()
1031 const SIProgramInfo &CurrentProgramInfo) { in EmitPALMetadata() argument
1037 MD->setNumUsedVgprs(CC, CurrentProgramInfo.NumVGPRsForWavesPerEU); in EmitPALMetadata()
1042 MD->setNumUsedAgprs(CC, CurrentProgramInfo.NumAccVGPR); in EmitPALMetadata()
1045 MD->setNumUsedSgprs(CC, CurrentProgramInfo.NumSGPRsForWavesPerEU); in EmitPALMetadata()
1047 MD->setRsrc1(CC, CurrentProgramInfo.getPGMRSrc1(CC, STM)); in EmitPALMetadata()
1049 MD->setRsrc2(CC, CurrentProgramInfo.getComputePGMRSrc2()); in EmitPALMetadata()
1051 if (CurrentProgramInfo.ScratchBlocks > 0) in EmitPALMetadata()
1055 MD->setHwStage(CC, ".debug_mode", (bool)CurrentProgramInfo.DebugMode); in EmitPALMetadata()
1056 MD->setHwStage(CC, ".ieee_mode", (bool)CurrentProgramInfo.IEEEMode); in EmitPALMetadata()
1057 MD->setHwStage(CC, ".wgp_mode", (bool)CurrentProgramInfo.WgpMode); in EmitPALMetadata()
1058 MD->setHwStage(CC, ".mem_ordered", (bool)CurrentProgramInfo.MemOrdered); in EmitPALMetadata()
1061 MD->setHwStage(CC, ".scratch_en", (bool)CurrentProgramInfo.ScratchEnable); in EmitPALMetadata()
1063 (bool)CurrentProgramInfo.TrapHandlerEnable); in EmitPALMetadata()
1068 (unsigned)(CurrentProgramInfo.LdsSize * LdsDwGranularity * in EmitPALMetadata()
1070 MD->setHwStage(CC, ".excp_en", CurrentProgramInfo.EXCPEnable); in EmitPALMetadata()
1072 MD->setHwStage(CC, ".scratch_en", (bool)CurrentProgramInfo.ScratchEnable); in EmitPALMetadata()
1077 MD->setScratchSize(CC, alignTo(CurrentProgramInfo.ScratchSize, 16)); in EmitPALMetadata()
1080 ? divideCeil(CurrentProgramInfo.LDSBlocks, 2) in EmitPALMetadata()
1081 : CurrentProgramInfo.LDSBlocks; in EmitPALMetadata()
1129 CurrentProgramInfo.getPGMRSrc1(CallingConv::AMDGPU_CS, ST)); in emitPALFunctionMetadata()
1130 MD->setRsrc2(CallingConv::AMDGPU_CS, CurrentProgramInfo.getComputePGMRSrc2()); in emitPALFunctionMetadata()
1133 MD->setFunctionLdsSize(FnName, CurrentProgramInfo.LDSSize); in emitPALFunctionMetadata()
1134 MD->setFunctionNumUsedVgprs(FnName, CurrentProgramInfo.NumVGPRsForWavesPerEU); in emitPALFunctionMetadata()
1135 MD->setFunctionNumUsedSgprs(FnName, CurrentProgramInfo.NumSGPRsForWavesPerEU); in emitPALFunctionMetadata()
1153 const SIProgramInfo &CurrentProgramInfo, in getAmdKernelCode() argument
1165 CurrentProgramInfo.getComputePGMRSrc1(STM) | in getAmdKernelCode()
1166 (CurrentProgramInfo.getComputePGMRSrc2() << 32); in getAmdKernelCode()
1169 if (CurrentProgramInfo.DynamicCallStack) in getAmdKernelCode()
1205 Out.wavefront_sgpr_count = CurrentProgramInfo.NumSGPR; in getAmdKernelCode()
1206 Out.workitem_vgpr_count = CurrentProgramInfo.NumVGPR; in getAmdKernelCode()
1207 Out.workitem_private_segment_byte_size = CurrentProgramInfo.ScratchSize; in getAmdKernelCode()
1208 Out.workgroup_group_segment_byte_size = CurrentProgramInfo.LDSSize; in getAmdKernelCode()
1263 const MachineFunction &MF, const SIProgramInfo &CurrentProgramInfo, in emitResourceUsageRemarks() argument
1300 EmitResourceUsageRemark("NumSGPR", "SGPRs", CurrentProgramInfo.NumSGPR); in emitResourceUsageRemarks()
1301 EmitResourceUsageRemark("NumVGPR", "VGPRs", CurrentProgramInfo.NumArchVGPR); in emitResourceUsageRemarks()
1303 EmitResourceUsageRemark("NumAGPR", "AGPRs", CurrentProgramInfo.NumAccVGPR); in emitResourceUsageRemarks()
1305 CurrentProgramInfo.ScratchSize); in emitResourceUsageRemarks()
1307 CurrentProgramInfo.DynamicCallStack ? "True" : "False"; in emitResourceUsageRemarks()
1310 CurrentProgramInfo.Occupancy); in emitResourceUsageRemarks()
1312 CurrentProgramInfo.SGPRSpill); in emitResourceUsageRemarks()
1314 CurrentProgramInfo.VGPRSpill); in emitResourceUsageRemarks()
1317 CurrentProgramInfo.LDSSize); in emitResourceUsageRemarks()