Lines Matching refs:LoadTy
699 Type *LoadTy, in CanCoerceMustAliasedValueToLoad() argument
703 if (LoadTy->isStructTy() || LoadTy->isArrayTy() || in CanCoerceMustAliasedValueToLoad()
710 DL.getTypeSizeInBits(LoadTy)) in CanCoerceMustAliasedValueToLoad()
810 static int AnalyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingWrite() argument
816 if (LoadTy->isStructTy() || LoadTy->isArrayTy()) in AnalyzeLoadFromClobberingWrite()
844 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy); in AnalyzeLoadFromClobberingWrite()
885 static int AnalyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingStore() argument
895 return AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, in AnalyzeLoadFromClobberingStore()
902 static int AnalyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingLoad() argument
910 int R = AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in AnalyzeLoadFromClobberingLoad()
918 unsigned LoadSize = DL.getTypeStoreSize(LoadTy); in AnalyzeLoadFromClobberingLoad()
929 return AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, Size*8, DL); in AnalyzeLoadFromClobberingLoad()
934 static int AnalyzeLoadFromClobberingMemInst(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingMemInst() argument
945 return AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, MI->getDest(), in AnalyzeLoadFromClobberingMemInst()
960 int Offset = AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, in AnalyzeLoadFromClobberingMemInst()
974 Src = ConstantExpr::getBitCast(Src, PointerType::get(LoadTy, AS)); in AnalyzeLoadFromClobberingMemInst()
975 if (ConstantFoldLoadFromConstPtr(Src, LoadTy, DL)) in AnalyzeLoadFromClobberingMemInst()
987 Type *LoadTy, in GetStoreValueForLoad() argument
992 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy) + 7) / 8; in GetStoreValueForLoad()
1017 return CoerceAvailableValueToLoadType(SrcVal, LoadTy, Builder, DL); in GetStoreValueForLoad()
1026 Type *LoadTy, Instruction *InsertPt, in GetLoadValueForLoad() argument
1032 unsigned LoadSize = DL.getTypeStoreSize(LoadTy); in GetLoadValueForLoad()
1049 IntegerType::get(LoadTy->getContext(), NewLoadSize*8); in GetLoadValueForLoad()
1078 return GetStoreValueForLoad(SrcVal, Offset, LoadTy, InsertPt, DL); in GetLoadValueForLoad()
1085 Type *LoadTy, Instruction *InsertPt, in GetMemInstValueForLoad() argument
1087 LLVMContext &Ctx = LoadTy->getContext(); in GetMemInstValueForLoad()
1088 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy)/8; in GetMemInstValueForLoad()
1119 return CoerceAvailableValueToLoadType(Val, LoadTy, Builder, DL); in GetMemInstValueForLoad()
1135 Src = ConstantExpr::getBitCast(Src, PointerType::get(LoadTy, AS)); in GetMemInstValueForLoad()
1136 return ConstantFoldLoadFromConstPtr(Src, LoadTy, DL); in GetMemInstValueForLoad()
1178 Type *LoadTy = LI->getType(); in MaterializeAdjustedValue() local
1182 if (Res->getType() != LoadTy) { in MaterializeAdjustedValue()
1183 Res = GetStoreValueForLoad(Res, Offset, LoadTy, InsertPt, DL); in MaterializeAdjustedValue()
1191 if (Load->getType() == LoadTy && Offset == 0) { in MaterializeAdjustedValue()
1194 Res = GetLoadValueForLoad(Load, Offset, LoadTy, InsertPt, gvn); in MaterializeAdjustedValue()
1201 Res = GetMemInstValueForLoad(getMemIntrinValue(), Offset, LoadTy, in MaterializeAdjustedValue()
1209 return UndefValue::get(LoadTy); in MaterializeAdjustedValue()