Lines Matching refs:KernelInfo

96   SIProgramInfo KernelInfo;  in EmitFunctionBodyStart()  local
98 getSIProgramInfo(KernelInfo, *MF); in EmitFunctionBodyStart()
99 EmitAmdKernelCodeT(*MF, KernelInfo); in EmitFunctionBodyStart()
175 SIProgramInfo KernelInfo; in runOnMachineFunction() local
177 getSIProgramInfo(KernelInfo, MF); in runOnMachineFunction()
179 EmitProgramInfoSI(MF, KernelInfo); in runOnMachineFunction()
205 OutStreamer->emitRawComment(" codeLenInByte = " + Twine(KernelInfo.CodeLen), in runOnMachineFunction()
207 OutStreamer->emitRawComment(" NumSgprs: " + Twine(KernelInfo.NumSGPR), in runOnMachineFunction()
209 OutStreamer->emitRawComment(" NumVgprs: " + Twine(KernelInfo.NumVGPR), in runOnMachineFunction()
211 OutStreamer->emitRawComment(" FloatMode: " + Twine(KernelInfo.FloatMode), in runOnMachineFunction()
213 OutStreamer->emitRawComment(" IeeeMode: " + Twine(KernelInfo.IEEEMode), in runOnMachineFunction()
215 OutStreamer->emitRawComment(" ScratchSize: " + Twine(KernelInfo.ScratchSize), in runOnMachineFunction()
219 Twine(G_00B84C_USER_SGPR(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
222 Twine(G_00B84C_TGID_X_EN(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
225 Twine(G_00B84C_TGID_Y_EN(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
228 Twine(G_00B84C_TGID_Z_EN(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
231 Twine(G_00B84C_TIDIG_COMP_CNT(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
534 const SIProgramInfo &KernelInfo) { in EmitProgramInfoSI() argument
542 OutStreamer->EmitIntValue(KernelInfo.ComputePGMRSrc1, 4); in EmitProgramInfoSI()
545 OutStreamer->EmitIntValue(KernelInfo.ComputePGMRSrc2, 4); in EmitProgramInfoSI()
548 OutStreamer->EmitIntValue(S_00B860_WAVESIZE(KernelInfo.ScratchBlocks), 4); in EmitProgramInfoSI()
554 OutStreamer->EmitIntValue(S_00B028_VGPRS(KernelInfo.VGPRBlocks) | in EmitProgramInfoSI()
555 S_00B028_SGPRS(KernelInfo.SGPRBlocks), 4); in EmitProgramInfoSI()
558 OutStreamer->EmitIntValue(S_0286E8_WAVESIZE(KernelInfo.ScratchBlocks), 4); in EmitProgramInfoSI()
564 OutStreamer->EmitIntValue(S_00B02C_EXTRA_LDS_SIZE(KernelInfo.LDSBlocks), 4); in EmitProgramInfoSI()
571 const SIProgramInfo &KernelInfo) const { in EmitAmdKernelCodeT()
579 KernelInfo.ComputePGMRSrc1 | in EmitAmdKernelCodeT()
580 (KernelInfo.ComputePGMRSrc2 << 32); in EmitAmdKernelCodeT()
624 header.wavefront_sgpr_count = KernelInfo.NumSGPR; in EmitAmdKernelCodeT()
625 header.workitem_vgpr_count = KernelInfo.NumVGPR; in EmitAmdKernelCodeT()
626 header.workitem_private_segment_byte_size = KernelInfo.ScratchSize; in EmitAmdKernelCodeT()
627 header.workgroup_group_segment_byte_size = KernelInfo.LDSSize; in EmitAmdKernelCodeT()