Searched refs:LenC (Results 1 – 6 of 6) sorted by relevance
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 621 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/llvm-project/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 213 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable() local 215 annotateDereferenceableBytes(CI, ArgNos, LenC->getZExtValue()); in annotateNonNullAndDereferenceable() 890 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemChr() local 893 if (LenC) { in optimizeMemChr() 894 if (LenC->isZero()) in optimizeMemChr() 908 Str = Str.substr(0, LenC->getZExtValue()); in optimizeMemChr() 1060 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemCmpBCmpCommon() local 1061 if (!LenC) in optimizeMemCmpBCmpCommon() 1065 if (LenC->getZExtValue() == 0) in optimizeMemCmpBCmpCommon() 1069 optimizeMemCmpConstantSize(CI, LHS, RHS, LenC->getZExtValue(), B, DL)) in optimizeMemCmpBCmpCommon()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 237 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()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 236 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyAnyMemSet() local 238 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyAnyMemSet() 240 const uint64_t Len = LenC->getLimitedValue(); in SimplifyAnyMemSet() 270 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyAnyMemSet()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 184 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-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 251 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()
|