Lines Matching defs:ValTy
1404 /// Return true if \param ValTy is a type that should be casted to integer
1409 static bool shouldCastToInt(llvm::Type *ValTy, bool CmpXchg) {
1410 if (ValTy->isFloatingPointTy())
1411 return ValTy->isX86_FP80Ty() || CmpXchg;
1412 return !ValTy->isIntegerTy() && !ValTy->isPointerTy();
1429 auto *ValTy = AsValue
1432 if (!shouldCastToInt(ValTy, CmpXchg)) {
1433 assert((!ValTy->isIntegerTy() || Val->getType() == ValTy) &&
1437 if (llvm::CastInst::isBitCastable(Val->getType(), ValTy))
1438 return RValue::get(CGF.Builder.CreateBitCast(Val, ValTy));