Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:TruncTy

2123       llvm::Type *TruncTy = ResultTruncRegTypes[i];
2125 // Truncate the integer result to the right size, note that TruncTy can be
2127 if (TruncTy->isFloatingPointTy())
2128 Tmp = Builder.CreateFPTrunc(Tmp, TruncTy);
2129 else if (TruncTy->isPointerTy() && Tmp->getType()->isIntegerTy()) {
2130 uint64_t ResSize = CGM.getDataLayout().getTypeSizeInBits(TruncTy);
2133 Tmp = Builder.CreateIntToPtr(Tmp, TruncTy);
2134 } else if (Tmp->getType()->isPointerTy() && TruncTy->isIntegerTy()) {
2138 Tmp = Builder.CreateTrunc(Tmp, TruncTy);
2139 } else if (TruncTy->isIntegerTy()) {
2140 Tmp = Builder.CreateTrunc(Tmp, TruncTy);
2141 } else if (TruncTy->isVectorTy()) {
2142 Tmp = Builder.CreateBitCast(Tmp, TruncTy);