Home
last modified time | relevance | path

Searched refs:LenC (Results 1 – 4 of 4) 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/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()