| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineNegator.cpp | 241 if (auto *Op1C = dyn_cast<Constant>(I->getOperand(1))) { in visitImpl() local 242 if (!Op1C->containsUndefOrPoisonElement() && in visitImpl() 243 Op1C->isNotMinSignedValue() && Op1C->isNotOneValue()) { in visitImpl() 245 Builder.CreateSDiv(I->getOperand(0), ConstantExpr::getNeg(Op1C), in visitImpl() 356 auto *Op1C = dyn_cast<Constant>(I->getOperand(1)); in visitImpl() local 357 if (!Op1C) // Early return. in visitImpl() 361 ConstantExpr::getShl(Constant::getAllOnesValue(Op1C->getType()), Op1C), in visitImpl()
|
| H A D | InstCombineAddSub.cpp | 828 Constant *Op1C; in foldNoWrapAdd() local 829 if (!match(Op1, m_Constant(Op1C))) in foldNoWrapAdd() 849 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd() 856 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd() 866 Constant *Op1C; in foldAddWithConstant() local 867 if (!match(Op1, m_ImmConstant(Op1C))) in foldAddWithConstant() 878 return BinaryOperator::CreateSub(ConstantExpr::getAdd(Op00C, Op1C), X); in foldAddWithConstant() 890 return SelectInst::Create(X, InstCombiner::AddOne(Op1C), Op1); in foldAddWithConstant() 894 return SelectInst::Create(X, InstCombiner::SubOne(Op1C), Op1); in foldAddWithConstant() 898 return BinaryOperator::CreateSub(InstCombiner::SubOne(Op1C), X); in foldAddWithConstant() [all …]
|
| H A D | InstCombineShifts.cpp | 666 const APInt *Op1C; in FoldShiftByConstant() local 667 if (!match(Op1, m_APInt(Op1C))) in FoldShiftByConstant() 673 canEvaluateShifted(Op0, Op1C->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant() 680 I, getShiftedValue(Op0, Op1C->getZExtValue(), isLeftShift, *this, DL)); in FoldShiftByConstant() 687 assert(!Op1C->uge(TypeBits) && in FoldShiftByConstant() 752 unsigned Op1Val = Op1C->getLimitedValue(TypeBits); in FoldShiftByConstant() 784 unsigned Op1Val = Op1C->getLimitedValue(TypeBits); in FoldShiftByConstant()
|
| H A D | InstCombineMulDivRem.cpp | 247 Constant *Op1C; in visitMul() local 248 if (match(Op0, m_Neg(m_Value(X))) && match(Op1, m_Constant(Op1C))) in visitMul() 249 return BinaryOperator::CreateMul(X, ConstantExpr::getNeg(Op1C)); in visitMul() 1136 const APInt *Op1C; in visitSDiv() local 1137 if (match(Op1, m_APInt(Op1C))) { in visitSDiv() 1143 Op0Src->getType()->getScalarSizeInBits() >= Op1C->getMinSignedBits()) { in visitSDiv() 1158 if (!Op1C->isMinSignedValue() && in visitSDiv() 1160 Constant *NegC = ConstantInt::get(Ty, -(*Op1C)); in visitSDiv()
|
| H A D | InstCombineCalls.cpp | 2140 ConstantInt *Op1C = in annotateAnyAllocSite() local 2144 if ((Op0C && Op0C->isNullValue()) || (Op1C && Op1C->isNullValue())) in annotateAnyAllocSite() 2157 if (Op1C) in annotateAnyAllocSite() 2160 Call.getContext(), Op1C->getZExtValue())); in annotateAnyAllocSite() 2172 } else if (isReallocLikeFn(&Call, TLI) && Op1C) { in annotateAnyAllocSite() 2175 Call.getContext(), Op1C->getZExtValue())); in annotateAnyAllocSite() 2176 } else if (isCallocLikeFn(&Call, TLI) && Op0C && Op1C) { in annotateAnyAllocSite() 2179 APInt Size = N.umul_ov(Op1C->getValue(), Overflow); in annotateAnyAllocSite() 2193 else if (NumArgs == 2 && Op1C) in annotateAnyAllocSite() 2197 Call.getContext(), std::min(Len, Op1C->getZExtValue() + 1))); in annotateAnyAllocSite()
|
| H A D | InstCombineCasts.cpp | 1343 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in transformSExtICmp() local 1348 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp() 1356 if (!Op1C->isZero() && Op1C->getValue() != KnownZeroMask) { in transformSExtICmp() 1363 if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) { in transformSExtICmp()
|
| H A D | InstCombineCompares.cpp | 5338 auto *Op1C = dyn_cast<Constant>(Op1); in canonicalizeCmpWithConstant() local 5339 if (!Op1C) in canonicalizeCmpWithConstant() 5343 InstCombiner::getFlippedStrictnessPredicateAndConstant(Pred, Op1C); in canonicalizeCmpWithConstant()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 3121 ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1)); in isMathLibCallNoop() local 3122 if (Op0C && Op1C) { in isMathLibCallNoop() 3124 const APFloat &Op1 = Op1C->getValueAPF(); in isMathLibCallNoop() 3134 if (Ty == Op1C->getType()) in isMathLibCallNoop()
|
| H A D | ValueTracking.cpp | 3233 if (Constant *Op1C = dyn_cast<Constant>(Op1)) in ComputeMultiple() local 3235 if (Op1C->getType()->getPrimitiveSizeInBits().getFixedSize() < in ComputeMultiple() 3237 Op1C = ConstantExpr::getZExt(Op1C, MulC->getType()); in ComputeMultiple() 3238 if (Op1C->getType()->getPrimitiveSizeInBits().getFixedSize() > in ComputeMultiple() 3240 MulC = ConstantExpr::getZExt(MulC, Op1C->getType()); in ComputeMultiple() 3243 Multiple = ConstantExpr::getMul(MulC, Op1C); in ComputeMultiple()
|
| H A D | InstructionSimplify.cpp | 943 auto *Op1C = dyn_cast<Constant>(Op1); in simplifyDivRem() local 945 if (Op1C && VTy) { in simplifyDivRem() 948 Constant *Elt = Op1C->getAggregateElement(i); in simplifyDivRem()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
| H A D | X86FastISel.cpp | 1424 if (const ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in X86FastEmitCompare() local 1425 if (unsigned CompareImmOpc = X86ChooseCmpImmediateOpcode(VT, Op1C)) { in X86FastEmitCompare() 1428 .addImm(Op1C->getSExtValue()); in X86FastEmitCompare()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 521 auto *Op1C = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in ShrinkDemandedConstant() local 522 if (!Op1C) in ShrinkDemandedConstant() 526 const APInt &C = Op1C->getAPIntValue(); in ShrinkDemandedConstant()
|