Lines Matching defs:LoadTy
554 Constant *FoldReinterpretLoadFromConst(Constant *C, Type *LoadTy,
557 if (isa<ScalableVectorType>(LoadTy))
560 auto *IntType = dyn_cast<IntegerType>(LoadTy);
568 if (!LoadTy->isFloatingPointTy() && !LoadTy->isPointerTy() &&
569 !LoadTy->isVectorTy())
573 DL.getTypeSizeInBits(LoadTy).getFixedValue());
575 if (Res->isNullValue() && !LoadTy->isX86_AMXTy())
577 return Constant::getNullValue(LoadTy);
578 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy;
580 if (LoadTy->isPtrOrPtrVectorTy()) {
582 if (Res->isNullValue() && !LoadTy->isX86_AMXTy())
583 return Constant::getNullValue(LoadTy);
584 if (DL.isNonIntegralPointerType(LoadTy->getScalarType()))
587 Res = ConstantExpr::getIntToPtr(Res, LoadTy);