Searched refs:Op1C (Results 1 - 12 of 12) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp217 if (auto *Op1C = dyn_cast<Constant>(I->getOperand(1))) {
218 if (!Op1C->containsUndefElement() && Op1C->isNotMinSignedValue() &&
219 Op1C->isNotOneValue()) {
221 Builder.CreateSDiv(I->getOperand(0), ConstantExpr::getNeg(Op1C),
H A DInstCombineShifts.cpp679 const APInt *Op1C; local
680 if (!match(Op1, m_APInt(Op1C)))
686 canEvaluateShifted(Op0, Op1C->getZExtValue(), isLeftShift, *this, &I)) {
693 I, getShiftedValue(Op0, Op1C->getZExtValue(), isLeftShift, *this, DL));
700 assert(!Op1C->uge(TypeBits) &&
735 MaskV <<= Op1C->getZExtValue();
738 MaskV.lshrInPlace(Op1C->getZExtValue());
772 unsigned Op1Val = Op1C->getLimitedValue(TypeBits);
807 unsigned Op1Val = Op1C->getLimitedValue(TypeBits);
H A DInstCombineMulDivRem.cpp295 Constant *Op1C; local
296 if (match(Op0, m_Neg(m_Value(X))) && match(Op1, m_Constant(Op1C)))
297 return BinaryOperator::CreateMul(X, ConstantExpr::getNeg(Op1C));
1135 const APInt *Op1C; local
1136 if (match(Op1, m_APInt(Op1C))) {
1138 if (I.isExact() && Op1C->isNonNegative() && Op1C->isPowerOf2()) {
1139 Value *ShAmt = ConstantInt::get(Op1->getType(), Op1C->exactLogBase2());
1148 Op0Src->getType()->getScalarSizeInBits() >= Op1C->getMinSignedBits()) {
1163 if (!Op1C
[all...]
H A DInstCombineAddSub.cpp827 Constant *Op1C; local
828 if (!match(Op1, m_Constant(Op1C)))
848 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C);
855 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C);
865 Constant *Op1C; local
866 if (!match(Op1, m_Constant(Op1C)))
877 return BinaryOperator::CreateSub(ConstantExpr::getAdd(Op00C, Op1C), X);
889 return SelectInst::Create(X, AddOne(Op1C), Op1);
893 return SelectInst::Create(X, SubOne(Op1C), Op1);
897 return BinaryOperator::CreateSub(SubOne(Op1C),
[all...]
H A DInstCombineCalls.cpp4521 ConstantInt *Op1C = local
4525 if ((Op0C && Op0C->isNullValue()) || (Op1C && Op1C->isNullValue()))
4537 } else if (isAlignedAllocLikeFn(&Call, TLI) && Op1C) {
4540 Call.getContext(), Op1C->getZExtValue()));
4549 } else if (isReallocLikeFn(&Call, TLI) && Op1C) {
4552 Call.getContext(), Op1C->getZExtValue()));
4553 } else if (isCallocLikeFn(&Call, TLI) && Op0C && Op1C) {
4556 APInt Size = N.umul_ov(Op1C->getValue(), Overflow);
4570 else if (NumArgs == 2 && Op1C)
[all...]
H A DInstCombineCasts.cpp937 // If Op1C some other power of two, convert:
1300 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
1305 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){
1313 if (!Op1C->isZero() && Op1C->getValue() != KnownZeroMask) {
1320 if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) {
H A DInstCombineCompares.cpp5264 auto *Op1C = dyn_cast<Constant>(Op1); local
5265 if (!Op1C)
5268 auto FlippedStrictness = getFlippedStrictnessPredicateAndConstant(Pred, Op1C);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp2916 ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1)); local
2917 if (Op0C && Op1C) {
2919 const APFloat &Op1 = Op1C->getValueAPF();
2929 if (Ty == Op1C->getType()) {
2931 double Op1V = getValueAsDouble(Op1C);
H A DValueTracking.cpp3075 if (Constant *Op1C = dyn_cast<Constant>(Op1))
3077 if (Op1C->getType()->getPrimitiveSizeInBits() <
3079 Op1C = ConstantExpr::getZExt(Op1C, MulC->getType());
3080 if (Op1C->getType()->getPrimitiveSizeInBits() >
3082 MulC = ConstantExpr::getZExt(MulC, Op1C->getType());
3085 Multiple = ConstantExpr::getMul(MulC, Op1C);
H A DInstructionSimplify.cpp947 auto *Op1C = dyn_cast<Constant>(Op1);
949 if (Op1C && VTy) {
952 Constant *Elt = Op1C->getAggregateElement(i);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp1397 if (const ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
1398 if (unsigned CompareImmOpc = X86ChooseCmpImmediateOpcode(VT, Op1C)) {
1401 .addImm(Op1C->getSExtValue());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp504 auto *Op1C = dyn_cast<ConstantSDNode>(Op.getOperand(1)); local
505 if (!Op1C)
509 const APInt &C = Op1C->getAPIntValue();

Completed in 180 milliseconds