• Home
  • Raw
  • Download

Lines Matching refs:MFI

104   const SIMachineFunctionInfo *MFI = MF->getInfo<SIMachineFunctionInfo>();  in EmitFunctionEntryLabel()  local
106 if (MFI->isKernel() && STM.isAmdHsaOS()) { in EmitFunctionEntryLabel()
235 R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); in runOnMachineFunction() local
237 Twine("SQ_PGM_RESOURCES:STACK_SIZE = " + Twine(MFI->StackSize))); in runOnMachineFunction()
264 const R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); in EmitProgramInfoR600() local
288 switch (MFI->getShaderType()) { in EmitProgramInfoR600()
297 switch (MFI->getShaderType()) { in EmitProgramInfoR600()
308 S_STACK_SIZE(MFI->StackSize), 4); in EmitProgramInfoR600()
312 if (MFI->getShaderType() == ShaderType::COMPUTE) { in EmitProgramInfoR600()
314 OutStreamer->EmitIntValue(RoundUpToAlignment(MFI->LDSSize, 4) >> 2, 4); in EmitProgramInfoR600()
321 const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in getSIProgramInfo() local
444 if (MFI->NumUserSGPRs > STM.getMaxNumUserSGPRs()) { in getSIProgramInfo()
477 unsigned LDSSpillSize = MFI->LDSWaveSpillSize * in getSIProgramInfo()
478 MFI->getMaximumWorkGroupSize(MF); in getSIProgramInfo()
480 ProgInfo.LDSSize = MFI->LDSSize + LDSSpillSize; in getSIProgramInfo()
505 if (MFI->hasWorkItemIDZ()) in getSIProgramInfo()
507 else if (MFI->hasWorkItemIDY()) in getSIProgramInfo()
512 S_00B84C_USER_SGPR(MFI->getNumUserSGPRs()) | in getSIProgramInfo()
513 S_00B84C_TGID_X_EN(MFI->hasWorkGroupIDX()) | in getSIProgramInfo()
514 S_00B84C_TGID_Y_EN(MFI->hasWorkGroupIDY()) | in getSIProgramInfo()
515 S_00B84C_TGID_Z_EN(MFI->hasWorkGroupIDZ()) | in getSIProgramInfo()
516 S_00B84C_TG_SIZE_EN(MFI->hasWorkGroupInfo()) | in getSIProgramInfo()
536 const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in EmitProgramInfoSI() local
537 unsigned RsrcReg = getRsrcReg(MFI->getShaderType()); in EmitProgramInfoSI()
539 if (MFI->getShaderType() == ShaderType::COMPUTE) { in EmitProgramInfoSI()
556 if (STM.isVGPRSpillingEnabled(MFI)) { in EmitProgramInfoSI()
562 if (MFI->getShaderType() == ShaderType::PIXEL) { in EmitProgramInfoSI()
566 OutStreamer->EmitIntValue(MFI->PSInputAddr, 4); in EmitProgramInfoSI()
572 const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in EmitAmdKernelCodeT() local
583 if (MFI->hasPrivateSegmentBuffer()) { in EmitAmdKernelCodeT()
588 if (MFI->hasDispatchPtr()) in EmitAmdKernelCodeT()
591 if (MFI->hasQueuePtr()) in EmitAmdKernelCodeT()
594 if (MFI->hasKernargSegmentPtr()) in EmitAmdKernelCodeT()
597 if (MFI->hasDispatchID()) in EmitAmdKernelCodeT()
600 if (MFI->hasFlatScratchInit()) in EmitAmdKernelCodeT()
605 if (MFI->hasGridWorkgroupCountX()) { in EmitAmdKernelCodeT()
610 if (MFI->hasGridWorkgroupCountY()) { in EmitAmdKernelCodeT()
615 if (MFI->hasGridWorkgroupCountZ()) { in EmitAmdKernelCodeT()
620 if (MFI->hasDispatchPtr()) in EmitAmdKernelCodeT()
623 header.kernarg_segment_byte_size = MFI->ABIArgOffset; in EmitAmdKernelCodeT()