Lines Matching defs:SrcTy
68 void addTypeMapping(Type *DstTy, Type *SrcTy);
76 Type *get(Type *SrcTy);
77 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
86 Type *remapType(Type *SrcTy) override { return get(SrcTy); }
88 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
92 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) {
98 if (!areTypesIsomorphic(DstTy, SrcTy)) {
109 // SrcTy and DstTy are recursively ismorphic. We clear names of SrcTy
126 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) {
128 if (DstTy->getTypeID() != SrcTy->getTypeID())
132 Type *&Entry = MappedTypes[SrcTy];
138 if (DstTy == SrcTy) {
146 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) {
150 SpeculativeTypes.push_back(SrcTy);
163 SpeculativeTypes.push_back(SrcTy);
171 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes())
178 if (PT->getAddressSpace() != cast<PointerType>(SrcTy)->getAddressSpace())
181 if (FT->isVarArg() != cast<FunctionType>(SrcTy)->isVarArg())
184 StructType *SSTy = cast<StructType>(SrcTy);
189 if (DArrTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
192 if (DVecTy->getElementCount() != cast<VectorType>(SrcTy)->getElementCount())
199 SpeculativeTypes.push_back(SrcTy);
201 for (unsigned I = 0, E = SrcTy->getNumContainedTypes(); I != E; ++I)
203 SrcTy->getContainedType(I)))