Lines Matching refs:UB
1988 Value *UB = ConstantInt::get(I32Ty, SectionCBs.size()); in createSections() local
1991 Loc, LoopBodyGenCB, LB, UB, ST, true, false, AllocaIP, "section_loop"); in createSections()
2398 Value *UB = Builder.CreateSelect(IsNeg, Start, Stop); in createCanonicalLoop() local
2399 Span = Builder.CreateSub(UB, LB, "", false, true); in createCanonicalLoop()
2401 InclusiveStop ? CmpInst::ICMP_SLT : CmpInst::ICMP_SLE, UB, LB); in createCanonicalLoop()
4659 int32_t LB, UB; in readThreadBoundsForKernel() local
4660 if (!llvm::to_integer(UBStr, UB, 10)) in readThreadBoundsForKernel()
4662 UB = ThreadLimit ? std::min(ThreadLimit, UB) : UB; in readThreadBoundsForKernel()
4664 return {0, UB}; in readThreadBoundsForKernel()
4665 return {LB, UB}; in readThreadBoundsForKernel()
4670 int32_t UB = cast<ConstantInt>(OldVal->getValue())->getZExtValue(); in readThreadBoundsForKernel() local
4671 return {0, ThreadLimit ? std::min(ThreadLimit, UB) : UB}; in readThreadBoundsForKernel()
4678 int32_t UB) { in writeThreadBoundsForKernel() argument
4679 Kernel.addFnAttr("omp_target_thread_limit", std::to_string(UB)); in writeThreadBoundsForKernel()
4683 llvm::utostr(LB) + "," + llvm::utostr(UB)); in writeThreadBoundsForKernel()
4687 updateNVPTXMetadata(Kernel, "maxntidx", UB, true); in writeThreadBoundsForKernel()
4697 int32_t LB, int32_t UB) { in writeTeamsForKernel() argument
4699 if (UB > 0) in writeTeamsForKernel()
4700 updateNVPTXMetadata(Kernel, "maxclusterrank", UB, true); in writeTeamsForKernel()