Lines Matching refs:TD
229 // We need TD information to know the pointer size unless this is inbounds.
230 if (!GEP->isInBounds() && TD == 0)
319 CompareRHS, TD, TLI);
398 Type *IntPtrTy = TD->getIntPtrType(GEP->getType());
487 else if (TD)
488 Ty = TD->getSmallestLegalIntType(Init->getContext(), ArrayElementCount);
515 DataLayout &TD = *IC.getDataLayout();
532 Offset += TD.getStructLayout(STy)->getElementOffset(CI->getZExtValue());
534 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType());
550 uint64_t VariableScale = TD.getTypeAllocSize(GTI.getIndexedType());
562 Offset += TD.getStructLayout(STy)->getElementOffset(CI->getZExtValue());
564 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType());
574 Type *IntPtrTy = TD.getIntPtrType(GEP->getOperand(0)->getType());
627 if (TD && PtrBase == RHS && GEPLHS->isInBounds()) {
660 if (TD && GEPLHS->isInBounds() && GEPRHS->isInBounds() &&
731 if (TD &&
1795 if (TD && LHSCI->getOpcode() == Instruction::PtrToInt &&
1796 TD->getPointerTypeSizeInBits(SrcTy) == DestTy->getIntegerBitWidth()) {
2107 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, TD))
2175 else if (TD) // Pointers require TD info to get their size.
2176 BitWidth = TD->getTypeSizeInBits(Ty->getScalarType());
2535 if (RHSC->isNullValue() && TD &&
2536 TD->getIntPtrType(RHSC->getType()) ==
3232 if (Value *V = SimplifyFCmpInst(I.getPredicate(), Op0, Op1, TD))