Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp237 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable() local
239 annotateDereferenceableBytes(CI, ArgNos, LenC->getZExtValue()); in annotateNonNullAndDereferenceable()
907 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemChr() local
910 if (LenC) { in optimizeMemChr()
911 if (LenC->isZero()) in optimizeMemChr()
925 Str = Str.substr(0, LenC->getZExtValue()); in optimizeMemChr()
1077 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemCmpBCmpCommon() local
1078 if (!LenC) in optimizeMemCmpBCmpCommon()
1082 if (LenC->getZExtValue() == 0) in optimizeMemCmpBCmpCommon()
1086 optimizeMemCmpConstantSize(CI, LHS, RHS, LenC->getZExtValue(), B, DL)) in optimizeMemCmpBCmpCommon()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp251 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyAnyMemSet() local
253 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyAnyMemSet()
255 const uint64_t Len = LenC->getLimitedValue(); in SimplifyAnyMemSet()
285 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyAnyMemSet()