Lines Matching defs:PtrA
299 /// Tries to compute the offset in bytes PtrB - PtrA.
300 std::optional<APInt> getConstantOffset(Value *PtrA, Value *PtrB,
303 std::optional<APInt> getConstantOffsetComplexAddrs(Value *PtrA, Value *PtrB,
306 std::optional<APInt> getConstantOffsetSelects(Value *PtrA, Value *PtrB,
1175 Value *PtrA, Value *PtrB, Instruction *ContextInst, unsigned Depth) {
1176 LLVM_DEBUG(dbgs() << "LSV: getConstantOffsetComplexAddrs PtrA=" << *PtrA
1179 auto *GEPA = dyn_cast<GetElementPtrInst>(PtrA);
1182 return getConstantOffsetSelects(PtrA, PtrB, ContextInst, Depth);
1288 Value *PtrA, Value *PtrB, Instruction *ContextInst, unsigned Depth) {
1292 if (auto *SelectA = dyn_cast<SelectInst>(PtrA)) {
1296 LLVM_DEBUG(dbgs() << "LSV: getConstantOffsetSelects, PtrA=" << *PtrA
1592 std::optional<APInt> Vectorizer::getConstantOffset(Value *PtrA, Value *PtrB,
1595 LLVM_DEBUG(dbgs() << "LSV: getConstantOffset, PtrA=" << *PtrA
1600 unsigned OrigBitWidth = DL.getIndexTypeSizeInBits(PtrA->getType());
1603 PtrA = PtrA->stripAndAccumulateInBoundsConstantOffsets(DL, OffsetA);
1605 unsigned NewPtrBitWidth = DL.getTypeStoreSizeInBits(PtrA->getType());
1617 if (PtrA == PtrB)
1621 const SCEV *DistScev = SE.getMinusSCEV(SE.getSCEV(PtrB), SE.getSCEV(PtrA));
1623 LLVM_DEBUG(dbgs() << "LSV: SCEV PtrB - PtrA =" << *DistScev << "\n");
1633 getConstantOffsetComplexAddrs(PtrA, PtrB, ContextInst, Depth))