Lines Matching refs:SrcTy
54 void addTypeMapping(Type *DstTy, Type *SrcTy);
62 Type *get(Type *SrcTy);
63 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
72 Type *remapType(Type *SrcTy) override { return get(SrcTy); } in remapType() argument
74 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
78 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
84 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
106 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
108 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic()
112 Type *&Entry = MappedTypes[SrcTy]; in areTypesIsomorphic()
118 if (DstTy == SrcTy) { in areTypesIsomorphic()
126 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
130 SpeculativeTypes.push_back(SrcTy); in areTypesIsomorphic()
143 SpeculativeTypes.push_back(SrcTy); in areTypesIsomorphic()
151 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes()) in areTypesIsomorphic()
158 if (PT->getAddressSpace() != cast<PointerType>(SrcTy)->getAddressSpace()) in areTypesIsomorphic()
162 if (FT->isVarArg() != cast<FunctionType>(SrcTy)->isVarArg()) in areTypesIsomorphic()
165 StructType *SSTy = cast<StructType>(SrcTy); in areTypesIsomorphic()
170 if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
173 if (DVTy->getNumElements() != cast<VectorType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
180 SpeculativeTypes.push_back(SrcTy); in areTypesIsomorphic()
182 for (unsigned I = 0, E = SrcTy->getNumContainedTypes(); I != E; ++I) in areTypesIsomorphic()
184 SrcTy->getContainedType(I))) in areTypesIsomorphic()