Lines Matching defs:TruncTy
2549 llvm::Type *TruncTy = ResultTruncRegTypes[i];
2563 if (ResultRegTypes[i] != TruncTy) {
2565 // Truncate the integer result to the right size, note that TruncTy can be
2567 if (TruncTy->isFloatingPointTy())
2568 Tmp = Builder.CreateFPTrunc(Tmp, TruncTy);
2569 else if (TruncTy->isPointerTy() && Tmp->getType()->isIntegerTy()) {
2570 uint64_t ResSize = CGM.getDataLayout().getTypeSizeInBits(TruncTy);
2573 Tmp = Builder.CreateIntToPtr(Tmp, TruncTy);
2574 } else if (Tmp->getType()->isPointerTy() && TruncTy->isIntegerTy()) {
2579 Tmp = Builder.CreateTrunc(Tmp, TruncTy);
2580 } else if (Tmp->getType()->isIntegerTy() && TruncTy->isIntegerTy()) {
2581 Tmp = Builder.CreateZExtOrTrunc(Tmp, TruncTy);
2582 } else if (Tmp->getType()->isVectorTy() || TruncTy->isVectorTy()) {
2583 Tmp = Builder.CreateBitCast(Tmp, TruncTy);
2593 if (CGF.getTargetHooks().isScalarizableAsmOperand(CGF, TruncTy)) {