Lines Matching refs:Ty1
197 bool isEquivalentType(Type *Ty1, Type *Ty2) const;
212 bool FunctionComparator::isEquivalentType(Type *Ty1, Type *Ty2) const {
213 if (Ty1 == Ty2)
215 if (Ty1->getTypeID() != Ty2->getTypeID()) {
217 LLVMContext &Ctx = Ty1->getContext();
218 if (isa<PointerType>(Ty1) && Ty2 == TD->getIntPtrType(Ctx)) return true;
219 if (isa<PointerType>(Ty2) && Ty1 == TD->getIntPtrType(Ctx)) return true;
224 switch (Ty1->getTypeID()) {
230 // Ty1 == Ty2 would have returned true earlier.
244 PointerType *PTy1 = cast<PointerType>(Ty1);
250 StructType *STy1 = cast<StructType>(Ty1);
266 FunctionType *FTy1 = cast<FunctionType>(Ty1);
283 ArrayType *ATy1 = cast<ArrayType>(Ty1);