Lines Matching refs:LoadTy
546 Constant *FoldReinterpretLoadFromConst(Constant *C, Type *LoadTy, in FoldReinterpretLoadFromConst() argument
549 if (isa<ScalableVectorType>(LoadTy)) in FoldReinterpretLoadFromConst()
552 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConst()
560 if (!LoadTy->isFloatingPointTy() && !LoadTy->isPointerTy() && in FoldReinterpretLoadFromConst()
561 !LoadTy->isVectorTy()) in FoldReinterpretLoadFromConst()
565 C->getContext(), DL.getTypeSizeInBits(LoadTy).getFixedSize()); in FoldReinterpretLoadFromConst()
567 if (Res->isNullValue() && !LoadTy->isX86_MMXTy() && in FoldReinterpretLoadFromConst()
568 !LoadTy->isX86_AMXTy()) in FoldReinterpretLoadFromConst()
570 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConst()
571 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; in FoldReinterpretLoadFromConst()
573 if (LoadTy->isPtrOrPtrVectorTy()) { in FoldReinterpretLoadFromConst()
575 if (Res->isNullValue() && !LoadTy->isX86_MMXTy() && in FoldReinterpretLoadFromConst()
576 !LoadTy->isX86_AMXTy()) in FoldReinterpretLoadFromConst()
577 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConst()
578 if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) in FoldReinterpretLoadFromConst()
581 Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy); in FoldReinterpretLoadFromConst()