Lines Matching refs:DstTy
61 void addTypeMapping(Type *DstTy, Type *SrcTy);
92 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
96 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) {
100 if (DstTy == SrcTy) {
101 Entry = DstTy;
107 if (!areTypesIsomorphic(DstTy, SrcTy)) {
118 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) {
120 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false;
125 return Entry == DstTy;
129 if (DstTy == SrcTy) {
130 Entry = DstTy;
140 Entry = DstTy;
150 if (cast<StructType>(DstTy)->isOpaque()) {
152 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)))
155 Entry = DstTy;
161 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes())
165 if (isa<IntegerType>(DstTy))
167 if (PointerType *PT = dyn_cast<PointerType>(DstTy)) {
171 } else if (FunctionType *FT = dyn_cast<FunctionType>(DstTy)) {
174 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) {
179 } else if (ArrayType *DATy = dyn_cast<ArrayType>(DstTy)) {
182 } else if (VectorType *DVTy = dyn_cast<VectorType>(DstTy)) {
189 Entry = DstTy;
193 if (!areTypesIsomorphic(DstTy->getContainedType(i),
658 ArrayType *DstTy = cast<ArrayType>(DstGV->getType()->getElementType());
661 Type *EltTy = DstTy->getElementType();
681 uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements();