Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/VMCore/
DVerifier.cpp858 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() local
865 Assert1(SrcBitSize > DestBitSize,"DestTy too big for Trunc", &I); in visitTruncInst()
880 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() local
883 Assert1(SrcBitSize < DestBitSize,"Type too small for ZExt", &I); in visitZExtInst()
894 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() local
901 Assert1(SrcBitSize < DestBitSize,"Type too small for SExt", &I); in visitSExtInst()
911 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPTruncInst() local
918 Assert1(SrcBitSize > DestBitSize,"DestTy too big for FPTrunc", &I); in visitFPTruncInst()
929 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPExtInst() local
936 Assert1(SrcBitSize < DestBitSize,"DestTy too small for FPExt", &I); in visitFPExtInst()
[all …]
DConstantFold.cpp294 unsigned SrcBitSize = in ExtractConstantBytes() local
298 if (ByteStart*8 >= SrcBitSize) in ExtractConstantBytes()
303 if (ByteStart == 0 && ByteSize*8 == SrcBitSize) in ExtractConstantBytes()
308 if ((SrcBitSize&7) == 0 && (ByteStart+ByteSize)*8 <= SrcBitSize) in ExtractConstantBytes()
313 if ((ByteStart+ByteSize)*8 < SrcBitSize) { in ExtractConstantBytes()
314 assert((SrcBitSize&7) && "Shouldn't get byte sized case here"); in ExtractConstantBytes()
DInstructions.cpp2610 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in castIsValid() local
2626 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()
2629 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
2632 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
2635 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()
2638 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1503 unsigned SrcBitSize; in executeBitCastInst() local
1510 SrcBitSize = SrcTy->getScalarSizeInBits(); in executeBitCastInst()
1516 SrcBitSize = SrcTy->getPrimitiveSizeInBits(); in executeBitCastInst()
1524 DstNum = (SrcNum * SrcBitSize) / DstBitSize; in executeBitCastInst()
1531 if (SrcNum * SrcBitSize != DstNum * DstBitSize) in executeBitCastInst()
1562 unsigned ShiftAmt = isLittleEndian ? 0 : SrcBitSize * (Ratio - 1); in executeBitCastInst()
1565 Tmp = Tmp.zext(SrcBitSize); in executeBitCastInst()
1569 ShiftAmt += isLittleEndian ? SrcBitSize : -SrcBitSize; in executeBitCastInst()
1581 Elt.IntVal = Elt.IntVal.zext(SrcBitSize); in executeBitCastInst()
1585 if (DstBitSize < SrcBitSize) in executeBitCastInst()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantFold.cpp312 unsigned SrcBitSize = in ExtractConstantBytes() local
316 if (ByteStart*8 >= SrcBitSize) in ExtractConstantBytes()
321 if (ByteStart == 0 && ByteSize*8 == SrcBitSize) in ExtractConstantBytes()
326 if ((SrcBitSize&7) == 0 && (ByteStart+ByteSize)*8 <= SrcBitSize) in ExtractConstantBytes()
331 if ((ByteStart+ByteSize)*8 < SrcBitSize) { in ExtractConstantBytes()
332 assert((SrcBitSize&7) && "Shouldn't get byte sized case here"); in ExtractConstantBytes()
DVerifier.cpp2425 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() local
2432 Assert(SrcBitSize > DestBitSize, "DestTy too big for Trunc", &I); in visitTruncInst()
2447 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() local
2450 Assert(SrcBitSize < DestBitSize, "Type too small for ZExt", &I); in visitZExtInst()
2461 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() local
2468 Assert(SrcBitSize < DestBitSize, "Type too small for SExt", &I); in visitSExtInst()
2478 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPTruncInst() local
2485 Assert(SrcBitSize > DestBitSize, "DestTy too big for FPTrunc", &I); in visitFPTruncInst()
2496 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPExtInst() local
2503 Assert(SrcBitSize < DestBitSize, "DestTy too small for FPExt", &I); in visitFPExtInst()
DInstructions.cpp2911 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in castIsValid() local
2927 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()
2930 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
2933 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
2936 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()
2939 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
/external/llvm/lib/IR/
DConstantFold.cpp312 unsigned SrcBitSize = in ExtractConstantBytes() local
316 if (ByteStart*8 >= SrcBitSize) in ExtractConstantBytes()
321 if (ByteStart == 0 && ByteSize*8 == SrcBitSize) in ExtractConstantBytes()
326 if ((SrcBitSize&7) == 0 && (ByteStart+ByteSize)*8 <= SrcBitSize) in ExtractConstantBytes()
331 if ((ByteStart+ByteSize)*8 < SrcBitSize) { in ExtractConstantBytes()
332 assert((SrcBitSize&7) && "Shouldn't get byte sized case here"); in ExtractConstantBytes()
DVerifier.cpp2230 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() local
2237 Assert(SrcBitSize > DestBitSize, "DestTy too big for Trunc", &I); in visitTruncInst()
2252 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() local
2255 Assert(SrcBitSize < DestBitSize, "Type too small for ZExt", &I); in visitZExtInst()
2266 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() local
2273 Assert(SrcBitSize < DestBitSize, "Type too small for SExt", &I); in visitSExtInst()
2283 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPTruncInst() local
2290 Assert(SrcBitSize > DestBitSize, "DestTy too big for FPTrunc", &I); in visitFPTruncInst()
2301 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPExtInst() local
2308 Assert(SrcBitSize < DestBitSize, "DestTy too small for FPExt", &I); in visitFPExtInst()
DInstructions.cpp3094 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in castIsValid() local
3110 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()
3113 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
3116 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
3119 SrcLength == DstLength && SrcBitSize > DstBitSize; in castIsValid()
3122 SrcLength == DstLength && SrcBitSize < DstBitSize; in castIsValid()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp127 unsigned SrcBitSize = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast() local
132 unsigned ShiftAmt = isLittleEndian ? 0 : SrcBitSize*(Ratio-1); in FoldBitCast()
144 ShiftAmt += isLittleEndian ? SrcBitSize : -SrcBitSize; in FoldBitCast()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1081 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt() local
1086 if (ComputeNumSignBits(Res) > DestBitSize - SrcBitSize) in visitSExt()
1090 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); in visitSExt()
1099 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt() local
1103 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); in visitSExt()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1360 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt() local
1365 if (ComputeNumSignBits(Res, 0, &CI) > DestBitSize - SrcBitSize) in visitSExt()
1369 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); in visitSExt()
1379 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt() local
1381 Constant *ShAmt = ConstantInt::get(DestTy, DestBitSize - SrcBitSize); in visitSExt()
/external/llvm/lib/Analysis/
DConstantFolding.cpp176 unsigned SrcBitSize = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast() local
181 unsigned ShiftAmt = isLittleEndian ? 0 : SrcBitSize*(Ratio-1); in FoldBitCast()
193 ShiftAmt += isLittleEndian ? SrcBitSize : -SrcBitSize; in FoldBitCast()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DConstantFolding.cpp204 unsigned SrcBitSize = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast() local
209 unsigned ShiftAmt = isLittleEndian ? 0 : SrcBitSize*(Ratio-1); in FoldBitCast()
225 ShiftAmt += isLittleEndian ? SrcBitSize : -SrcBitSize; in FoldBitCast()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp5105 unsigned SrcBitSize = SrcEltVT.getSizeInBits(); in ConstantFoldBITCASTofBUILD_VECTOR() local
5110 if (SrcBitSize == DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
5162 if (SrcBitSize < DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
5163 unsigned NumInputsPerOutput = DstBitSize/SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
5173 NewBits <<= SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
5179 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
5196 unsigned NumOutputsPerInput = SrcBitSize/DstBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
5209 getAPIntValue().zextOrTrunc(SrcBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
5214 if (isS2V && i == 0 && j == 0 && ThisVal.zext(SrcBitSize) == OpVal) in ConstantFoldBITCASTofBUILD_VECTOR()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp7647 unsigned SrcBitSize = SrcEltVT.getSizeInBits(); in ConstantFoldBITCASTofBUILD_VECTOR() local
7652 if (SrcBitSize == DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
7700 if (SrcBitSize < DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
7701 unsigned NumInputsPerOutput = DstBitSize/SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
7711 NewBits <<= SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
7717 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
7732 unsigned NumOutputsPerInput = SrcBitSize/DstBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
7744 getAPIntValue().zextOrTrunc(SrcBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp9997 unsigned SrcBitSize = SrcEltVT.getSizeInBits(); in ConstantFoldBITCASTofBUILD_VECTOR() local
10002 if (SrcBitSize == DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
10050 if (SrcBitSize < DstBitSize) { in ConstantFoldBITCASTofBUILD_VECTOR()
10051 unsigned NumInputsPerOutput = DstBitSize/SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
10061 NewBits <<= SrcBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
10067 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
10082 unsigned NumOutputsPerInput = SrcBitSize/DstBitSize; in ConstantFoldBITCASTofBUILD_VECTOR()
10094 getAPIntValue().zextOrTrunc(SrcBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()