Lines Matching refs:DestReg

265   Register DestReg = MI.getOperand(0).getReg();
277 BuildMI(LoopMBB, DL, TII->get(getLRForRMW(Ordering, Width, STI)), DestReg)
284 .addReg(DestReg)
301 MachineBasicBlock *MBB, Register DestReg,
317 BuildMI(MBB, DL, TII->get(RISCV::XOR), DestReg)
330 Register DestReg = MI.getOperand(0).getReg();
346 BuildMI(LoopMBB, DL, TII->get(getLRForRMW32(Ordering, STI)), DestReg)
358 .addReg(DestReg)
363 .addReg(DestReg)
368 .addReg(DestReg)
376 insertMaskedMerge(TII, DL, LoopMBB, ScratchReg, DestReg, ScratchReg, MaskReg,
470 Register DestReg = MI.getOperand(0).getReg();
487 BuildMI(LoopHeadMBB, DL, TII->get(getLRForRMW32(Ordering, STI)), DestReg)
490 .addReg(DestReg)
493 .addReg(DestReg)
533 insertMaskedMerge(TII, DL, LoopIfBodyMBB, Scratch1Reg, DestReg, IncrReg,
572 Register DestReg, Register CmpValReg,
581 // If we have a masked cmpxchg, match AND dst, DestReg, MaskReg.
587 if (!(ANDOp1 == DestReg && ANDOp2 == MaskReg) &&
588 !(ANDOp1 == MaskReg && ANDOp2 == DestReg))
591 DestReg = MBBI->getOperand(0).getReg();
596 // Match BNE DestReg, MaskReg.
601 if (!(BNEOp0 == DestReg && BNEOp1 == CmpValReg) &&
602 !(BNEOp0 == CmpValReg && BNEOp1 == DestReg))
607 if (BNEOp0 == DestReg && !MBBI->getOperand(0).isKill())
609 if (BNEOp1 == DestReg && !MBBI->getOperand(1).isKill())
635 Register DestReg = MI.getOperand(0).getReg();
643 tryToFoldBNEOnCmpXchgResult(MBB, std::next(MBBI), DestReg, CmpValReg, MaskReg,
668 DestReg)
671 .addReg(DestReg)
692 DestReg)
695 .addReg(DestReg)
708 insertMaskedMerge(TII, DL, LoopTailMBB, ScratchReg, DestReg, NewValReg,