Lines Matching refs:CurrentProgramInfo
216 getAmdKernelCode(KernelCode, CurrentProgramInfo, *MF); in EmitFunctionBodyStart()
221 HSAMetadataStream->emitKernel(*MF, CurrentProgramInfo); in EmitFunctionBodyStart()
249 *getSTI(), KernelName, getAmdhsaKernelDescriptor(*MF, CurrentProgramInfo), in EmitFunctionBodyEnd()
250 CurrentProgramInfo.NumVGPRsForWavesPerEU, in EmitFunctionBodyEnd()
251 CurrentProgramInfo.NumSGPRsForWavesPerEU - in EmitFunctionBodyEnd()
253 CurrentProgramInfo.VCCUsed, in EmitFunctionBodyEnd()
254 CurrentProgramInfo.FlatUsed), in EmitFunctionBodyEnd()
255 CurrentProgramInfo.VCCUsed, CurrentProgramInfo.FlatUsed, in EmitFunctionBodyEnd()
403 CurrentProgramInfo = SIProgramInfo(); in runOnMachineFunction()
423 getSIProgramInfo(CurrentProgramInfo, MF); in runOnMachineFunction()
433 EmitPALMetadata(MF, CurrentProgramInfo); in runOnMachineFunction()
435 EmitProgramInfoSI(MF, CurrentProgramInfo); in runOnMachineFunction()
461 emitCommonFunctionComments(CurrentProgramInfo.NumVGPR, in runOnMachineFunction()
462 CurrentProgramInfo.NumSGPR, in runOnMachineFunction()
463 CurrentProgramInfo.ScratchSize, in runOnMachineFunction()
467 " FloatMode: " + Twine(CurrentProgramInfo.FloatMode), false); in runOnMachineFunction()
469 " IeeeMode: " + Twine(CurrentProgramInfo.IEEEMode), false); in runOnMachineFunction()
471 " LDSByteSize: " + Twine(CurrentProgramInfo.LDSSize) + in runOnMachineFunction()
475 " SGPRBlocks: " + Twine(CurrentProgramInfo.SGPRBlocks), false); in runOnMachineFunction()
477 " VGPRBlocks: " + Twine(CurrentProgramInfo.VGPRBlocks), false); in runOnMachineFunction()
481 Twine(CurrentProgramInfo.NumSGPRsForWavesPerEU), false); in runOnMachineFunction()
484 Twine(CurrentProgramInfo.NumVGPRsForWavesPerEU), false); in runOnMachineFunction()
492 Twine(CurrentProgramInfo.DebuggerWavefrontPrivateSegmentOffsetSGPR), false); in runOnMachineFunction()
495 Twine(CurrentProgramInfo.DebuggerPrivateSegmentBufferSGPR), false); in runOnMachineFunction()
500 Twine(G_00B84C_USER_SGPR(CurrentProgramInfo.ComputePGMRSrc2)), false); in runOnMachineFunction()
503 Twine(G_00B84C_TRAP_HANDLER(CurrentProgramInfo.ComputePGMRSrc2)), false); in runOnMachineFunction()
506 Twine(G_00B84C_TGID_X_EN(CurrentProgramInfo.ComputePGMRSrc2)), false); in runOnMachineFunction()
509 Twine(G_00B84C_TGID_Y_EN(CurrentProgramInfo.ComputePGMRSrc2)), false); in runOnMachineFunction()
512 Twine(G_00B84C_TGID_Z_EN(CurrentProgramInfo.ComputePGMRSrc2)), false); in runOnMachineFunction()
515 Twine(G_00B84C_TIDIG_COMP_CNT(CurrentProgramInfo.ComputePGMRSrc2)), in runOnMachineFunction()
1013 const SIProgramInfo &CurrentProgramInfo) { in EmitProgramInfoSI() argument
1020 OutStreamer->EmitIntValue(CurrentProgramInfo.ComputePGMRSrc1, 4); in EmitProgramInfoSI()
1023 OutStreamer->EmitIntValue(CurrentProgramInfo.ComputePGMRSrc2, 4); in EmitProgramInfoSI()
1026 OutStreamer->EmitIntValue(S_00B860_WAVESIZE(CurrentProgramInfo.ScratchBlocks), 4); in EmitProgramInfoSI()
1032 OutStreamer->EmitIntValue(S_00B028_VGPRS(CurrentProgramInfo.VGPRBlocks) | in EmitProgramInfoSI()
1033 S_00B028_SGPRS(CurrentProgramInfo.SGPRBlocks), 4); in EmitProgramInfoSI()
1036 S_0286E8_WAVESIZE(CurrentProgramInfo.ScratchBlocks), 4); in EmitProgramInfoSI()
1041 OutStreamer->EmitIntValue(S_00B02C_EXTRA_LDS_SIZE(CurrentProgramInfo.LDSBlocks), 4); in EmitProgramInfoSI()
1060 const SIProgramInfo &CurrentProgramInfo) { in EmitPALMetadata() argument
1098 PALMetadataMap[NumUsedVgprsKey] = CurrentProgramInfo.NumVGPRsForWavesPerEU; in EmitPALMetadata()
1099 PALMetadataMap[NumUsedSgprsKey] = CurrentProgramInfo.NumSGPRsForWavesPerEU; in EmitPALMetadata()
1101 PALMetadataMap[Rsrc1Reg] |= CurrentProgramInfo.ComputePGMRSrc1; in EmitPALMetadata()
1102 PALMetadataMap[Rsrc2Reg] |= CurrentProgramInfo.ComputePGMRSrc2; in EmitPALMetadata()
1105 alignTo(CurrentProgramInfo.ScratchSize, 16); in EmitPALMetadata()
1107 PALMetadataMap[Rsrc1Reg] |= S_00B028_VGPRS(CurrentProgramInfo.VGPRBlocks) | in EmitPALMetadata()
1108 S_00B028_SGPRS(CurrentProgramInfo.SGPRBlocks); in EmitPALMetadata()
1109 if (CurrentProgramInfo.ScratchBlocks > 0) in EmitPALMetadata()
1113 alignTo(CurrentProgramInfo.ScratchSize, 16); in EmitPALMetadata()
1117 S_00B02C_EXTRA_LDS_SIZE(CurrentProgramInfo.LDSBlocks); in EmitPALMetadata()
1138 const SIProgramInfo &CurrentProgramInfo, in getAmdKernelCode() argument
1150 CurrentProgramInfo.ComputePGMRSrc1 | in getAmdKernelCode()
1151 (CurrentProgramInfo.ComputePGMRSrc2 << 32); in getAmdKernelCode()
1154 if (CurrentProgramInfo.DynamicCallStack) in getAmdKernelCode()
1192 Out.wavefront_sgpr_count = CurrentProgramInfo.NumSGPR; in getAmdKernelCode()
1193 Out.workitem_vgpr_count = CurrentProgramInfo.NumVGPR; in getAmdKernelCode()
1194 Out.workitem_private_segment_byte_size = CurrentProgramInfo.ScratchSize; in getAmdKernelCode()
1195 Out.workgroup_group_segment_byte_size = CurrentProgramInfo.LDSSize; in getAmdKernelCode()
1204 CurrentProgramInfo.DebuggerWavefrontPrivateSegmentOffsetSGPR; in getAmdKernelCode()
1206 CurrentProgramInfo.DebuggerPrivateSegmentBufferSGPR; in getAmdKernelCode()