Lines Matching defs:SrcTy
56 void addTypeMapping(Type *DstTy, Type *SrcTy);
64 Type *get(Type *SrcTy);
65 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
74 Type *remapType(Type *SrcTy) override { return get(SrcTy); }
76 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
80 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) {
86 if (!areTypesIsomorphic(DstTy, SrcTy)) {
97 // SrcTy and DstTy are recursively ismorphic. We clear names of SrcTy
114 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) {
116 if (DstTy->getTypeID() != SrcTy->getTypeID())
120 Type *&Entry = MappedTypes[SrcTy];
126 if (DstTy == SrcTy) {
134 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) {
138 SpeculativeTypes.push_back(SrcTy);
151 SpeculativeTypes.push_back(SrcTy);
159 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes())
166 if (PT->getAddressSpace() != cast<PointerType>(SrcTy)->getAddressSpace())
169 if (FT->isVarArg() != cast<FunctionType>(SrcTy)->isVarArg())
172 StructType *SSTy = cast<StructType>(SrcTy);
177 if (DArrTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
180 if (DVecTy->getElementCount() != cast<VectorType>(SrcTy)->getElementCount())
187 SpeculativeTypes.push_back(SrcTy);
189 for (unsigned I = 0, E = SrcTy->getNumContainedTypes(); I != E; ++I)
191 SrcTy->getContainedType(I)))