Lines Matching refs:UB
2130 Value *UB = ConstantInt::get(I32Ty, SectionCBs.size()); in createSections() local
2133 Loc, LoopBodyGenCB, LB, UB, ST, true, false, AllocaIP, "section_loop"); in createSections()
3937 Value *UB = Builder.CreateSelect(IsNeg, Start, Stop); in createCanonicalLoop() local
3938 Span = Builder.CreateSub(UB, LB, "", false, true); in createCanonicalLoop()
3940 InclusiveStop ? CmpInst::ICMP_SLT : CmpInst::ICMP_SLE, UB, LB); in createCanonicalLoop()
6215 int32_t LB, UB; in readThreadBoundsForKernel() local
6216 if (!llvm::to_integer(UBStr, UB, 10)) in readThreadBoundsForKernel()
6218 UB = ThreadLimit ? std::min(ThreadLimit, UB) : UB; in readThreadBoundsForKernel()
6220 return {0, UB}; in readThreadBoundsForKernel()
6221 return {LB, UB}; in readThreadBoundsForKernel()
6226 int32_t UB = cast<ConstantInt>(OldVal->getValue())->getZExtValue(); in readThreadBoundsForKernel() local
6227 return {0, ThreadLimit ? std::min(ThreadLimit, UB) : UB}; in readThreadBoundsForKernel()
6234 int32_t UB) { in writeThreadBoundsForKernel() argument
6235 Kernel.addFnAttr("omp_target_thread_limit", std::to_string(UB)); in writeThreadBoundsForKernel()
6239 llvm::utostr(LB) + "," + llvm::utostr(UB)); in writeThreadBoundsForKernel()
6243 updateNVPTXMetadata(Kernel, "maxntidx", UB, true); in writeThreadBoundsForKernel()
6253 int32_t LB, int32_t UB) { in writeTeamsForKernel() argument
6255 if (UB > 0) in writeTeamsForKernel()
6256 updateNVPTXMetadata(Kernel, "maxclusterrank", UB, true); in writeTeamsForKernel()