Lines Matching defs:CurrentProgramInfo
203 getAmdKernelCode(KernelCode, CurrentProgramInfo, *MF);
209 HSAMetadataStream->emitKernel(*MF, CurrentProgramInfo);
238 STM, KernelName, getAmdhsaKernelDescriptor(*MF, CurrentProgramInfo),
239 CurrentProgramInfo.NumVGPRsForWavesPerEU,
241 CurrentProgramInfo.NumSGPRsForWavesPerEU,
243 CurrentProgramInfo.VCCUsed, CurrentProgramInfo.FlatUsed,
246 CurrentProgramInfo.VCCUsed, CurrentProgramInfo.FlatUsed);
586 // CurrentProgramInfo.DynamicCallStack is a MCExpr and could be
594 OrValue = MCBinaryExpr::createShl(CurrentProgramInfo.DynamicCallStack,
625 CurrentProgramInfo.ComputePGMRSrc3GFX90A->evaluateAsAbsolute(PGRM_Rsrc3);
630 KernelDescriptor.compute_pgm_rsrc3 = CurrentProgramInfo.ComputePGMRSrc3GFX90A;
646 CurrentProgramInfo.reset(MF);
672 getSIProgramInfo(CurrentProgramInfo, MF);
677 EmitPALMetadata(MF, CurrentProgramInfo);
681 EmitProgramInfoSI(MF, CurrentProgramInfo);
699 emitResourceUsageRemarks(MF, CurrentProgramInfo, MFI->isModuleEntryFunction(),
757 CurrentProgramInfo.NumArchVGPR,
758 STM.hasMAIInsts() ? CurrentProgramInfo.NumAccVGPR : nullptr,
759 CurrentProgramInfo.NumVGPR, CurrentProgramInfo.NumSGPR,
760 CurrentProgramInfo.ScratchSize, getFunctionCodeSize(MF), MFI);
763 " FloatMode: " + Twine(CurrentProgramInfo.FloatMode), false);
765 " IeeeMode: " + Twine(CurrentProgramInfo.IEEEMode), false);
767 " LDSByteSize: " + Twine(CurrentProgramInfo.LDSSize) +
771 " SGPRBlocks: " + getMCExprStr(CurrentProgramInfo.SGPRBlocks), false);
774 " VGPRBlocks: " + getMCExprStr(CurrentProgramInfo.VGPRBlocks), false);
778 getMCExprStr(CurrentProgramInfo.NumSGPRsForWavesPerEU),
782 getMCExprStr(CurrentProgramInfo.NumVGPRsForWavesPerEU),
787 CurrentProgramInfo.AccumOffset, MCConstantExpr::create(1, Ctx), Ctx);
795 " Occupancy: " + getMCExprStr(CurrentProgramInfo.Occupancy), false);
802 getMCExprStr(CurrentProgramInfo.ScratchEnable),
805 Twine(CurrentProgramInfo.UserSGPR),
808 Twine(CurrentProgramInfo.TrapHandlerEnable),
811 Twine(CurrentProgramInfo.TGIdXEnable),
814 Twine(CurrentProgramInfo.TGIdYEnable),
817 Twine(CurrentProgramInfo.TGIdZEnable),
820 Twine(CurrentProgramInfo.TIdIGCompCount),
825 (CurrentProgramInfo.ComputePGMRSrc3GFX90A->evaluateAsAbsolute(
832 CurrentProgramInfo.ComputePGMRSrc3GFX90A,
839 CurrentProgramInfo.ComputePGMRSrc3GFX90A,
1306 const SIProgramInfo &CurrentProgramInfo) {
1331 EmitResolvedOrExpr(CurrentProgramInfo.getComputePGMRSrc1(STM, Ctx),
1335 EmitResolvedOrExpr(CurrentProgramInfo.getComputePGMRSrc2(Ctx), /*Size=*/4);
1342 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1346 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1350 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1361 SetBits(CurrentProgramInfo.VGPRBlocks, /*Mask=*/0x3F, /*Shift=*/0),
1362 SetBits(CurrentProgramInfo.SGPRBlocks, /*Mask=*/0x0F, /*Shift=*/6),
1370 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1374 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1378 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1387 ? divideCeil(CurrentProgramInfo.LDSBlocks, 2)
1388 : CurrentProgramInfo.LDSBlocks;
1404 const SIProgramInfo &CurrentProgramInfo,
1407 MD->setHwStage(CC, ".ieee_mode", (bool)CurrentProgramInfo.IEEEMode);
1409 MD->setHwStage(CC, ".wgp_mode", (bool)CurrentProgramInfo.WgpMode);
1410 MD->setHwStage(CC, ".mem_ordered", (bool)CurrentProgramInfo.MemOrdered);
1414 (bool)CurrentProgramInfo.TrapHandlerEnable);
1415 MD->setHwStage(CC, ".excp_en", CurrentProgramInfo.EXCPEnable);
1419 (unsigned)(CurrentProgramInfo.LdsSize *
1429 const SIProgramInfo &CurrentProgramInfo) {
1436 MD->setNumUsedVgprs(CC, CurrentProgramInfo.NumVGPRsForWavesPerEU, Ctx);
1441 MD->setNumUsedAgprs(CC, CurrentProgramInfo.NumAccVGPR);
1444 MD->setNumUsedSgprs(CC, CurrentProgramInfo.NumSGPRsForWavesPerEU, Ctx);
1446 MD->setRsrc1(CC, CurrentProgramInfo.getPGMRSrc1(CC, STM, Ctx), Ctx);
1448 MD->setRsrc2(CC, CurrentProgramInfo.getComputePGMRSrc2(Ctx), Ctx);
1451 MCBinaryExpr::createGT(CurrentProgramInfo.ScratchBlocks,
1457 MD->setHwStage(CC, ".debug_mode", (bool)CurrentProgramInfo.DebugMode);
1459 CurrentProgramInfo.ScratchEnable);
1460 EmitPALMetadataCommon(MD, CurrentProgramInfo, CC, STM);
1466 AMDGPUMCExpr::createAlignTo(CurrentProgramInfo.ScratchSize,
1472 ? divideCeil(CurrentProgramInfo.LDSBlocks, 2)
1473 : CurrentProgramInfo.LDSBlocks;
1527 CurrentProgramInfo.getPGMRSrc1(CallingConv::AMDGPU_CS, ST, Ctx), Ctx);
1529 CurrentProgramInfo.getComputePGMRSrc2(Ctx), Ctx);
1531 EmitPALMetadataCommon(MD, CurrentProgramInfo, CallingConv::AMDGPU_CS, ST);
1535 MD->setFunctionLdsSize(FnName, CurrentProgramInfo.LDSSize);
1536 MD->setFunctionNumUsedVgprs(FnName, CurrentProgramInfo.NumVGPRsForWavesPerEU);
1537 MD->setFunctionNumUsedSgprs(FnName, CurrentProgramInfo.NumSGPRsForWavesPerEU);
1555 const SIProgramInfo &CurrentProgramInfo,
1568 CurrentProgramInfo.getComputePGMRSrc1(STM, Ctx);
1570 CurrentProgramInfo.getComputePGMRSrc2(Ctx);
1573 Out.is_dynamic_callstack = CurrentProgramInfo.DynamicCallStack;
1606 Out.wavefront_sgpr_count = CurrentProgramInfo.NumSGPR;
1607 Out.workitem_vgpr_count = CurrentProgramInfo.NumVGPR;
1608 Out.workitem_private_segment_byte_size = CurrentProgramInfo.ScratchSize;
1609 Out.workgroup_group_segment_byte_size = CurrentProgramInfo.LDSSize;
1667 const MachineFunction &MF, const SIProgramInfo &CurrentProgramInfo,
1709 getMCExprStr(CurrentProgramInfo.NumSGPR));
1711 getMCExprStr(CurrentProgramInfo.NumArchVGPR));
1714 getMCExprStr(CurrentProgramInfo.NumAccVGPR));
1717 getMCExprStr(CurrentProgramInfo.ScratchSize));
1720 CurrentProgramInfo.DynamicCallStack->evaluateAsAbsolute(DynStack);
1725 getMCExprStr(CurrentProgramInfo.Occupancy));
1727 CurrentProgramInfo.SGPRSpill);
1729 CurrentProgramInfo.VGPRSpill);
1732 CurrentProgramInfo.LDSSize);