Lines Matching refs:IntVal
205 Result.IntVal = Result.IntVal.trunc(BitWidth); in GetConstantValue()
214 Result.IntVal = Result.IntVal.zext(BitWidth); in GetConstantValue()
223 Result.IntVal = Result.IntVal.sext(BitWidth); in GetConstantValue()
243 static_cast<float>(Result.IntVal.roundToDouble()); in GetConstantValue()
245 Result.DoubleVal = Result.IntVal.roundToDouble(); in GetConstantValue()
249 apf.convertFromAPInt(Result.IntVal, in GetConstantValue()
252 Result.IntVal = apf.bitcastToAPInt(); in GetConstantValue()
260 static_cast<float>(Result.IntVal.signedRoundToDouble()); in GetConstantValue()
262 Result.DoubleVal = Result.IntVal.signedRoundToDouble(); in GetConstantValue()
266 apf.convertFromAPInt(Result.IntVal, in GetConstantValue()
269 Result.IntVal = apf.bitcastToAPInt(); in GetConstantValue()
281 Result.IntVal = in GetConstantValue()
284 Result.IntVal = in GetConstantValue()
288 llvm::APFloat apf = llvm::APFloat(Result.IntVal); in GetConstantValue()
296 Result.IntVal = V; // endian? in GetConstantValue()
304 Result.IntVal = llvm::APInt(PtrWidth, uintptr_t in GetConstantValue()
313 if (PtrWidth != Result.IntVal.getBitWidth()) in GetConstantValue()
314 Result.IntVal = Result.IntVal.zextOrTrunc(PtrWidth); in GetConstantValue()
315 bccAssert(Result.IntVal.getBitWidth() <= 64 && "Bad pointer width"); in GetConstantValue()
319 static_cast<uintptr_t>(Result.IntVal.getZExtValue())); in GetConstantValue()
331 Result.FloatVal = Result.IntVal.bitsToFloat(); in GetConstantValue()
333 Result.DoubleVal = Result.IntVal.bitsToDouble(); in GetConstantValue()
338 Result.IntVal.floatToBits(Result.FloatVal); in GetConstantValue()
343 Result.IntVal.doubleToBits(Result.DoubleVal); in GetConstantValue()
377 Result.IntVal = LHS.IntVal + RHS.IntVal; in GetConstantValue()
381 Result.IntVal = LHS.IntVal - RHS.IntVal; in GetConstantValue()
385 Result.IntVal = LHS.IntVal * RHS.IntVal; in GetConstantValue()
389 Result.IntVal = LHS.IntVal.udiv(RHS.IntVal); in GetConstantValue()
393 Result.IntVal = LHS.IntVal.sdiv(RHS.IntVal); in GetConstantValue()
397 Result.IntVal = LHS.IntVal.urem(RHS.IntVal); in GetConstantValue()
401 Result.IntVal = LHS.IntVal.srem(RHS.IntVal); in GetConstantValue()
405 Result.IntVal = LHS.IntVal & RHS.IntVal; in GetConstantValue()
409 Result.IntVal = LHS.IntVal | RHS.IntVal; in GetConstantValue()
413 Result.IntVal = LHS.IntVal ^ RHS.IntVal; in GetConstantValue()
481 llvm::APFloat apfLHS = llvm::APFloat(LHS.IntVal); in GetConstantValue()
484 apfLHS.add(llvm::APFloat(RHS.IntVal), in GetConstantValue()
489 apfLHS.subtract(llvm::APFloat(RHS.IntVal), in GetConstantValue()
494 apfLHS.multiply(llvm::APFloat(RHS.IntVal), in GetConstantValue()
499 apfLHS.divide(llvm::APFloat(RHS.IntVal), in GetConstantValue()
504 apfLHS.mod(llvm::APFloat(RHS.IntVal), in GetConstantValue()
512 Result.IntVal = apfLHS.bitcastToAPInt(); in GetConstantValue()
546 Result.IntVal = in GetConstantValue()
551 Result.IntVal = in GetConstantValue()
603 const llvm::APInt &IntVal = Val.IntVal; in StoreValueToMemory() local
604 bccAssert(((IntVal.getBitWidth() + 7) / 8 >= StoreBytes) && in StoreValueToMemory()
608 reinterpret_cast<const uint8_t*>(IntVal.getRawData()); in StoreValueToMemory()
643 memcpy(Addr, Val.IntVal.getRawData(), 10); in StoreValueToMemory()