Lines Matching defs:ValTy
1438 /// Return true if \param ValTy is a type that should be casted to integer
1443 static bool shouldCastToInt(llvm::Type *ValTy, bool CmpXchg) {
1444 if (ValTy->isFloatingPointTy())
1445 return ValTy->isX86_FP80Ty() || CmpXchg;
1446 return !ValTy->isIntegerTy() && !ValTy->isPointerTy();
1463 auto *ValTy = AsValue
1466 if (!shouldCastToInt(ValTy, CmpXchg)) {
1467 assert((!ValTy->isIntegerTy() || Val->getType() == ValTy) &&
1471 if (llvm::CastInst::isBitCastable(Val->getType(), ValTy))
1472 return RValue::get(CGF.Builder.CreateBitCast(Val, ValTy));