Lines Matching defs:TyR
134 Type *TyR = RA.getValueAsType();
135 if (TyL && TyR) {
136 if (int Res = cmpTypes(TyL, TyR))
143 if (int Res = cmpNumbers((uint64_t)TyL, (uint64_t)TyR))
277 Type *TyR = R->getType();
282 int TypesRes = cmpTypes(TyL, TyR);
286 if (TyR->isFirstClassType())
288 // Neither TyL nor TyR are values of first class type. Return the result
292 if (!TyR->isFirstClassType()) {
305 if (auto *VecTyR = dyn_cast<VectorType>(TyR))
311 // Zero bit-width means neither TyL nor TyR are vectors.
314 PointerType *PTyR = dyn_cast<PointerType>(TyR);
326 // TyL and TyR aren't vectors, nor pointers. We don't know how to
379 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements();
393 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements();
407 unsigned NumElementsR = cast<FixedVectorType>(TyR)->getNumElements();
523 int FunctionComparator::cmpTypes(Type *TyL, Type *TyR) const {
525 PointerType *PTyR = dyn_cast<PointerType>(TyR);
531 TyR = DL.getIntPtrType(TyR);
533 if (TyL == TyR)
536 if (int Res = cmpNumbers(TyL->getTypeID(), TyR->getTypeID()))
544 cast<IntegerType>(TyR)->getBitWidth());
545 // TyL == TyR would have returned true earlier, because types are uniqued.
563 StructType *STyR = cast<StructType>(TyR);
579 FunctionType *FTyR = cast<FunctionType>(TyR);
598 auto *STyR = cast<ArrayType>(TyR);
606 auto *STyR = cast<VectorType>(TyR);