Lines Matching refs:SrcTy
69 void addTypeMapping(Type *DstTy, Type *SrcTy);
77 Type *get(Type *SrcTy);
78 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
98 Type *remapType(Type *SrcTy) override { return get(SrcTy); } in remapType() argument
100 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
104 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
110 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
132 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
134 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic()
138 Type *&Entry = MappedTypes[SrcTy]; in areTypesIsomorphic()
144 if (DstTy == SrcTy) { in areTypesIsomorphic()
152 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
156 SpeculativeTypes.push_back(SrcTy); in areTypesIsomorphic()
169 SpeculativeTypes.push_back(SrcTy); in areTypesIsomorphic()
177 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes()) in areTypesIsomorphic()
184 if (PT->getAddressSpace() != cast<PointerType>(SrcTy)->getAddressSpace()) in areTypesIsomorphic()
188 if (FT->isVarArg() != cast<FunctionType>(SrcTy)->isVarArg()) in areTypesIsomorphic()
191 StructType *SSTy = cast<StructType>(SrcTy); in areTypesIsomorphic()
196 if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
199 if (DVTy->getNumElements() != cast<VectorType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
206 SpeculativeTypes.push_back(SrcTy); in areTypesIsomorphic()
208 for (unsigned I = 0, E = SrcTy->getNumContainedTypes(); I != E; ++I) in areTypesIsomorphic()
210 SrcTy->getContainedType(I))) in areTypesIsomorphic()
932 auto *SrcTy = in upgradeMismatchedGlobalArray() local
934 if (DstTy == SrcTy) in upgradeMismatchedGlobalArray()
940 auto *SrcEltTy = cast<StructType>(SrcTy->getElementType()); in upgradeMismatchedGlobalArray()
966 ArrayType *SrcTy = in linkAppendingVarProto() local
971 if (EltTy != SrcTy->getElementType()) in linkAppendingVarProto()
992 uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements(); in linkAppendingVarProto()