Lines Matching defs:CurrentProgramInfo

201     getAmdKernelCode(KernelCode, CurrentProgramInfo, *MF);
207 HSAMetadataStream->emitKernel(*MF, CurrentProgramInfo);
242 STM, KernelName, getAmdhsaKernelDescriptor(*MF, CurrentProgramInfo),
243 CurrentProgramInfo.NumVGPRsForWavesPerEU,
245 CurrentProgramInfo.NumSGPRsForWavesPerEU,
247 CurrentProgramInfo.VCCUsed, CurrentProgramInfo.FlatUsed,
250 CurrentProgramInfo.VCCUsed, CurrentProgramInfo.FlatUsed);
465 // CurrentProgramInfo.DynamicCallStack is a MCExpr and could be
473 OrValue = MCBinaryExpr::createShl(CurrentProgramInfo.DynamicCallStack,
504 CurrentProgramInfo.ComputePGMRSrc3GFX90A->evaluateAsAbsolute(PGRM_Rsrc3);
509 KernelDescriptor.compute_pgm_rsrc3 = CurrentProgramInfo.ComputePGMRSrc3GFX90A;
525 CurrentProgramInfo.reset(MF);
546 getSIProgramInfo(CurrentProgramInfo, MF);
551 EmitPALMetadata(MF, CurrentProgramInfo);
555 EmitProgramInfoSI(MF, CurrentProgramInfo);
573 emitResourceUsageRemarks(MF, CurrentProgramInfo, MFI->isModuleEntryFunction(),
596 CurrentProgramInfo.NumArchVGPR,
597 STM.hasMAIInsts() ? CurrentProgramInfo.NumAccVGPR : nullptr,
598 CurrentProgramInfo.NumVGPR, CurrentProgramInfo.NumSGPR,
599 CurrentProgramInfo.ScratchSize, getFunctionCodeSize(MF), MFI);
602 " FloatMode: " + Twine(CurrentProgramInfo.FloatMode), false);
604 " IeeeMode: " + Twine(CurrentProgramInfo.IEEEMode), false);
606 " LDSByteSize: " + Twine(CurrentProgramInfo.LDSSize) +
610 " SGPRBlocks: " + getMCExprStr(CurrentProgramInfo.SGPRBlocks), false);
613 " VGPRBlocks: " + getMCExprStr(CurrentProgramInfo.VGPRBlocks), false);
617 getMCExprStr(CurrentProgramInfo.NumSGPRsForWavesPerEU),
621 getMCExprStr(CurrentProgramInfo.NumVGPRsForWavesPerEU),
626 CurrentProgramInfo.AccumOffset, MCConstantExpr::create(1, Ctx), Ctx);
634 " Occupancy: " + getMCExprStr(CurrentProgramInfo.Occupancy), false);
641 getMCExprStr(CurrentProgramInfo.ScratchEnable),
644 Twine(CurrentProgramInfo.UserSGPR),
647 Twine(CurrentProgramInfo.TrapHandlerEnable),
650 Twine(CurrentProgramInfo.TGIdXEnable),
653 Twine(CurrentProgramInfo.TGIdYEnable),
656 Twine(CurrentProgramInfo.TGIdZEnable),
659 Twine(CurrentProgramInfo.TIdIGCompCount),
664 (CurrentProgramInfo.ComputePGMRSrc3GFX90A->evaluateAsAbsolute(
671 CurrentProgramInfo.ComputePGMRSrc3GFX90A,
678 CurrentProgramInfo.ComputePGMRSrc3GFX90A,
1115 const SIProgramInfo &CurrentProgramInfo) {
1140 EmitResolvedOrExpr(CurrentProgramInfo.getComputePGMRSrc1(STM, Ctx),
1144 EmitResolvedOrExpr(CurrentProgramInfo.getComputePGMRSrc2(Ctx), /*Size=*/4);
1151 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1155 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1159 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1170 SetBits(CurrentProgramInfo.VGPRBlocks, /*Mask=*/0x3F, /*Shift=*/0),
1171 SetBits(CurrentProgramInfo.SGPRBlocks, /*Mask=*/0x0F, /*Shift=*/6),
1179 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1183 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1187 EmitResolvedOrExpr(SetBits(CurrentProgramInfo.ScratchBlocks,
1196 ? divideCeil(CurrentProgramInfo.LDSBlocks, 2)
1197 : CurrentProgramInfo.LDSBlocks;
1213 const SIProgramInfo &CurrentProgramInfo,
1216 MD->setHwStage(CC, ".ieee_mode", (bool)CurrentProgramInfo.IEEEMode);
1218 MD->setHwStage(CC, ".wgp_mode", (bool)CurrentProgramInfo.WgpMode);
1219 MD->setHwStage(CC, ".mem_ordered", (bool)CurrentProgramInfo.MemOrdered);
1223 (bool)CurrentProgramInfo.TrapHandlerEnable);
1224 MD->setHwStage(CC, ".excp_en", CurrentProgramInfo.EXCPEnable);
1228 (unsigned)(CurrentProgramInfo.LdsSize *
1238 const SIProgramInfo &CurrentProgramInfo) {
1245 MD->setNumUsedVgprs(CC, CurrentProgramInfo.NumVGPRsForWavesPerEU, Ctx);
1250 MD->setNumUsedAgprs(CC, CurrentProgramInfo.NumAccVGPR);
1253 MD->setNumUsedSgprs(CC, CurrentProgramInfo.NumSGPRsForWavesPerEU, Ctx);
1255 MD->setRsrc1(CC, CurrentProgramInfo.getPGMRSrc1(CC, STM, Ctx), Ctx);
1257 MD->setRsrc2(CC, CurrentProgramInfo.getComputePGMRSrc2(Ctx), Ctx);
1260 MCBinaryExpr::createGT(CurrentProgramInfo.ScratchBlocks,
1266 MD->setHwStage(CC, ".debug_mode", (bool)CurrentProgramInfo.DebugMode);
1268 CurrentProgramInfo.ScratchEnable);
1269 EmitPALMetadataCommon(MD, CurrentProgramInfo, CC, STM);
1275 AMDGPUMCExpr::createAlignTo(CurrentProgramInfo.ScratchSize,
1281 ? divideCeil(CurrentProgramInfo.LDSBlocks, 2)
1282 : CurrentProgramInfo.LDSBlocks;
1336 CurrentProgramInfo.getPGMRSrc1(CallingConv::AMDGPU_CS, ST, Ctx), Ctx);
1338 CurrentProgramInfo.getComputePGMRSrc2(Ctx), Ctx);
1340 EmitPALMetadataCommon(MD, CurrentProgramInfo, CallingConv::AMDGPU_CS, ST);
1344 MD->setFunctionLdsSize(FnName, CurrentProgramInfo.LDSSize);
1345 MD->setFunctionNumUsedVgprs(FnName, CurrentProgramInfo.NumVGPRsForWavesPerEU);
1346 MD->setFunctionNumUsedSgprs(FnName, CurrentProgramInfo.NumSGPRsForWavesPerEU);
1364 const SIProgramInfo &CurrentProgramInfo,
1377 CurrentProgramInfo.getComputePGMRSrc1(STM, Ctx);
1379 CurrentProgramInfo.getComputePGMRSrc2(Ctx);
1382 Out.is_dynamic_callstack = CurrentProgramInfo.DynamicCallStack;
1418 Out.wavefront_sgpr_count = CurrentProgramInfo.NumSGPR;
1419 Out.workitem_vgpr_count = CurrentProgramInfo.NumVGPR;
1420 Out.workitem_private_segment_byte_size = CurrentProgramInfo.ScratchSize;
1421 Out.workgroup_group_segment_byte_size = CurrentProgramInfo.LDSSize;
1477 const MachineFunction &MF, const SIProgramInfo &CurrentProgramInfo,
1519 getMCExprStr(CurrentProgramInfo.NumSGPR));
1521 getMCExprStr(CurrentProgramInfo.NumArchVGPR));
1524 getMCExprStr(CurrentProgramInfo.NumAccVGPR));
1527 getMCExprStr(CurrentProgramInfo.ScratchSize));
1530 CurrentProgramInfo.DynamicCallStack->evaluateAsAbsolute(DynStack);
1535 getMCExprStr(CurrentProgramInfo.Occupancy));
1537 CurrentProgramInfo.SGPRSpill);
1539 CurrentProgramInfo.VGPRSpill);
1542 CurrentProgramInfo.LDSSize);