Lines Matching defs:SrcTy
61 void addTypeMapping(Type *DstTy, Type *SrcTy);
69 Type *get(Type *SrcTy);
88 Type *remapType(Type *SrcTy) {
89 return get(SrcTy);
92 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
96 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) {
97 Type *&Entry = MappedTypes[SrcTy];
100 if (DstTy == SrcTy) {
107 if (!areTypesIsomorphic(DstTy, SrcTy)) {
118 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) {
120 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false;
123 Type *&Entry = MappedTypes[SrcTy];
129 if (DstTy == SrcTy) {
137 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) {
141 SpeculativeTypes.push_back(SrcTy);
161 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes())
168 if (PT->getAddressSpace() != cast<PointerType>(SrcTy)->getAddressSpace())
172 if (FT->isVarArg() != cast<FunctionType>(SrcTy)->isVarArg())
175 StructType *SSTy = cast<StructType>(SrcTy);
180 if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
183 if (DVTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
190 SpeculativeTypes.push_back(SrcTy);
192 for (unsigned i = 0, e = SrcTy->getNumContainedTypes(); i != e; ++i)
194 SrcTy->getContainedType(i)))
659 ArrayType *SrcTy =
664 if (EltTy != SrcTy->getElementType())
681 uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements();