Lines Matching refs:LoadTy

15 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy,  in canCoerceMustAliasedValueToLoad()  argument
19 if (LoadTy->isStructTy() || LoadTy->isArrayTy() || in canCoerceMustAliasedValueToLoad()
30 if (StoreSize < DL.getTypeSizeInBits(LoadTy)) in canCoerceMustAliasedValueToLoad()
35 DL.isNonIntegralPointerType(LoadTy)) in canCoerceMustAliasedValueToLoad()
153 static int analyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingWrite() argument
159 if (LoadTy->isStructTy() || LoadTy->isArrayTy()) in analyzeLoadFromClobberingWrite()
177 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy); in analyzeLoadFromClobberingWrite()
208 int analyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingStore() argument
218 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, StorePtr, StoreSize, in analyzeLoadFromClobberingStore()
225 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI, in analyzeLoadFromClobberingLoad() argument
233 int R = analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in analyzeLoadFromClobberingLoad()
242 unsigned LoadSize = DL.getTypeStoreSize(LoadTy); in analyzeLoadFromClobberingLoad()
254 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, Size * 8, DL); in analyzeLoadFromClobberingLoad()
257 int analyzeLoadFromClobberingMemInst(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingMemInst() argument
268 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, MI->getDest(), in analyzeLoadFromClobberingMemInst()
285 int Offset = analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, MI->getDest(), in analyzeLoadFromClobberingMemInst()
299 Src = ConstantExpr::getBitCast(Src, PointerType::get(LoadTy, AS)); in analyzeLoadFromClobberingMemInst()
300 if (ConstantFoldLoadFromConstPtr(Src, LoadTy, DL)) in analyzeLoadFromClobberingMemInst()
306 static T *getStoreValueForLoadHelper(T *SrcVal, unsigned Offset, Type *LoadTy, in getStoreValueForLoadHelper() argument
314 if (SrcVal->getType()->isPointerTy() && LoadTy->isPointerTy() && in getStoreValueForLoadHelper()
316 cast<PointerType>(LoadTy)->getAddressSpace()) { in getStoreValueForLoadHelper()
321 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy) + 7) / 8; in getStoreValueForLoadHelper()
349 Value *getStoreValueForLoad(Value *SrcVal, unsigned Offset, Type *LoadTy, in getStoreValueForLoad() argument
353 SrcVal = getStoreValueForLoadHelper(SrcVal, Offset, LoadTy, Builder, DL); in getStoreValueForLoad()
354 return coerceAvailableValueToLoadTypeHelper(SrcVal, LoadTy, Builder, DL); in getStoreValueForLoad()
358 Type *LoadTy, const DataLayout &DL) { in getConstantStoreValueForLoad() argument
360 SrcVal = getStoreValueForLoadHelper(SrcVal, Offset, LoadTy, F, DL); in getConstantStoreValueForLoad()
361 return coerceAvailableValueToLoadTypeHelper(SrcVal, LoadTy, F, DL); in getConstantStoreValueForLoad()
369 Value *getLoadValueForLoad(LoadInst *SrcVal, unsigned Offset, Type *LoadTy, in getLoadValueForLoad() argument
374 unsigned LoadSize = DL.getTypeStoreSize(LoadTy); in getLoadValueForLoad()
389 Type *DestPTy = IntegerType::get(LoadTy->getContext(), NewLoadSize * 8); in getLoadValueForLoad()
412 return getStoreValueForLoad(SrcVal, Offset, LoadTy, InsertPt, DL); in getLoadValueForLoad()
416 Type *LoadTy, const DataLayout &DL) { in getConstantLoadValueForLoad() argument
418 unsigned LoadSize = DL.getTypeStoreSize(LoadTy); in getConstantLoadValueForLoad()
421 return getConstantStoreValueForLoad(SrcVal, Offset, LoadTy, DL); in getConstantLoadValueForLoad()
426 Type *LoadTy, HelperClass &Helper, in getMemInstValueForLoadHelper() argument
428 LLVMContext &Ctx = LoadTy->getContext(); in getMemInstValueForLoadHelper()
429 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy) / 8; in getMemInstValueForLoadHelper()
459 return coerceAvailableValueToLoadTypeHelper(Val, LoadTy, Helper, DL); in getMemInstValueForLoadHelper()
475 Src = ConstantExpr::getBitCast(Src, PointerType::get(LoadTy, AS)); in getMemInstValueForLoadHelper()
476 return ConstantFoldLoadFromConstPtr(Src, LoadTy, DL); in getMemInstValueForLoadHelper()
482 Type *LoadTy, Instruction *InsertPt, in getMemInstValueForLoad() argument
486 LoadTy, Builder, DL); in getMemInstValueForLoad()
490 Type *LoadTy, const DataLayout &DL) { in getConstantMemInstValueForLoad() argument
498 LoadTy, F, DL); in getConstantMemInstValueForLoad()