Lines Matching refs:MFI
126 const SIMachineFunctionInfo *MFI = MF->getInfo<SIMachineFunctionInfo>(); in EmitFunctionEntryLabel() local
128 if (MFI->isKernel() && STM.isAmdHsaOS()) { in EmitFunctionEntryLabel()
227 R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); in runOnMachineFunction() local
229 Twine("SQ_PGM_RESOURCES:STACK_SIZE = " + Twine(MFI->StackSize))); in runOnMachineFunction()
255 const R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); in EmitProgramInfoR600() local
299 S_STACK_SIZE(MFI->StackSize), 4); in EmitProgramInfoR600()
305 OutStreamer->EmitIntValue(alignTo(MFI->LDSSize, 4) >> 2, 4); in EmitProgramInfoR600()
312 const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in getSIProgramInfo() local
450 ProgInfo.ReservedVGPRCount = MFI->getDebuggerReservedVGPRCount(); in getSIProgramInfo()
451 MaxVGPR += MFI->getDebuggerReservedVGPRCount(); in getSIProgramInfo()
459 RI->getHWRegIndex(MFI->getScratchWaveOffsetReg()); in getSIProgramInfo()
461 RI->getHWRegIndex(MFI->getScratchRSrcReg()); in getSIProgramInfo()
481 if (MFI->NumUserSGPRs > STM.getMaxNumUserSGPRs()) { in getSIProgramInfo()
484 MFI->NumUserSGPRs, DS_Error); in getSIProgramInfo()
488 if (MFI->LDSSize > static_cast<unsigned>(STM.getLocalMemorySize())) { in getSIProgramInfo()
491 MFI->LDSSize, DS_Error); in getSIProgramInfo()
522 unsigned LDSSpillSize = MFI->LDSWaveSpillSize * in getSIProgramInfo()
523 MFI->getMaximumWorkGroupSize(MF); in getSIProgramInfo()
525 ProgInfo.LDSSize = MFI->LDSSize + LDSSpillSize; in getSIProgramInfo()
551 if (MFI->hasWorkItemIDZ()) in getSIProgramInfo()
553 else if (MFI->hasWorkItemIDY()) in getSIProgramInfo()
558 S_00B84C_USER_SGPR(MFI->getNumUserSGPRs()) | in getSIProgramInfo()
559 S_00B84C_TGID_X_EN(MFI->hasWorkGroupIDX()) | in getSIProgramInfo()
560 S_00B84C_TGID_Y_EN(MFI->hasWorkGroupIDY()) | in getSIProgramInfo()
561 S_00B84C_TGID_Z_EN(MFI->hasWorkGroupIDZ()) | in getSIProgramInfo()
562 S_00B84C_TG_SIZE_EN(MFI->hasWorkGroupInfo()) | in getSIProgramInfo()
582 const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in EmitProgramInfoSI() local
612 OutStreamer->EmitIntValue(MFI->PSInputEna, 4); in EmitProgramInfoSI()
614 OutStreamer->EmitIntValue(MFI->getPSInputAddr(), 4); in EmitProgramInfoSI()
618 OutStreamer->EmitIntValue(MFI->getNumSpilledSGPRs(), 4); in EmitProgramInfoSI()
620 OutStreamer->EmitIntValue(MFI->getNumSpilledVGPRs(), 4); in EmitProgramInfoSI()
639 const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in EmitAmdKernelCodeT() local
655 if (MFI->hasPrivateSegmentBuffer()) { in EmitAmdKernelCodeT()
660 if (MFI->hasDispatchPtr()) in EmitAmdKernelCodeT()
663 if (MFI->hasQueuePtr()) in EmitAmdKernelCodeT()
666 if (MFI->hasKernargSegmentPtr()) in EmitAmdKernelCodeT()
669 if (MFI->hasDispatchID()) in EmitAmdKernelCodeT()
672 if (MFI->hasFlatScratchInit()) in EmitAmdKernelCodeT()
677 if (MFI->hasGridWorkgroupCountX()) { in EmitAmdKernelCodeT()
682 if (MFI->hasGridWorkgroupCountY()) { in EmitAmdKernelCodeT()
687 if (MFI->hasGridWorkgroupCountZ()) { in EmitAmdKernelCodeT()
692 if (MFI->hasDispatchPtr()) in EmitAmdKernelCodeT()
701 header.kernarg_segment_byte_size = MFI->ABIArgOffset; in EmitAmdKernelCodeT()