Lines Matching refs:APInt
20 SlowDynamicAPInt::SlowDynamicAPInt(const APInt &Val) : Val(Val) {} in SlowDynamicAPInt()
117 static unsigned getMaxWidth(const APInt &A, const APInt &B) { in getMaxWidth()
159 APInt runOpWithExpandOnOverflow( in runOpWithExpandOnOverflow()
160 const APInt &A, const APInt &B, in runOpWithExpandOnOverflow() argument
161 function_ref<APInt(const APInt &, const APInt &, bool &Overflow)> Op) { in runOpWithExpandOnOverflow() argument
164 APInt Ret = Op(A.sext(Width), B.sext(Width), Overflow); in runOpWithExpandOnOverflow()
176 runOpWithExpandOnOverflow(Val, O.Val, std::mem_fn(&APInt::sadd_ov))); in operator +()
180 runOpWithExpandOnOverflow(Val, O.Val, std::mem_fn(&APInt::ssub_ov))); in operator -()
184 runOpWithExpandOnOverflow(Val, O.Val, std::mem_fn(&APInt::smul_ov))); in operator *()
188 runOpWithExpandOnOverflow(Val, O.Val, std::mem_fn(&APInt::sdiv_ov))); in operator /()
199 LHS.Val.sext(Width), RHS.Val.sext(Width), APInt::Rounding::UP)); in ceilDiv()
207 LHS.Val.sext(Width), RHS.Val.sext(Width), APInt::Rounding::DOWN)); in floorDiv()
242 APInt Ret = Val.sext(2 * Val.getBitWidth()); in operator -()