Lines Matching refs:SrcTy
1847 Type *SrcTy = I.getOperand(0)->getType(); in visitTruncInst() local
1851 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst()
1854 Assert(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I); in visitTruncInst()
1856 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst()
1865 Type *SrcTy = I.getOperand(0)->getType(); in visitZExtInst() local
1869 Assert(SrcTy->isIntOrIntVectorTy(), "ZExt only operates on integer", &I); in visitZExtInst()
1871 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst()
1873 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst()
1883 Type *SrcTy = I.getOperand(0)->getType(); in visitSExtInst() local
1887 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst()
1890 Assert(SrcTy->isIntOrIntVectorTy(), "SExt only operates on integer", &I); in visitSExtInst()
1892 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitSExtInst()
1901 Type *SrcTy = I.getOperand(0)->getType(); in visitFPTruncInst() local
1904 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPTruncInst()
1907 Assert(SrcTy->isFPOrFPVectorTy(), "FPTrunc only operates on FP", &I); in visitFPTruncInst()
1909 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitFPTruncInst()
1918 Type *SrcTy = I.getOperand(0)->getType(); in visitFPExtInst() local
1922 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitFPExtInst()
1925 Assert(SrcTy->isFPOrFPVectorTy(), "FPExt only operates on FP", &I); in visitFPExtInst()
1927 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitFPExtInst()
1936 Type *SrcTy = I.getOperand(0)->getType(); in visitUIToFPInst() local
1939 bool SrcVec = SrcTy->isVectorTy(); in visitUIToFPInst()
1944 Assert(SrcTy->isIntOrIntVectorTy(), in visitUIToFPInst()
1950 Assert(cast<VectorType>(SrcTy)->getNumElements() == in visitUIToFPInst()
1959 Type *SrcTy = I.getOperand(0)->getType(); in visitSIToFPInst() local
1962 bool SrcVec = SrcTy->isVectorTy(); in visitSIToFPInst()
1967 Assert(SrcTy->isIntOrIntVectorTy(), in visitSIToFPInst()
1973 Assert(cast<VectorType>(SrcTy)->getNumElements() == in visitSIToFPInst()
1982 Type *SrcTy = I.getOperand(0)->getType(); in visitFPToUIInst() local
1985 bool SrcVec = SrcTy->isVectorTy(); in visitFPToUIInst()
1990 Assert(SrcTy->isFPOrFPVectorTy(), "FPToUI source must be FP or FP vector", in visitFPToUIInst()
1996 Assert(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToUIInst()
2005 Type *SrcTy = I.getOperand(0)->getType(); in visitFPToSIInst() local
2008 bool SrcVec = SrcTy->isVectorTy(); in visitFPToSIInst()
2013 Assert(SrcTy->isFPOrFPVectorTy(), "FPToSI source must be FP or FP vector", in visitFPToSIInst()
2019 Assert(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToSIInst()
2028 Type *SrcTy = I.getOperand(0)->getType(); in visitPtrToIntInst() local
2031 Assert(SrcTy->getScalarType()->isPointerTy(), in visitPtrToIntInst()
2035 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), "PtrToInt type mismatch", in visitPtrToIntInst()
2038 if (SrcTy->isVectorTy()) { in visitPtrToIntInst()
2039 VectorType *VSrc = dyn_cast<VectorType>(SrcTy); in visitPtrToIntInst()
2050 Type *SrcTy = I.getOperand(0)->getType(); in visitIntToPtrInst() local
2053 Assert(SrcTy->getScalarType()->isIntegerTy(), in visitIntToPtrInst()
2057 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), "IntToPtr type mismatch", in visitIntToPtrInst()
2059 if (SrcTy->isVectorTy()) { in visitIntToPtrInst()
2060 VectorType *VSrc = dyn_cast<VectorType>(SrcTy); in visitIntToPtrInst()
2076 Type *SrcTy = I.getOperand(0)->getType(); in visitAddrSpaceCastInst() local
2079 Assert(SrcTy->isPtrOrPtrVectorTy(), "AddrSpaceCast source must be a pointer", in visitAddrSpaceCastInst()
2083 Assert(SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace(), in visitAddrSpaceCastInst()
2085 if (SrcTy->isVectorTy()) in visitAddrSpaceCastInst()
2086 Assert(SrcTy->getVectorNumElements() == DestTy->getVectorNumElements(), in visitAddrSpaceCastInst()