Home
last modified time | relevance | path

Searched refs:Op1C (Results 1 – 11 of 11) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp686 const APInt *Op1C; in FoldShiftByConstant() local
687 if (!match(Op1, m_APInt(Op1C))) in FoldShiftByConstant()
693 canEvaluateShifted(Op0, Op1C->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant()
700 I, getShiftedValue(Op0, Op1C->getZExtValue(), isLeftShift, *this, DL)); in FoldShiftByConstant()
707 assert(!Op1C->uge(TypeBits) && in FoldShiftByConstant()
742 MaskV <<= Op1C->getZExtValue(); in FoldShiftByConstant()
745 MaskV.lshrInPlace(Op1C->getZExtValue()); in FoldShiftByConstant()
779 unsigned Op1Val = Op1C->getLimitedValue(TypeBits); in FoldShiftByConstant()
814 unsigned Op1Val = Op1C->getLimitedValue(TypeBits); in FoldShiftByConstant()
DInstCombineMulDivRem.cpp279 Constant *Op1C; in visitMul() local
280 if (match(Op0, m_Neg(m_Value(X))) && match(Op1, m_Constant(Op1C))) in visitMul()
281 return BinaryOperator::CreateMul(X, ConstantExpr::getNeg(Op1C)); in visitMul()
1072 const APInt *Op1C; in visitSDiv() local
1073 if (match(Op1, m_APInt(Op1C))) { in visitSDiv()
1075 if (I.isExact() && Op1C->isNonNegative() && Op1C->isPowerOf2()) { in visitSDiv()
1076 Value *ShAmt = ConstantInt::get(Op1->getType(), Op1C->exactLogBase2()); in visitSDiv()
1085 Op0Src->getType()->getScalarSizeInBits() >= Op1C->getMinSignedBits()) { in visitSDiv()
1100 if (!Op1C->isMinSignedValue() && in visitSDiv()
1102 Constant *NegC = ConstantInt::get(I.getType(), -(*Op1C)); in visitSDiv()
DInstCombineAddSub.cpp830 Constant *Op1C; in foldNoWrapAdd() local
831 if (!match(Op1, m_Constant(Op1C))) in foldNoWrapAdd()
851 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd()
858 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd()
868 Constant *Op1C; in foldAddWithConstant() local
869 if (!match(Op1, m_Constant(Op1C))) in foldAddWithConstant()
880 return BinaryOperator::CreateSub(ConstantExpr::getAdd(Op00C, Op1C), X); in foldAddWithConstant()
892 return SelectInst::Create(X, AddOne(Op1C), Op1); in foldAddWithConstant()
896 return SelectInst::Create(X, SubOne(Op1C), Op1); in foldAddWithConstant()
900 return BinaryOperator::CreateSub(SubOne(Op1C), X); in foldAddWithConstant()
DInstCombineCasts.cpp1250 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in transformSExtICmp() local
1255 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp()
1263 if (!Op1C->isZero() && Op1C->getValue() != KnownZeroMask) { in transformSExtICmp()
1270 if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) { in transformSExtICmp()
DInstCombineCalls.cpp4354 ConstantInt *Op1C = in annotateAnyAllocSite() local
4357 if ((Op0C && Op0C->isNullValue()) || (Op1C && Op1C->isNullValue())) in annotateAnyAllocSite()
4369 } else if (isReallocLikeFn(&Call, TLI) && Op1C) { in annotateAnyAllocSite()
4372 Call.getContext(), Op1C->getZExtValue())); in annotateAnyAllocSite()
4373 } else if (isCallocLikeFn(&Call, TLI) && Op0C && Op1C) { in annotateAnyAllocSite()
4376 APInt Size = N.umul_ov(Op1C->getValue(), Overflow); in annotateAnyAllocSite()
4390 else if (NumArgs == 2 && Op1C) in annotateAnyAllocSite()
4394 Call.getContext(), std::min(Len, Op1C->getZExtValue() + 1))); in annotateAnyAllocSite()
DInstCombineCompares.cpp5262 auto *Op1C = dyn_cast<Constant>(Op1); in canonicalizeCmpWithConstant() local
5263 if (!Op1C) in canonicalizeCmpWithConstant()
5266 auto FlippedStrictness = getFlippedStrictnessPredicateAndConstant(Pred, Op1C); in canonicalizeCmpWithConstant()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DConstantFolding.cpp2604 ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1)); in isMathLibCallNoop() local
2605 if (Op0C && Op1C) { in isMathLibCallNoop()
2607 const APFloat &Op1 = Op1C->getValueAPF(); in isMathLibCallNoop()
2617 if (Ty == Op1C->getType()) { in isMathLibCallNoop()
2619 double Op1V = getValueAsDouble(Op1C); in isMathLibCallNoop()
DValueTracking.cpp2828 if (Constant *Op1C = dyn_cast<Constant>(Op1)) in ComputeMultiple() local
2830 if (Op1C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2832 Op1C = ConstantExpr::getZExt(Op1C, MulC->getType()); in ComputeMultiple()
2833 if (Op1C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2835 MulC = ConstantExpr::getZExt(MulC, Op1C->getType()); in ComputeMultiple()
2838 Multiple = ConstantExpr::getMul(MulC, Op1C); in ComputeMultiple()
DInstructionSimplify.cpp948 auto *Op1C = dyn_cast<Constant>(Op1); in simplifyDivRem() local
949 if (Op1C && Ty->isVectorTy()) { in simplifyDivRem()
952 Constant *Elt = Op1C->getAggregateElement(i); in simplifyDivRem()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86FastISel.cpp1405 if (const ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in X86FastEmitCompare() local
1406 if (unsigned CompareImmOpc = X86ChooseCmpImmediateOpcode(VT, Op1C)) { in X86FastEmitCompare()
1409 .addImm(Op1C->getSExtValue()); in X86FastEmitCompare()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp510 auto *Op1C = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in ShrinkDemandedConstant() local
511 if (!Op1C) in ShrinkDemandedConstant()
515 const APInt &C = Op1C->getAPIntValue(); in ShrinkDemandedConstant()