Lines Matching refs:Max
609 unsigned Max = 0; in handleAMDGPUFlatWorkGroupSizeAttr() local
612 Max = FlatWGS->getMax()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUFlatWorkGroupSizeAttr()
614 if (ReqdWGS && Min == 0 && Max == 0) in handleAMDGPUFlatWorkGroupSizeAttr()
615 Min = Max = ReqdWGS->getXDim() * ReqdWGS->getYDim() * ReqdWGS->getZDim(); in handleAMDGPUFlatWorkGroupSizeAttr()
618 assert(Min <= Max && "Min must be less than or equal Max"); in handleAMDGPUFlatWorkGroupSizeAttr()
623 *MaxThreadsVal = Max; in handleAMDGPUFlatWorkGroupSizeAttr()
624 std::string AttrVal = llvm::utostr(Min) + "," + llvm::utostr(Max); in handleAMDGPUFlatWorkGroupSizeAttr()
628 assert(Max == 0 && "Max must be zero"); in handleAMDGPUFlatWorkGroupSizeAttr()
635 unsigned Max = in handleAMDGPUWavesPerEUAttr() local
641 assert((Max == 0 || Min <= Max) && "Min must be less than or equal Max"); in handleAMDGPUWavesPerEUAttr()
644 if (Max != 0) in handleAMDGPUWavesPerEUAttr()
645 AttrVal = AttrVal + "," + llvm::utostr(Max); in handleAMDGPUWavesPerEUAttr()
648 assert(Max == 0 && "Max must be zero"); in handleAMDGPUWavesPerEUAttr()