Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Op1

541 /// SymbolicallyEvaluateBinop - One of Op0/Op1 is a constant expression.
546 Constant *Op1, const TargetData *TD){
561 if (IsConstantOffsetFromGlobal(Op1, GV2, Offs2, *TD) &&
1383 if (ConstantFP *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
1387 (double)Op1->getValueAPF().convertToFloat() :
1388 Op1->getValueAPF().convertToDouble();
1390 if (Op2->getType() != Op1->getType())
1421 if (ConstantInt *Op1 = dyn_cast<ConstantInt>(Operands[0])) {
1436 Res = Op1->getValue().sadd_ov(Op2->getValue(), Overflow);
1439 Res = Op1->getValue().uadd_ov(Op2->getValue(), Overflow);
1442 Res = Op1->getValue().ssub_ov(Op2->getValue(), Overflow);
1445 Res = Op1->getValue().usub_ov(Op2->getValue(), Overflow);
1448 Res = Op1->getValue().smul_ov(Op2->getValue(), Overflow);
1451 Res = Op1->getValue().umul_ov(Op2->getValue(), Overflow);
1462 // Op1 == 0.
1463 return ConstantInt::get(Ty, Op1->getValue().countTrailingZeros());
1466 // Op1 == 0.
1467 return ConstantInt::get(Ty, Op1->getValue().countLeadingZeros());