Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp621 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemChr() local
624 if (LenC && LenC->isNullValue()) in optimizeMemChr()
629 if (!LenC || !getConstantStringInfo(SrcStr, Str, 0, /*TrimAtNul=*/false)) in optimizeMemChr()
635 Str = Str.substr(0, LenC->getZExtValue()); in optimizeMemChr()
703 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemCmp() local
704 if (!LenC) in optimizeMemCmp()
706 uint64_t Len = LenC->getZExtValue(); in optimizeMemCmp()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp690 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemChr() local
693 if (LenC && LenC->isZero()) in optimizeMemChr()
698 if (!LenC || !getConstantStringInfo(SrcStr, Str, 0, /*TrimAtNul=*/false)) in optimizeMemChr()
704 Str = Str.substr(0, LenC->getZExtValue()); in optimizeMemChr()
772 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemCmp() local
773 if (!LenC) in optimizeMemCmp()
776 uint64_t Len = LenC->getZExtValue(); in optimizeMemCmp()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCalls.cpp132 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyMemSet() local
134 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyMemSet()
136 uint64_t Len = LenC->getZExtValue(); in SimplifyMemSet()
161 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyMemSet()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp742 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in CallOptimizer() local
743 if (!LenC) return 0; in CallOptimizer()
744 uint64_t Len = LenC->getZExtValue(); in CallOptimizer()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp184 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyMemSet() local
186 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyMemSet()
188 uint64_t Len = LenC->getLimitedValue(); in SimplifyMemSet()
211 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyMemSet()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp210 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyAnyMemSet() local
212 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyAnyMemSet()
214 uint64_t Len = LenC->getLimitedValue(); in SimplifyAnyMemSet()
239 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyAnyMemSet()