Lines Matching refs:StoredVal
698 static bool CanCoerceMustAliasedValueToLoad(Value *StoredVal, in CanCoerceMustAliasedValueToLoad() argument
704 StoredVal->getType()->isStructTy() || in CanCoerceMustAliasedValueToLoad()
705 StoredVal->getType()->isArrayTy()) in CanCoerceMustAliasedValueToLoad()
709 if (DL.getTypeSizeInBits(StoredVal->getType()) < in CanCoerceMustAliasedValueToLoad()
722 static Value *CoerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy, in CoerceAvailableValueToLoadType() argument
725 assert(CanCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in CoerceAvailableValueToLoadType()
729 Type *StoredValTy = StoredVal->getType(); in CoerceAvailableValueToLoadType()
739 return IRB.CreateBitCast(StoredVal, LoadedTy); in CoerceAvailableValueToLoadType()
744 StoredVal = IRB.CreatePtrToInt(StoredVal, StoredValTy); in CoerceAvailableValueToLoadType()
752 StoredVal = IRB.CreateBitCast(StoredVal, TypeToCastTo); in CoerceAvailableValueToLoadType()
756 StoredVal = IRB.CreateIntToPtr(StoredVal, LoadedTy); in CoerceAvailableValueToLoadType()
758 return StoredVal; in CoerceAvailableValueToLoadType()
770 StoredVal = IRB.CreatePtrToInt(StoredVal, StoredValTy); in CoerceAvailableValueToLoadType()
776 StoredVal = IRB.CreateBitCast(StoredVal, StoredValTy); in CoerceAvailableValueToLoadType()
784 StoredVal = IRB.CreateLShr(StoredVal, ShiftAmt, "tmp"); in CoerceAvailableValueToLoadType()
789 StoredVal = IRB.CreateTrunc(StoredVal, NewIntTy, "trunc"); in CoerceAvailableValueToLoadType()
792 return StoredVal; in CoerceAvailableValueToLoadType()
796 return IRB.CreateIntToPtr(StoredVal, LoadedTy, "inttoptr"); in CoerceAvailableValueToLoadType()
799 return IRB.CreateBitCast(StoredVal, LoadedTy, "bitcast"); in CoerceAvailableValueToLoadType()