Lines Matching refs:DL
19 const DataLayout &DL) { in canCoerceMustAliasedValueToLoad() argument
31 uint64_t StoreSize = DL.getTypeSizeInBits(StoredTy).getFixedValue(); in canCoerceMustAliasedValueToLoad()
38 if (StoreSize < DL.getTypeSizeInBits(LoadTy).getFixedValue()) in canCoerceMustAliasedValueToLoad()
41 bool StoredNI = DL.isNonIntegralPointerType(StoredTy->getScalarType()); in canCoerceMustAliasedValueToLoad()
42 bool LoadNI = DL.isNonIntegralPointerType(LoadTy->getScalarType()); in canCoerceMustAliasedValueToLoad()
61 if (StoredNI && StoreSize != DL.getTypeSizeInBits(LoadTy).getFixedValue()) in canCoerceMustAliasedValueToLoad()
78 const DataLayout &DL) { in coerceAvailableValueToLoadType() argument
79 assert(canCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in coerceAvailableValueToLoadType()
82 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType()
87 uint64_t StoredValSize = DL.getTypeSizeInBits(StoredValTy).getFixedValue(); in coerceAvailableValueToLoadType()
88 uint64_t LoadedValSize = DL.getTypeSizeInBits(LoadedTy).getFixedValue(); in coerceAvailableValueToLoadType()
98 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
104 TypeToCastTo = DL.getIntPtrType(TypeToCastTo); in coerceAvailableValueToLoadType()
115 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType()
127 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
139 if (DL.isBigEndian()) { in coerceAvailableValueToLoadType()
140 uint64_t ShiftAmt = DL.getTypeStoreSizeInBits(StoredValTy).getFixedValue() - in coerceAvailableValueToLoadType()
141 DL.getTypeStoreSizeInBits(LoadedTy).getFixedValue(); in coerceAvailableValueToLoadType()
160 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType()
176 const DataLayout &DL) { in analyzeLoadFromClobberingWrite() argument
184 GetPointerBaseWithConstantOffset(WritePtr, StoreOffset, DL); in analyzeLoadFromClobberingWrite()
185 Value *LoadBase = GetPointerBaseWithConstantOffset(LoadPtr, LoadOffset, DL); in analyzeLoadFromClobberingWrite()
189 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedValue(); in analyzeLoadFromClobberingWrite()
212 StoreInst *DepSI, const DataLayout &DL) { in analyzeLoadFromClobberingStore() argument
219 if (!canCoerceMustAliasedValueToLoad(StoredVal, LoadTy, DL)) in analyzeLoadFromClobberingStore()
224 DL.getTypeSizeInBits(DepSI->getValueOperand()->getType()).getFixedValue(); in analyzeLoadFromClobberingStore()
226 DL); in analyzeLoadFromClobberingStore()
233 const DataLayout &DL) { in analyzeLoadFromClobberingLoad() argument
238 if (!canCoerceMustAliasedValueToLoad(DepLI, LoadTy, DL)) in analyzeLoadFromClobberingLoad()
242 uint64_t DepSize = DL.getTypeSizeInBits(DepLI->getType()).getFixedValue(); in analyzeLoadFromClobberingLoad()
243 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in analyzeLoadFromClobberingLoad()
247 MemIntrinsic *MI, const DataLayout &DL) { in analyzeLoadFromClobberingMemInst() argument
257 if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in analyzeLoadFromClobberingMemInst()
263 MemSizeInBits, DL); in analyzeLoadFromClobberingMemInst()
281 MemSizeInBits, DL); in analyzeLoadFromClobberingMemInst()
287 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in analyzeLoadFromClobberingMemInst()
288 if (ConstantFoldLoadFromConstPtr(Src, LoadTy, APInt(IndexSize, Offset), DL)) in analyzeLoadFromClobberingMemInst()
295 const DataLayout &DL) { in getStoreValueForLoadHelper() argument
308 (DL.getTypeSizeInBits(SrcVal->getType()).getFixedValue() + 7) / 8; in getStoreValueForLoadHelper()
309 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy).getFixedValue() + 7) / 8; in getStoreValueForLoadHelper()
314 Builder.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
321 if (DL.isLittleEndian()) in getStoreValueForLoadHelper()
336 Instruction *InsertPt, const DataLayout &DL) { in getValueForLoad() argument
339 unsigned SrcValSize = DL.getTypeStoreSize(SrcVal->getType()).getFixedValue(); in getValueForLoad()
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
351 unsigned SrcValSize = DL.getTypeStoreSize(SrcVal->getType()).getFixedValue(); in getConstantValueForLoad()
352 unsigned LoadSize = DL.getTypeStoreSize(LoadTy).getFixedValue(); in getConstantValueForLoad()
355 return ConstantFoldLoadFromConst(SrcVal, LoadTy, APInt(32, Offset), DL); in getConstantValueForLoad()
362 const DataLayout &DL) { in getMemInstValueForLoad() argument
364 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedValue() / 8; in getMemInstValueForLoad()
396 return coerceAvailableValueToLoadType(Val, LoadTy, Builder, DL); in getMemInstValueForLoad()
402 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getMemInstValueForLoad()
404 DL); in getMemInstValueForLoad()
408 Type *LoadTy, const DataLayout &DL) { in getConstantMemInstValueForLoad() argument
410 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedValue() / 8; in getConstantMemInstValueForLoad()
420 return ConstantFoldLoadFromConst(Val, LoadTy, DL); in getConstantMemInstValueForLoad()
426 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getConstantMemInstValueForLoad()
428 DL); in getConstantMemInstValueForLoad()