Searched refs:DstBitSize (Results 1 – 4 of 4) sorted by relevance
1505 unsigned DstBitSize; in executeBitCastInst() local1524 DstBitSize = DstTy->getScalarSizeInBits(); in executeBitCastInst()1525 DstNum = (SrcNum * SrcBitSize) / DstBitSize; in executeBitCastInst()1528 DstBitSize = DstTy->getPrimitiveSizeInBits(); in executeBitCastInst()1532 if (SrcNum * SrcBitSize != DstNum * DstBitSize) in executeBitCastInst()1562 Elt.IntVal = Elt.IntVal.zext(DstBitSize); in executeBitCastInst()1568 Tmp = Tmp.zext(DstBitSize); in executeBitCastInst()1579 unsigned ShiftAmt = isLittleEndian ? 0 : DstBitSize * (Ratio - 1); in executeBitCastInst()1586 if (DstBitSize < SrcBitSize) in executeBitCastInst()1587 Elt.IntVal = Elt.IntVal.trunc(DstBitSize); in executeBitCastInst()[all …]
200 unsigned DstBitSize = DL.getTypeSizeInBits(DstEltTy); in FoldBitCast() local208 unsigned ShiftAmt = isLittleEndian ? 0 : DstBitSize*(Ratio-1); in FoldBitCast()214 ShiftAmt += isLittleEndian ? DstBitSize : -DstBitSize; in FoldBitCast()219 IntegerType *DstIntTy = Type::getIntNTy(C->getContext(), DstBitSize); in FoldBitCast()
3020 unsigned DstBitSize = DstTy->getScalarSizeInBits(); in castIsValid() local3035 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()3038 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()3041 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()3044 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()3047 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
7516 unsigned DstBitSize = DstEltVT.getSizeInBits(); in ConstantFoldBITCASTofBUILD_VECTOR() local7520 if (SrcBitSize == DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()7570 if (SrcBitSize < DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()7571 unsigned NumInputsPerOutput = DstBitSize/SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()7577 APInt NewBits = APInt(DstBitSize, 0); in ConstantFoldBITCASTofBUILD_VECTOR()7587 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()7602 unsigned NumOutputsPerInput = SrcBitSize/DstBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()7617 APInt ThisVal = OpVal.trunc(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()7619 OpVal = OpVal.lshr(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()