Lines Matching refs:TD
87 static uint64_t getObjectSize(const Value *V, const DataLayout &TD, in getObjectSize() argument
91 if (getObjectSize(V, Size, &TD, &TLI, RoundToAlign)) in getObjectSize()
99 const DataLayout &TD, in isObjectSmallerThan() argument
132 uint64_t ObjectSize = getObjectSize(V, TD, TLI, /*RoundToAlign*/true); in isObjectSmallerThan()
140 const DataLayout &TD, const TargetLibraryInfo &TLI) { in isObjectSize() argument
141 uint64_t ObjectSize = getObjectSize(V, TD, TLI); in isObjectSize()
194 const DataLayout &TD, unsigned Depth) { in GetLinearExpression() argument
211 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), &TD)) in GetLinearExpression()
216 TD, Depth+1); in GetLinearExpression()
221 TD, Depth+1); in GetLinearExpression()
227 TD, Depth+1); in GetLinearExpression()
248 TD, Depth+1); in GetLinearExpression()
276 const DataLayout *TD) { in DecomposeGEPExpression() argument
307 SimplifyInstruction(const_cast<Instruction *>(I), TD)) { in DecomposeGEPExpression()
323 if (TD == 0) { in DecomposeGEPExpression()
341 BaseOffs += TD->getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
348 BaseOffs += TD->getTypeAllocSize(*GTI)*CIdx->getSExtValue(); in DecomposeGEPExpression()
352 uint64_t Scale = TD->getTypeAllocSize(*GTI); in DecomposeGEPExpression()
358 if (TD->getPointerSizeInBits() > Width) in DecomposeGEPExpression()
364 *TD, 0); in DecomposeGEPExpression()
387 if (unsigned ShiftBits = 64-TD->getPointerSizeInBits()) { in DecomposeGEPExpression()
593 const Value *V = GetUnderlyingObject(Worklist.pop_back_val(), TD); in pointsToConstantMemory()
698 const Value *Object = GetUnderlyingObject(Loc.Ptr, TD); in getModRefInfo()
805 TD ? TD->getTypeStoreSize(II->getType()) : UnknownSize; in getModRefInfo()
814 TD ? TD->getTypeStoreSize(II->getArgOperand(1)->getType()) : UnknownSize; in getModRefInfo()
911 DecomposeGEPExpression(GEP2, GEP2BaseOffset, GEP2VariableIndices, TD); in aliasGEP()
913 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD); in aliasGEP()
917 assert(TD == 0 && in aliasGEP()
937 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD); in aliasGEP()
942 DecomposeGEPExpression(GEP2, GEP2BaseOffset, GEP2VariableIndices, TD); in aliasGEP()
947 assert(TD == 0 && in aliasGEP()
977 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD); in aliasGEP()
982 assert(TD == 0 && in aliasGEP()
1197 const Value *O1 = GetUnderlyingObject(V1, TD); in aliasCheck()
1198 const Value *O2 = GetUnderlyingObject(V2, TD); in aliasCheck()
1247 if (TD) in aliasCheck()
1248 if ((V1Size != UnknownSize && isObjectSmallerThan(O2, V1Size, *TD, *TLI)) || in aliasCheck()
1249 (V2Size != UnknownSize && isObjectSmallerThan(O1, V2Size, *TD, *TLI))) in aliasCheck()
1301 if (TD && O1 == O2) in aliasCheck()
1302 if ((V1Size != UnknownSize && isObjectSize(O1, V1Size, *TD, *TLI)) || in aliasCheck()
1303 (V2Size != UnknownSize && isObjectSize(O2, V2Size, *TD, *TLI))) in aliasCheck()