Lines Matching refs:C0
1268 Constant *C0 = ConstantExpr::getIntegerCast(CE0->getOperand(0),
1272 return ConstantFoldCompareInstOperands(Predicate, C0, C1, DL, TLI);
2376 const APInt *C0, *C1;
2377 if (!getConstIntOrUndef(Operands[0], C0) ||
2391 if (!C0 || !C1) {
2402 if (!C0 || !C1)
2410 Res = C0->sadd_ov(*C1, Overflow);
2413 Res = C0->uadd_ov(*C1, Overflow);
2416 Res = C0->ssub_ov(*C1, Overflow);
2419 Res = C0->usub_ov(*C1, Overflow);
2422 Res = C0->smul_ov(*C1, Overflow);
2425 Res = C0->umul_ov(*C1, Overflow);
2436 if (!C0 && !C1)
2438 if (!C0 || !C1)
2441 return ConstantInt::get(Ty, C0->uadd_sat(*C1));
2443 return ConstantInt::get(Ty, C0->sadd_sat(*C1));
2446 if (!C0 && !C1)
2448 if (!C0 || !C1)
2451 return ConstantInt::get(Ty, C0->usub_sat(*C1));
2453 return ConstantInt::get(Ty, C0->ssub_sat(*C1));
2459 if (C1->isOneValue() && (!C0 || C0->isNullValue()))
2461 if (!C0)
2464 return ConstantInt::get(Ty, C0->countTrailingZeros());
2466 return ConstantInt::get(Ty, C0->countLeadingZeros());
2654 const APInt *C0, *C1, *C2;
2655 if (!getConstIntOrUndef(Operands[0], C0) ||
2663 if (!C0 && !C1)
2673 // (C0 << ShlAmt) | (C1 >> LshrAmt)
2676 if (!C0)
2679 return ConstantInt::get(Ty, C0->shl(ShlAmt));
2680 return ConstantInt::get(Ty, C0->shl(ShlAmt) | C1->lshr(LshrAmt));