Searched refs:OldTy (Results 1 – 4 of 4) sorted by relevance
32 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() local34 return std::make_pair(TypeIdx, OldTy.changeElementType(NewTy)); in changeElementTo()41 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() local42 return std::make_pair(TypeIdx, OldTy.changeElementType(NewEltTy)); in changeElementTo()
126 const LLT OldTy = Q.Types[TypeIdx]; in mutationIsSane() local131 if (!OldTy.isVector()) in mutationIsSane()136 const unsigned OldElts = OldTy.isVector() ? OldTy.getNumElements() : 1; in mutationIsSane()150 return NewTy.getScalarType() == OldTy.getScalarType(); in mutationIsSane()154 if (OldTy.isVector()) { in mutationIsSane()156 if (!NewTy.isVector() || OldTy.getNumElements() != NewTy.getNumElements()) in mutationIsSane()166 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane()170 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane()
1149 LLT OldTy = MRI.getType(MO.getReg()); in moreElementsVectorSrc() local1150 unsigned OldElts = OldTy.getNumElements(); in moreElementsVectorSrc()1160 Register ImpDef = MIRBuilder.buildUndef(OldTy).getReg(0); in moreElementsVectorSrc()
1706 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument1707 if (OldTy == NewTy) in canConvertValue()1713 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()1714 assert(cast<IntegerType>(OldTy)->getBitWidth() != in canConvertValue()1720 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue()1722 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()1727 OldTy = OldTy->getScalarType(); in canConvertValue()1729 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()1730 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue()1732 cast<PointerType>(OldTy)->getPointerAddressSpace(); in canConvertValue()[all …]