Searched refs:DstBitSize (Results 1 – 3 of 3) sorted by relevance
194 unsigned DstBitSize = DstEltTy->getPrimitiveSizeInBits(); in FoldBitCast() local202 unsigned ShiftAmt = isLittleEndian ? 0 : DstBitSize*(Ratio-1); in FoldBitCast()208 ShiftAmt += isLittleEndian ? DstBitSize : -DstBitSize; in FoldBitCast()
2643 unsigned DstBitSize = DstTy->getScalarSizeInBits(); in castIsValid() local2658 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()2661 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()2664 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()2667 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()2670 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
5672 unsigned DstBitSize = DstEltVT.getSizeInBits(); in ConstantFoldBITCASTofBUILD_VECTOR() local5676 if (SrcBitSize == DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()5728 if (SrcBitSize < DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()5729 unsigned NumInputsPerOutput = DstBitSize/SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()5735 APInt NewBits = APInt(DstBitSize, 0); in ConstantFoldBITCASTofBUILD_VECTOR()5745 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()5762 unsigned NumOutputsPerInput = SrcBitSize/DstBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()5778 APInt ThisVal = OpVal.trunc(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()5784 OpVal = OpVal.lshr(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()