Lines Matching refs:DL

19                                      const DataLayout &DL) {  in canCoerceMustAliasedValueToLoad()  argument
31 uint64_t StoreSize = DL.getTypeSizeInBits(StoredTy).getFixedSize(); in canCoerceMustAliasedValueToLoad()
38 if (StoreSize < DL.getTypeSizeInBits(LoadTy).getFixedSize()) 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).getFixedSize()) in canCoerceMustAliasedValueToLoad()
75 const DataLayout &DL) { in coerceAvailableValueToLoadType() argument
76 assert(canCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in coerceAvailableValueToLoadType()
79 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType()
84 uint64_t StoredValSize = DL.getTypeSizeInBits(StoredValTy).getFixedSize(); in coerceAvailableValueToLoadType()
85 uint64_t LoadedValSize = DL.getTypeSizeInBits(LoadedTy).getFixedSize(); in coerceAvailableValueToLoadType()
95 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
101 TypeToCastTo = DL.getIntPtrType(TypeToCastTo); in coerceAvailableValueToLoadType()
112 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType()
124 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
136 if (DL.isBigEndian()) { in coerceAvailableValueToLoadType()
137 uint64_t ShiftAmt = DL.getTypeStoreSizeInBits(StoredValTy).getFixedSize() - in coerceAvailableValueToLoadType()
138 DL.getTypeStoreSizeInBits(LoadedTy).getFixedSize(); in coerceAvailableValueToLoadType()
157 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType()
173 const DataLayout &DL) { in analyzeLoadFromClobberingWrite() argument
181 GetPointerBaseWithConstantOffset(WritePtr, StoreOffset, DL); in analyzeLoadFromClobberingWrite()
182 Value *LoadBase = GetPointerBaseWithConstantOffset(LoadPtr, LoadOffset, DL); in analyzeLoadFromClobberingWrite()
186 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedSize(); in analyzeLoadFromClobberingWrite()
209 StoreInst *DepSI, const DataLayout &DL) { in analyzeLoadFromClobberingStore() argument
216 if (!canCoerceMustAliasedValueToLoad(StoredVal, LoadTy, DL)) in analyzeLoadFromClobberingStore()
221 DL.getTypeSizeInBits(DepSI->getValueOperand()->getType()).getFixedSize(); in analyzeLoadFromClobberingStore()
223 DL); in analyzeLoadFromClobberingStore()
246 const DataLayout &DL = LI->getModule()->getDataLayout(); in getLoadLoadClobberFullWidthSize() local
251 GetPointerBaseWithConstantOffset(LI->getPointerOperand(), LIOffs, DL); in getLoadLoadClobberFullWidthSize()
290 !DL.fitsInLegalInteger(NewLoadByteSize * 8)) in getLoadLoadClobberFullWidthSize()
315 const DataLayout &DL) { in analyzeLoadFromClobberingLoad() argument
320 if (!canCoerceMustAliasedValueToLoad(DepLI, LoadTy, DL)) in analyzeLoadFromClobberingLoad()
324 uint64_t DepSize = DL.getTypeSizeInBits(DepLI->getType()).getFixedSize(); in analyzeLoadFromClobberingLoad()
325 int R = analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in analyzeLoadFromClobberingLoad()
333 GetPointerBaseWithConstantOffset(LoadPtr, LoadOffs, DL); in analyzeLoadFromClobberingLoad()
334 unsigned LoadSize = DL.getTypeStoreSize(LoadTy).getFixedSize(); in analyzeLoadFromClobberingLoad()
346 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, Size * 8, DL); in analyzeLoadFromClobberingLoad()
350 MemIntrinsic *MI, const DataLayout &DL) { in analyzeLoadFromClobberingMemInst() argument
360 if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in analyzeLoadFromClobberingMemInst()
366 MemSizeInBits, DL); in analyzeLoadFromClobberingMemInst()
384 MemSizeInBits, DL); in analyzeLoadFromClobberingMemInst()
390 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in analyzeLoadFromClobberingMemInst()
391 if (ConstantFoldLoadFromConstPtr(Src, LoadTy, APInt(IndexSize, Offset), DL)) in analyzeLoadFromClobberingMemInst()
398 const DataLayout &DL) { in getStoreValueForLoadHelper() argument
411 (DL.getTypeSizeInBits(SrcVal->getType()).getFixedSize() + 7) / 8; in getStoreValueForLoadHelper()
412 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy).getFixedSize() + 7) / 8; in getStoreValueForLoadHelper()
417 Builder.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
424 if (DL.isLittleEndian()) in getStoreValueForLoadHelper()
443 Instruction *InsertPt, const DataLayout &DL) { in getStoreValueForLoad() argument
446 SrcVal = getStoreValueForLoadHelper(SrcVal, Offset, LoadTy, Builder, DL); in getStoreValueForLoad()
447 return coerceAvailableValueToLoadType(SrcVal, LoadTy, Builder, DL); in getStoreValueForLoad()
451 Type *LoadTy, const DataLayout &DL) { in getConstantStoreValueForLoad() argument
452 return ConstantFoldLoadFromConst(SrcVal, LoadTy, APInt(32, Offset), DL); in getConstantStoreValueForLoad()
461 Instruction *InsertPt, const DataLayout &DL) { in getLoadValueForLoad() argument
465 DL.getTypeStoreSize(SrcVal->getType()).getFixedSize(); in getLoadValueForLoad()
466 unsigned LoadSize = DL.getTypeStoreSize(LoadTy).getFixedSize(); in getLoadValueForLoad()
496 if (DL.isBigEndian()) in getLoadValueForLoad()
504 return getStoreValueForLoad(SrcVal, Offset, LoadTy, InsertPt, DL); in getLoadValueForLoad()
508 Type *LoadTy, const DataLayout &DL) { in getConstantLoadValueForLoad() argument
510 DL.getTypeStoreSize(SrcVal->getType()).getFixedSize(); in getConstantLoadValueForLoad()
511 unsigned LoadSize = DL.getTypeStoreSize(LoadTy).getFixedSize(); in getConstantLoadValueForLoad()
514 return getConstantStoreValueForLoad(SrcVal, Offset, LoadTy, DL); in getConstantLoadValueForLoad()
521 const DataLayout &DL) { in getMemInstValueForLoad() argument
523 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedSize() / 8; in getMemInstValueForLoad()
555 return coerceAvailableValueToLoadType(Val, LoadTy, Builder, DL); in getMemInstValueForLoad()
561 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getMemInstValueForLoad()
563 DL); in getMemInstValueForLoad()
567 Type *LoadTy, const DataLayout &DL) { in getConstantMemInstValueForLoad() argument
569 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedSize() / 8; in getConstantMemInstValueForLoad()
579 return ConstantFoldLoadFromConst(Val, LoadTy, DL); in getConstantMemInstValueForLoad()
585 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getConstantMemInstValueForLoad()
587 DL); in getConstantMemInstValueForLoad()