Lines Matching defs:DstTy
74 void addTypeMapping(Type *DstTy, Type *SrcTy);
92 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
96 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) {
102 if (!areTypesIsomorphic(DstTy, SrcTy)) {
113 // SrcTy and DstTy are recursively ismorphic. We clear names of SrcTy
130 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) {
132 if (DstTy->getTypeID() != SrcTy->getTypeID())
138 return Entry == DstTy;
142 if (DstTy == SrcTy) {
143 Entry = DstTy;
153 Entry = DstTy;
162 if (cast<StructType>(DstTy)->isOpaque()) {
164 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second)
168 SpeculativeDstOpaqueTypes.push_back(cast<StructType>(DstTy));
169 Entry = DstTy;
175 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes())
179 if (isa<IntegerType>(DstTy))
181 if (PointerType *PT = dyn_cast<PointerType>(DstTy)) {
184 } else if (FunctionType *FT = dyn_cast<FunctionType>(DstTy)) {
187 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) {
192 } else if (auto *DArrTy = dyn_cast<ArrayType>(DstTy)) {
195 } else if (auto *DVecTy = dyn_cast<VectorType>(DstTy)) {
202 Entry = DstTy;
206 if (!areTypesIsomorphic(DstTy->getContainedType(I),
939 ArrayType *DstTy = cast<ArrayType>(DstGV->getValueType());
940 DstNumElements = DstTy->getNumElements();
943 if (EltTy != DstTy->getElementType())