Lines Matching refs:PtrAdd

1045     auto *PtrAdd = dyn_cast<GPtrAdd>(&Use);  in findPostIndexCandidate()  local
1048 if (!PtrAdd || MRI.use_nodbg_empty(PtrAdd->getReg(0))) in findPostIndexCandidate()
1056 Offset = PtrAdd->getOffsetReg(); in findPostIndexCandidate()
1058 !TLI.isIndexingLegal(LdSt, PtrAdd->getBaseReg(), Offset, in findPostIndexCandidate()
1073 for (auto &BasePtrUse : MRI.use_nodbg_instructions(PtrAdd->getBaseReg())) { in findPostIndexCandidate()
1104 Addr = PtrAdd->getReg(0); in findPostIndexCandidate()
1105 Base = PtrAdd->getBaseReg(); in findPostIndexCandidate()
2337 auto PtrAdd = Builder.buildPtrAdd(PtrTy, LHS, RHS); in applyCombineAddP2IToPtrAdd() local
2338 Builder.buildPtrToInt(Dst, PtrAdd); in applyCombineAddP2IToPtrAdd()
2344 auto &PtrAdd = cast<GPtrAdd>(MI); in matchCombineConstPtrAddToI2P() local
2345 Register LHS = PtrAdd.getBaseReg(); in matchCombineConstPtrAddToI2P()
2346 Register RHS = PtrAdd.getOffsetReg(); in matchCombineConstPtrAddToI2P()
2352 auto DstTy = MRI.getType(PtrAdd.getReg(0)); in matchCombineConstPtrAddToI2P()
2365 auto &PtrAdd = cast<GPtrAdd>(MI); in applyCombineConstPtrAddToI2P() local
2366 Register Dst = PtrAdd.getReg(0); in applyCombineConstPtrAddToI2P()
2370 PtrAdd.eraseFromParent(); in applyCombineConstPtrAddToI2P()
3404 auto &PtrAdd = cast<GPtrAdd>(MI); in matchPtrAddZero() local
3405 Register DstReg = PtrAdd.getReg(0); in matchPtrAddZero()
3413 auto ConstVal = getIConstantVRegVal(PtrAdd.getBaseReg(), MRI); in matchPtrAddZero()
3418 const MachineInstr *VecMI = MRI.getVRegDef(PtrAdd.getBaseReg()); in matchPtrAddZero()
3423 auto &PtrAdd = cast<GPtrAdd>(MI); in applyPtrAddZero() local
3424 Builder.setInstrAndDebugLoc(PtrAdd); in applyPtrAddZero()
3425 Builder.buildIntToPtr(PtrAdd.getReg(0), PtrAdd.getOffsetReg()); in applyPtrAddZero()
3426 PtrAdd.eraseFromParent(); in applyPtrAddZero()
4510 auto &PtrAdd = cast<GPtrAdd>(MI); in reassociationCanBreakAddressingModePattern() local
4512 Register Src1Reg = PtrAdd.getBaseReg(); in reassociationCanBreakAddressingModePattern()
4517 Register Src2Reg = PtrAdd.getOffsetReg(); in reassociationCanBreakAddressingModePattern()
4533 for (auto &UseMI : MRI.use_nodbg_instructions(PtrAdd.getReg(0))) { in reassociationCanBreakAddressingModePattern()
4557 PtrAdd.getMF()->getFunction().getContext()); in reassociationCanBreakAddressingModePattern()
4558 const auto &TLI = *PtrAdd.getMF()->getSubtarget().getTargetLowering(); in reassociationCanBreakAddressingModePattern()
4559 if (!TLI.isLegalAddressingMode(PtrAdd.getMF()->getDataLayout(), AM, in reassociationCanBreakAddressingModePattern()
4565 if (!TLI.isLegalAddressingMode(PtrAdd.getMF()->getDataLayout(), AM, in reassociationCanBreakAddressingModePattern()
4659 auto &PtrAdd = cast<GPtrAdd>(MI); in matchReassocPtrAdd() local
4672 MachineInstr *LHS = MRI.getVRegDef(PtrAdd.getBaseReg()); in matchReassocPtrAdd()
4673 MachineInstr *RHS = MRI.getVRegDef(PtrAdd.getOffsetReg()); in matchReassocPtrAdd()
4676 if (matchReassocFoldConstantsInSubTree(PtrAdd, LHS, RHS, MatchInfo)) in matchReassocPtrAdd()
4680 if (matchReassocConstantInnerLHS(PtrAdd, LHS, RHS, MatchInfo)) in matchReassocPtrAdd()
4684 if (matchReassocConstantInnerRHS(PtrAdd, RHS, MatchInfo)) in matchReassocPtrAdd()