Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:ConstantInt

35   ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo));
45 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded));
118 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
355 isa<ConstantInt>(I->getOperand(1)) &&
356 isa<ConstantInt>(LHSInst->getOperand(1)) &&
358 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1));
359 ConstantIntConstantInt>(I->getOperand(1));
363 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue());
368 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue());
497 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) {
588 if (ConstantInt *C0 = dyn_cast<ConstantInt>(I->getOperand(0))) {
597 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) {
599 Value *VarX; ConstantInt *C1;
632 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) {
673 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) {
717 if (ConstantInt *Rem = dyn_cast<ConstantInt>(I->getOperand(1))) {
801 ConstantInt::get(I->getType(), InputBit-ResultBit));
804 ConstantInt::get(I->getType(), ResultBit-InputBit));
848 const APInt &ShlOp1 = cast<ConstantInt>(Shl->getOperand(1))->getValue();
849 const APInt &ShrOp1 = cast<ConstantInt>(Shr->getOperand(1))->getValue();
890 Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt);
896 Constant *Amt = ConstantInt::get(VarX->getType(), ShrAmt - ShlAmt);
1002 ConstantInt *Idx = dyn_cast<ConstantInt>(I->getOperand(2));
1089 Elts.push_back(ConstantInt::get(Type::getInt32Ty(I->getContext()),
1249 ConstantInt::get(Type::getInt32Ty(I->getContext()), 0U)), *II);
1251 ConstantInt::get(Type::getInt32Ty(I->getContext()), 0U)), *II);
1270 ConstantInt::get(Type::getInt32Ty(I->getContext()), 0U, false),