• Home
  • Raw
  • Download

Lines Matching refs:DstTy

49   void addTypeMapping(Type *DstTy, Type *SrcTy);
68 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
72 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
76 if (DstTy == SrcTy) { in addTypeMapping()
77 Entry = DstTy; in addTypeMapping()
83 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
94 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
96 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false; in areTypesIsomorphic()
101 return Entry == DstTy; in areTypesIsomorphic()
105 if (DstTy == SrcTy) { in areTypesIsomorphic()
106 Entry = DstTy; in areTypesIsomorphic()
116 Entry = DstTy; in areTypesIsomorphic()
123 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic()
124 Entry = DstTy; in areTypesIsomorphic()
131 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes()) in areTypesIsomorphic()
135 if (isa<IntegerType>(DstTy)) in areTypesIsomorphic()
137 if (PointerType *PT = dyn_cast<PointerType>(DstTy)) { in areTypesIsomorphic()
140 } else if (FunctionType *FT = dyn_cast<FunctionType>(DstTy)) { in areTypesIsomorphic()
143 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) { in areTypesIsomorphic()
148 } else if (ArrayType *DATy = dyn_cast<ArrayType>(DstTy)) { in areTypesIsomorphic()
151 } else if (VectorType *DVTy = dyn_cast<VectorType>(DstTy)) { in areTypesIsomorphic()
158 Entry = DstTy; in areTypesIsomorphic()
162 if (!areTypesIsomorphic(DstTy->getContainedType(i), in areTypesIsomorphic()
559 ArrayType *DstTy = cast<ArrayType>(DstGV->getType()->getElementType()); in linkAppendingVarProto() local
562 Type *EltTy = DstTy->getElementType(); in linkAppendingVarProto()
582 uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements(); in linkAppendingVarProto()