Lines Matching defs:SrcTy
49 void addTypeMapping(Type *DstTy, Type *SrcTy);
57 Type *get(Type *SrcTy);
64 Type *remapType(Type *SrcTy) {
65 return get(SrcTy);
68 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
72 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) {
73 Type *&Entry = MappedTypes[SrcTy];
76 if (DstTy == SrcTy) {
83 if (!areTypesIsomorphic(DstTy, SrcTy)) {
94 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) {
96 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false;
99 Type *&Entry = MappedTypes[SrcTy];
105 if (DstTy == SrcTy) {
113 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) {
117 SpeculativeTypes.push_back(SrcTy);
131 if (SrcTy->getNumContainedTypes() != DstTy->getNumContainedTypes())
138 if (PT->getAddressSpace() != cast<PointerType>(SrcTy)->getAddressSpace())
141 if (FT->isVarArg() != cast<FunctionType>(SrcTy)->isVarArg())
144 StructType *SSTy = cast<StructType>(SrcTy);
149 if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
152 if (DVTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
159 SpeculativeTypes.push_back(SrcTy);
161 for (unsigned i = 0, e = SrcTy->getNumContainedTypes(); i != e; ++i)
163 SrcTy->getContainedType(i)))
560 ArrayType *SrcTy =
565 if (EltTy != SrcTy->getElementType())
582 uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements();