Lines Matching refs:Max
649 unsigned Max = 0; in handleAMDGPUFlatWorkGroupSizeAttr() local
652 Max = FlatWGS->getMax()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUFlatWorkGroupSizeAttr()
654 if (ReqdWGS && Min == 0 && Max == 0) in handleAMDGPUFlatWorkGroupSizeAttr()
655 Min = Max = ReqdWGS->getXDim() * ReqdWGS->getYDim() * ReqdWGS->getZDim(); in handleAMDGPUFlatWorkGroupSizeAttr()
658 assert(Min <= Max && "Min must be less than or equal Max"); in handleAMDGPUFlatWorkGroupSizeAttr()
663 *MaxThreadsVal = Max; in handleAMDGPUFlatWorkGroupSizeAttr()
664 std::string AttrVal = llvm::utostr(Min) + "," + llvm::utostr(Max); in handleAMDGPUFlatWorkGroupSizeAttr()
668 assert(Max == 0 && "Max must be zero"); in handleAMDGPUFlatWorkGroupSizeAttr()
675 unsigned Max = in handleAMDGPUWavesPerEUAttr() local
681 assert((Max == 0 || Min <= Max) && "Min must be less than or equal Max"); in handleAMDGPUWavesPerEUAttr()
684 if (Max != 0) in handleAMDGPUWavesPerEUAttr()
685 AttrVal = AttrVal + "," + llvm::utostr(Max); in handleAMDGPUWavesPerEUAttr()
688 assert(Max == 0 && "Max must be zero"); in handleAMDGPUWavesPerEUAttr()