Lines Matching refs:KernelInfo
118 SIProgramInfo KernelInfo; in EmitFunctionBodyStart() local
120 getSIProgramInfo(KernelInfo, *MF); in EmitFunctionBodyStart()
121 EmitAmdKernelCodeT(*MF, KernelInfo); in EmitFunctionBodyStart()
160 SIProgramInfo KernelInfo; in runOnMachineFunction() local
162 getSIProgramInfo(KernelInfo, MF); in runOnMachineFunction()
164 EmitProgramInfoSI(MF, KernelInfo); in runOnMachineFunction()
183 OutStreamer->emitRawComment(" codeLenInByte = " + Twine(KernelInfo.CodeLen), in runOnMachineFunction()
185 OutStreamer->emitRawComment(" NumSgprs: " + Twine(KernelInfo.NumSGPR), in runOnMachineFunction()
187 OutStreamer->emitRawComment(" NumVgprs: " + Twine(KernelInfo.NumVGPR), in runOnMachineFunction()
189 OutStreamer->emitRawComment(" FloatMode: " + Twine(KernelInfo.FloatMode), in runOnMachineFunction()
191 OutStreamer->emitRawComment(" IeeeMode: " + Twine(KernelInfo.IEEEMode), in runOnMachineFunction()
193 OutStreamer->emitRawComment(" ScratchSize: " + Twine(KernelInfo.ScratchSize), in runOnMachineFunction()
195 OutStreamer->emitRawComment(" LDSByteSize: " + Twine(KernelInfo.LDSSize) + in runOnMachineFunction()
198 OutStreamer->emitRawComment(" ReservedVGPRFirst: " + Twine(KernelInfo.ReservedVGPRFirst), in runOnMachineFunction()
200 OutStreamer->emitRawComment(" ReservedVGPRCount: " + Twine(KernelInfo.ReservedVGPRCount), in runOnMachineFunction()
205 … Twine(KernelInfo.DebuggerWavefrontPrivateSegmentOffsetSGPR), false); in runOnMachineFunction()
207 Twine(KernelInfo.DebuggerPrivateSegmentBufferSGPR), false); in runOnMachineFunction()
211 Twine(G_00B84C_USER_SGPR(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
214 Twine(G_00B84C_TGID_X_EN(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
217 Twine(G_00B84C_TGID_Y_EN(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
220 Twine(G_00B84C_TGID_Z_EN(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
223 Twine(G_00B84C_TIDIG_COMP_CNT(KernelInfo.ComputePGMRSrc2)), in runOnMachineFunction()
580 const SIProgramInfo &KernelInfo) { in EmitProgramInfoSI() argument
588 OutStreamer->EmitIntValue(KernelInfo.ComputePGMRSrc1, 4); in EmitProgramInfoSI()
591 OutStreamer->EmitIntValue(KernelInfo.ComputePGMRSrc2, 4); in EmitProgramInfoSI()
594 OutStreamer->EmitIntValue(S_00B860_WAVESIZE(KernelInfo.ScratchBlocks), 4); in EmitProgramInfoSI()
600 OutStreamer->EmitIntValue(S_00B028_VGPRS(KernelInfo.VGPRBlocks) | in EmitProgramInfoSI()
601 S_00B028_SGPRS(KernelInfo.SGPRBlocks), 4); in EmitProgramInfoSI()
604 OutStreamer->EmitIntValue(S_0286E8_WAVESIZE(KernelInfo.ScratchBlocks), 4); in EmitProgramInfoSI()
610 OutStreamer->EmitIntValue(S_00B02C_EXTRA_LDS_SIZE(KernelInfo.LDSBlocks), 4); in EmitProgramInfoSI()
638 const SIProgramInfo &KernelInfo) const { in EmitAmdKernelCodeT()
646 KernelInfo.ComputePGMRSrc1 | in EmitAmdKernelCodeT()
647 (KernelInfo.ComputePGMRSrc2 << 32); in EmitAmdKernelCodeT()
702 header.wavefront_sgpr_count = KernelInfo.NumSGPR; in EmitAmdKernelCodeT()
703 header.workitem_vgpr_count = KernelInfo.NumVGPR; in EmitAmdKernelCodeT()
704 header.workitem_private_segment_byte_size = KernelInfo.ScratchSize; in EmitAmdKernelCodeT()
705 header.workgroup_group_segment_byte_size = KernelInfo.LDSSize; in EmitAmdKernelCodeT()
706 header.reserved_vgpr_first = KernelInfo.ReservedVGPRFirst; in EmitAmdKernelCodeT()
707 header.reserved_vgpr_count = KernelInfo.ReservedVGPRCount; in EmitAmdKernelCodeT()
711 KernelInfo.DebuggerWavefrontPrivateSegmentOffsetSGPR; in EmitAmdKernelCodeT()
713 KernelInfo.DebuggerPrivateSegmentBufferSGPR; in EmitAmdKernelCodeT()