Home
last modified time | relevance | path

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

/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1504 unsigned SrcBitSize; in executeBitCastInst() local
1511 SrcBitSize = SrcTy->getScalarSizeInBits(); in executeBitCastInst()
1517 SrcBitSize = SrcTy->getPrimitiveSizeInBits(); in executeBitCastInst()
1525 DstNum = (SrcNum * SrcBitSize) / DstBitSize; in executeBitCastInst()
1532 if (SrcNum * SrcBitSize != DstNum * DstBitSize) in executeBitCastInst()
1563 unsigned ShiftAmt = isLittleEndian ? 0 : SrcBitSize * (Ratio - 1); in executeBitCastInst()
1566 Tmp = Tmp.zext(SrcBitSize); in executeBitCastInst()
1570 ShiftAmt += isLittleEndian ? SrcBitSize : -SrcBitSize; in executeBitCastInst()
1582 Elt.IntVal = Elt.IntVal.zext(SrcBitSize); in executeBitCastInst()
1586 if (DstBitSize < SrcBitSize) in executeBitCastInst()
/external/llvm/lib/IR/
DConstantFold.cpp311 unsigned SrcBitSize = in ExtractConstantBytes() local
315 if (ByteStart*8 >= SrcBitSize) in ExtractConstantBytes()
320 if (ByteStart == 0 && ByteSize*8 == SrcBitSize) in ExtractConstantBytes()
325 if ((SrcBitSize&7) == 0 && (ByteStart+ByteSize)*8 <= SrcBitSize) in ExtractConstantBytes()
330 if ((ByteStart+ByteSize)*8 < SrcBitSize) { in ExtractConstantBytes()
331 assert((SrcBitSize&7) && "Shouldn't get byte sized case here"); in ExtractConstantBytes()
DVerifier.cpp2029 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() local
2036 Assert(SrcBitSize > DestBitSize, "DestTy too big for Trunc", &I); in visitTruncInst()
2051 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() local
2054 Assert(SrcBitSize < DestBitSize, "Type too small for ZExt", &I); in visitZExtInst()
2065 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() local
2072 Assert(SrcBitSize < DestBitSize, "Type too small for SExt", &I); in visitSExtInst()
2082 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPTruncInst() local
2089 Assert(SrcBitSize > DestBitSize, "DestTy too big for FPTrunc", &I); in visitFPTruncInst()
2100 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPExtInst() local
2107 Assert(SrcBitSize < DestBitSize, "DestTy too small for FPExt", &I); in visitFPExtInst()
DInstructions.cpp3019 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in castIsValid() local
3035 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()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1155 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt() local
1160 if (ComputeNumSignBits(Res, 0, &CI) > DestBitSize - SrcBitSize) in visitSExt()
1164 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); in visitSExt()
1173 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt() local
1177 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); in visitSExt()
/external/llvm/lib/Analysis/
DConstantFolding.cpp171 unsigned SrcBitSize = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast() local
176 unsigned ShiftAmt = isLittleEndian ? 0 : SrcBitSize*(Ratio-1); in FoldBitCast()
188 ShiftAmt += isLittleEndian ? SrcBitSize : -SrcBitSize; in FoldBitCast()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp7515 unsigned SrcBitSize = SrcEltVT.getSizeInBits(); in ConstantFoldBITCASTofBUILD_VECTOR() local
7520 if (SrcBitSize == DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
7570 if (SrcBitSize < DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
7571 unsigned NumInputsPerOutput = DstBitSize/SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
7581 NewBits <<= SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
7587 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
7602 unsigned NumOutputsPerInput = SrcBitSize/DstBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
7614 getAPIntValue().zextOrTrunc(SrcBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()