Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Op1

540 /// SymbolicallyEvaluateBinop - One of Op0/Op1 is a constant expression.
545 Constant *Op1, const DataLayout *DL){
558 ComputeMaskedBits(Op1, KnownZero1, KnownOne1, DL);
564 // All the bits of Op1 that the 'and' could be masking are already zero.
565 return Op1;
584 if (IsConstantOffsetFromGlobal(Op1, GV2, Offs2, *DL) &&
1476 if (ConstantFP *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
1481 Op1V = Op1->getValueAPF().convertToFloat();
1483 Op1V = Op1->getValueAPF().convertToDouble();
1486 APFloat APF = Op1->getValueAPF();
1492 if (Op2->getType() != Op1->getType())
1535 if (ConstantInt *Op1 = dyn_cast<ConstantInt>(Operands[0])) {
1550 Res = Op1->getValue().sadd_ov(Op2->getValue(), Overflow);
1553 Res = Op1->getValue().uadd_ov(Op2->getValue(), Overflow);
1556 Res = Op1->getValue().ssub_ov(Op2->getValue(), Overflow);
1559 Res = Op1->getValue().usub_ov(Op2->getValue(), Overflow);
1562 Res = Op1->getValue().smul_ov(Op2->getValue(), Overflow);
1565 Res = Op1->getValue().umul_ov(Op2->getValue(), Overflow);
1575 if (Op2->isOne() && Op1->isZero()) // cttz(0, 1) is undef.
1577 return ConstantInt::get(Ty, Op1->getValue().countTrailingZeros());
1579 if (Op2->isOne() && Op1->isZero()) // ctlz(0, 1) is undef.
1581 return ConstantInt::get(Ty, Op1->getValue().countLeadingZeros());