Lines Matching refs:AP2

1134                                                  const APInt &AP2) {  in foldICmpShrConstConst()  argument
1144 if (AP2.isNullValue()) in foldICmpShrConstConst()
1149 if (AP2.isAllOnesValue()) in foldICmpShrConstConst()
1151 if (AP2.isNegative() != AP1.isNegative()) in foldICmpShrConstConst()
1153 if (AP2.sgt(AP1)) in foldICmpShrConstConst()
1160 ConstantInt::get(A->getType(), AP2.logBase2())); in foldICmpShrConstConst()
1162 if (AP1 == AP2) in foldICmpShrConstConst()
1167 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in foldICmpShrConstConst()
1169 Shift = AP1.countLeadingZeros() - AP2.countLeadingZeros(); in foldICmpShrConstConst()
1172 if (IsAShr && AP1 == AP2.ashr(Shift)) { in foldICmpShrConstConst()
1175 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
1178 } else if (AP1 == AP2.lshr(Shift)) { in foldICmpShrConstConst()
1193 const APInt &AP2) { in foldICmpShlConstConst() argument
1203 if (AP2.isNullValue()) in foldICmpShlConstConst()
1206 unsigned AP2TrailingZeros = AP2.countTrailingZeros(); in foldICmpShlConstConst()
1211 ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros)); in foldICmpShlConstConst()
1213 if (AP1 == AP2) in foldICmpShlConstConst()
1219 if (Shift > 0 && AP2.shl(Shift) == AP1) in foldICmpShlConstConst()
3257 const APInt &AP2 = C2->getValue(); in foldICmpBinOp() local
3258 if (AP1.isNegative() == AP2.isNegative()) { in foldICmpBinOp()
3262 ConstantInt *C3 = Builder.getInt(AP1 - AP2); in foldICmpBinOp()
3266 ConstantInt *C3 = Builder.getInt(AP2 - AP1); in foldICmpBinOp()