Lines Matching refs:LoadTy
18 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, in canCoerceMustAliasedValueToLoad() argument
22 if (StoredTy == LoadTy) in canCoerceMustAliasedValueToLoad()
27 if (isFirstClassAggregateOrScalableType(LoadTy) || in canCoerceMustAliasedValueToLoad()
38 if (StoreSize < DL.getTypeSizeInBits(LoadTy).getFixedValue()) in canCoerceMustAliasedValueToLoad()
42 bool LoadNI = DL.isNonIntegralPointerType(LoadTy->getScalarType()); in canCoerceMustAliasedValueToLoad()
53 LoadTy->getPointerAddressSpace()) { in canCoerceMustAliasedValueToLoad()
61 if (StoredNI && StoreSize != DL.getTypeSizeInBits(LoadTy).getFixedValue()) in canCoerceMustAliasedValueToLoad()
64 if (StoredTy->isTargetExtTy() || LoadTy->isTargetExtTy()) in canCoerceMustAliasedValueToLoad()
173 static int analyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingWrite() argument
179 if (isFirstClassAggregateOrScalableType(LoadTy)) in analyzeLoadFromClobberingWrite()
189 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedValue(); in analyzeLoadFromClobberingWrite()
211 int analyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingStore() argument
219 if (!canCoerceMustAliasedValueToLoad(StoredVal, LoadTy, DL)) in analyzeLoadFromClobberingStore()
225 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, StorePtr, StoreSize, in analyzeLoadFromClobberingStore()
232 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI, in analyzeLoadFromClobberingLoad() argument
238 if (!canCoerceMustAliasedValueToLoad(DepLI, LoadTy, DL)) in analyzeLoadFromClobberingLoad()
243 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in analyzeLoadFromClobberingLoad()
246 int analyzeLoadFromClobberingMemInst(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingMemInst() argument
257 if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in analyzeLoadFromClobberingMemInst()
262 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, MI->getDest(), in analyzeLoadFromClobberingMemInst()
280 int Offset = analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, MI->getDest(), in analyzeLoadFromClobberingMemInst()
288 if (ConstantFoldLoadFromConstPtr(Src, LoadTy, APInt(IndexSize, Offset), DL)) in analyzeLoadFromClobberingMemInst()
294 Type *LoadTy, IRBuilderBase &Builder, in getStoreValueForLoadHelper() argument
301 if (SrcVal->getType()->isPointerTy() && LoadTy->isPointerTy() && in getStoreValueForLoadHelper()
303 cast<PointerType>(LoadTy)->getAddressSpace()) { in getStoreValueForLoadHelper()
309 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy).getFixedValue() + 7) / 8; in getStoreValueForLoadHelper()
335 Value *getValueForLoad(Value *SrcVal, unsigned Offset, Type *LoadTy, in getValueForLoad() argument
340 unsigned LoadSize = DL.getTypeStoreSize(LoadTy).getFixedValue(); in getValueForLoad()
344 SrcVal = getStoreValueForLoadHelper(SrcVal, Offset, LoadTy, Builder, DL); in getValueForLoad()
345 return coerceAvailableValueToLoadType(SrcVal, LoadTy, Builder, DL); in getValueForLoad()
349 Type *LoadTy, const DataLayout &DL) { in getConstantValueForLoad() argument
352 unsigned LoadSize = DL.getTypeStoreSize(LoadTy).getFixedValue(); in getConstantValueForLoad()
355 return ConstantFoldLoadFromConst(SrcVal, LoadTy, APInt(32, Offset), DL); in getConstantValueForLoad()
361 Type *LoadTy, Instruction *InsertPt, in getMemInstValueForLoad() argument
363 LLVMContext &Ctx = LoadTy->getContext(); in getMemInstValueForLoad()
364 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedValue() / 8; in getMemInstValueForLoad()
396 return coerceAvailableValueToLoadType(Val, LoadTy, Builder, DL); in getMemInstValueForLoad()
403 return ConstantFoldLoadFromConstPtr(Src, LoadTy, APInt(IndexSize, Offset), in getMemInstValueForLoad()
408 Type *LoadTy, const DataLayout &DL) { in getConstantMemInstValueForLoad() argument
409 LLVMContext &Ctx = LoadTy->getContext(); in getConstantMemInstValueForLoad()
410 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedValue() / 8; in getConstantMemInstValueForLoad()
420 return ConstantFoldLoadFromConst(Val, LoadTy, DL); in getConstantMemInstValueForLoad()
427 return ConstantFoldLoadFromConstPtr(Src, LoadTy, APInt(IndexSize, Offset), in getConstantMemInstValueForLoad()