Home
last modified time | relevance | path

Searched refs:LenC (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp314 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable() local
316 annotateDereferenceableBytes(CI, ArgNos, LenC->getZExtValue()); in annotateNonNullAndDereferenceable()
966 Value *LenC = ConstantInt::get(CI->getType(), Len - 1); in optimizeStringLength() local
970 return B.CreateBinaryIntrinsic(Intrinsic::umin, LenC, Bound); in optimizeStringLength()
971 return LenC; in optimizeStringLength()
1216 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemRChr() local
1219 if (LenC) { in optimizeMemRChr()
1220 if (LenC->isZero()) in optimizeMemRChr()
1224 if (LenC->isOne()) { in optimizeMemRChr()
1246 if (LenC) { in optimizeMemRChr()
[all …]
H A DEvaluator.cpp399 auto *LenC = dyn_cast<ConstantInt>(getVal(MSI->getLength())); in EvaluateBlock() local
400 if (!LenC) { in EvaluateBlock()
421 APInt Len = LenC->getValue(); in EvaluateBlock()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp245 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyAnyMemSet() local
247 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyAnyMemSet()
249 const uint64_t Len = LenC->getLimitedValue(); in SimplifyAnyMemSet()
284 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyAnyMemSet()