Lines Matching defs:TruncTy
2617 llvm::Type *TruncTy = ResultTruncRegTypes[i];
2631 if (ResultRegTypes[i] != TruncTy) {
2633 // Truncate the integer result to the right size, note that TruncTy can be
2635 if (TruncTy->isFloatingPointTy())
2636 Tmp = Builder.CreateFPTrunc(Tmp, TruncTy);
2637 else if (TruncTy->isPointerTy() && Tmp->getType()->isIntegerTy()) {
2638 uint64_t ResSize = CGM.getDataLayout().getTypeSizeInBits(TruncTy);
2641 Tmp = Builder.CreateIntToPtr(Tmp, TruncTy);
2642 } else if (Tmp->getType()->isPointerTy() && TruncTy->isIntegerTy()) {
2647 Tmp = Builder.CreateTrunc(Tmp, TruncTy);
2648 } else if (Tmp->getType()->isIntegerTy() && TruncTy->isIntegerTy()) {
2649 Tmp = Builder.CreateZExtOrTrunc(Tmp, TruncTy);
2650 } else if (Tmp->getType()->isVectorTy() || TruncTy->isVectorTy()) {
2651 Tmp = Builder.CreateBitCast(Tmp, TruncTy);
2661 if (CGF.getTargetHooks().isScalarizableAsmOperand(CGF, TruncTy)) {