Lines Matching refs:DstTy
57 void addTypeMapping(Type *DstTy, Type *SrcTy);
77 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
81 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
87 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
109 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
111 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic()
117 return Entry == DstTy; in areTypesIsomorphic()
121 if (DstTy == SrcTy) { in areTypesIsomorphic()
122 Entry = DstTy; in areTypesIsomorphic()
132 Entry = DstTy; in areTypesIsomorphic()
141 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic()
143 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second) in areTypesIsomorphic()
147 SpeculativeDstOpaqueTypes.push_back(cast<StructType>(DstTy)); in areTypesIsomorphic()
148 Entry = DstTy; in areTypesIsomorphic()
154 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes()) in areTypesIsomorphic()
158 if (isa<IntegerType>(DstTy)) in areTypesIsomorphic()
160 if (PointerType *PT = dyn_cast<PointerType>(DstTy)) { in areTypesIsomorphic()
164 } else if (FunctionType *FT = dyn_cast<FunctionType>(DstTy)) { in areTypesIsomorphic()
167 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) { in areTypesIsomorphic()
172 } else if (ArrayType *DATy = dyn_cast<ArrayType>(DstTy)) { in areTypesIsomorphic()
175 } else if (VectorType *DVTy = dyn_cast<VectorType>(DstTy)) { in areTypesIsomorphic()
182 Entry = DstTy; in areTypesIsomorphic()
186 if (!areTypesIsomorphic(DstTy->getContainedType(I), in areTypesIsomorphic()
773 ArrayType *DstTy = cast<ArrayType>(DstGV->getValueType()); in linkAppendingVarProto() local
774 DstNumElements = DstTy->getNumElements(); in linkAppendingVarProto()
783 if (EltTy != DstTy->getElementType()) in linkAppendingVarProto()