Home
last modified time | relevance | path

Searched refs:SrcBitSize (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/VMCore/
DVerifier.cpp851 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() local
858 Assert1(SrcBitSize > DestBitSize,"DestTy too big for Trunc", &I); in visitTruncInst()
873 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() local
876 Assert1(SrcBitSize < DestBitSize,"Type too small for ZExt", &I); in visitZExtInst()
887 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() local
894 Assert1(SrcBitSize < DestBitSize,"Type too small for SExt", &I); in visitSExtInst()
904 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPTruncInst() local
911 Assert1(SrcBitSize > DestBitSize,"DestTy too big for FPTrunc", &I); in visitFPTruncInst()
922 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPExtInst() local
929 Assert1(SrcBitSize < DestBitSize,"DestTy too small for FPExt", &I); in visitFPExtInst()
[all …]
DConstantFold.cpp293 unsigned SrcBitSize = in ExtractConstantBytes() local
297 if (ByteStart*8 >= SrcBitSize) in ExtractConstantBytes()
302 if (ByteStart == 0 && ByteSize*8 == SrcBitSize) in ExtractConstantBytes()
307 if ((SrcBitSize&7) == 0 && (ByteStart+ByteSize)*8 <= SrcBitSize) in ExtractConstantBytes()
312 if ((ByteStart+ByteSize)*8 < SrcBitSize) { in ExtractConstantBytes()
313 assert((SrcBitSize&7) && "Shouldn't get byte sized case here"); in ExtractConstantBytes()
DInstructions.cpp2620 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in castIsValid() local
2636 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()
2639 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
2642 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
2645 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()
2648 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1074 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt() local
1079 if (ComputeNumSignBits(Res) > DestBitSize - SrcBitSize) in visitSExt()
1083 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); in visitSExt()
1092 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt() local
1096 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); in visitSExt()
/external/llvm/lib/Analysis/
DConstantFolding.cpp163 unsigned SrcBitSize = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast() local
168 unsigned ShiftAmt = isLittleEndian ? 0 : SrcBitSize*(Ratio-1); in FoldBitCast()
180 ShiftAmt += isLittleEndian ? SrcBitSize : -SrcBitSize; in FoldBitCast()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp5472 unsigned SrcBitSize = SrcEltVT.getSizeInBits(); in ConstantFoldBITCASTofBUILD_VECTOR() local
5477 if (SrcBitSize == DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
5529 if (SrcBitSize < DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
5530 unsigned NumInputsPerOutput = DstBitSize/SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
5540 NewBits <<= SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
5546 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
5563 unsigned NumOutputsPerInput = SrcBitSize/DstBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
5576 getAPIntValue().zextOrTrunc(SrcBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
5581 if (isS2V && i == 0 && j == 0 && ThisVal.zext(SrcBitSize) == OpVal) in ConstantFoldBITCASTofBUILD_VECTOR()