• Home
  • Raw
  • Download

Lines Matching refs:CI1

1119   if (ConstantInt *CI1 = dyn_cast<ConstantInt>(C1)) {  in ConstantFoldBinaryInstruction()  local
1121 const APInt &C1V = CI1->getValue(); in ConstantFoldBinaryInstruction()
1127 return ConstantInt::get(CI1->getContext(), C1V + C2V); in ConstantFoldBinaryInstruction()
1129 return ConstantInt::get(CI1->getContext(), C1V - C2V); in ConstantFoldBinaryInstruction()
1131 return ConstantInt::get(CI1->getContext(), C1V * C2V); in ConstantFoldBinaryInstruction()
1134 return ConstantInt::get(CI1->getContext(), C1V.udiv(C2V)); in ConstantFoldBinaryInstruction()
1138 return UndefValue::get(CI1->getType()); // MIN_INT / -1 -> undef in ConstantFoldBinaryInstruction()
1139 return ConstantInt::get(CI1->getContext(), C1V.sdiv(C2V)); in ConstantFoldBinaryInstruction()
1142 return ConstantInt::get(CI1->getContext(), C1V.urem(C2V)); in ConstantFoldBinaryInstruction()
1146 return UndefValue::get(CI1->getType()); // MIN_INT % -1 -> undef in ConstantFoldBinaryInstruction()
1147 return ConstantInt::get(CI1->getContext(), C1V.srem(C2V)); in ConstantFoldBinaryInstruction()
1149 return ConstantInt::get(CI1->getContext(), C1V & C2V); in ConstantFoldBinaryInstruction()
1151 return ConstantInt::get(CI1->getContext(), C1V | C2V); in ConstantFoldBinaryInstruction()
1153 return ConstantInt::get(CI1->getContext(), C1V ^ C2V); in ConstantFoldBinaryInstruction()
1156 return ConstantInt::get(CI1->getContext(), C1V.shl(C2V)); in ConstantFoldBinaryInstruction()
1160 return ConstantInt::get(CI1->getContext(), C1V.lshr(C2V)); in ConstantFoldBinaryInstruction()
1164 return ConstantInt::get(CI1->getContext(), C1V.ashr(C2V)); in ConstantFoldBinaryInstruction()
1177 if (CI1->equalsInt(0)) return C1; in ConstantFoldBinaryInstruction()