• Home
  • Raw
  • Download

Lines Matching refs:DL

29                       const DataLayout &DL) {  in isAligned()  argument
30 APInt BaseAlign(Offset.getBitWidth(), Base->getPointerAlignment(DL)); in isAligned()
36 BaseAlign = DL.getABITypeAlignment(Ty); in isAligned()
45 static bool isAligned(const Value *Base, unsigned Align, const DataLayout &DL) { in isAligned() argument
48 APInt Offset(DL.getTypeStoreSizeInBits(Ty), 0); in isAligned()
49 return isAligned(Base, Offset, Align, DL); in isAligned()
55 const Value *V, unsigned Align, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() argument
64 DL, CtxI, DT, Visited); in isDereferenceableAndAlignedPointer()
68 V->getPointerDereferenceableBytes(DL, CheckForNonNull)); in isDereferenceableAndAlignedPointer()
72 return isAligned(V, Align, DL); in isDereferenceableAndAlignedPointer()
79 APInt Offset(DL.getPointerTypeSizeInBits(GEP->getType()), 0); in isDereferenceableAndAlignedPointer()
80 if (!GEP->accumulateConstantOffset(DL, Offset) || Offset.isNegative() || in isDereferenceableAndAlignedPointer()
91 isDereferenceableAndAlignedPointer(Base, Align, Offset + Size, DL, in isDereferenceableAndAlignedPointer()
98 RelocateInst->getDerivedPtr(), Align, Size, DL, CtxI, DT, Visited); in isDereferenceableAndAlignedPointer()
102 DL, CtxI, DT, Visited); in isDereferenceableAndAlignedPointer()
106 return isDereferenceableAndAlignedPointer(RV, Align, Size, DL, CtxI, DT, in isDereferenceableAndAlignedPointer()
114 const DataLayout &DL, in isDereferenceableAndAlignedPointer() argument
126 Align = DL.getABITypeAlignment(Ty); in isDereferenceableAndAlignedPointer()
133 V, Align, APInt(DL.getTypeSizeInBits(VTy), DL.getTypeStoreSize(Ty)), DL, in isDereferenceableAndAlignedPointer()
137 bool llvm::isDereferenceablePointer(const Value *V, const DataLayout &DL, in isDereferenceablePointer() argument
140 return isDereferenceableAndAlignedPointer(V, 1, DL, CtxI, DT); in isDereferenceablePointer()
186 const DataLayout &DL, in isSafeToLoadUnconditionally() argument
191 Align = DL.getABITypeAlignment(V->getType()->getPointerElementType()); in isSafeToLoadUnconditionally()
196 if (isDereferenceableAndAlignedPointer(V, Align, DL, CtxI, DT)) in isSafeToLoadUnconditionally()
201 Base = GetPointerBaseWithConstantOffset(V, ByteOffset, DL); in isSafeToLoadUnconditionally()
223 uint64_t LoadSize = DL.getTypeStoreSize(AddrTy->getElementType()); in isSafeToLoadUnconditionally()
231 BaseAlign = DL.getPrefTypeAlignment(BaseType); in isSafeToLoadUnconditionally()
235 if (ByteOffset + LoadSize <= DL.getTypeAllocSize(BaseType) && in isSafeToLoadUnconditionally()
278 AccessedAlign = DL.getABITypeAlignment(AccessedTy); in isSafeToLoadUnconditionally()
287 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()
324 const DataLayout &DL = ScanBB->getModule()->getDataLayout(); in FindAvailableLoadedValue() local
327 uint64_t AccessSize = DL.getTypeStoreSize(AccessTy); in FindAvailableLoadedValue()
352 CastInst::isBitOrNoopPointerCastable(LI->getType(), AccessTy, DL)) { in FindAvailableLoadedValue()
373 AccessTy, DL)) { in FindAvailableLoadedValue()