Lines Matching defs:RootDef
407 ComplexRendererFns tryFoldAddLowIntoImm(MachineInstr &RootDef, unsigned Size,
7409 MachineInstr *RootDef = MRI.getVRegDef(Root.getReg());
7411 MachineOperand &OffImm = RootDef->getOperand(2);
7424 MachineOperand &Base = RootDef->getOperand(1);
7434 AArch64InstructionSelector::tryFoldAddLowIntoImm(MachineInstr &RootDef,
7437 if (RootDef.getOpcode() != AArch64::G_ADD_LOW)
7439 MachineInstr &Adrp = *MRI.getVRegDef(RootDef.getOperand(1).getReg());
7452 auto &MF = *RootDef.getParent()->getParent();
7457 MachineIRBuilder MIRBuilder(RootDef);
7479 MachineInstr *RootDef = MRI.getVRegDef(Root.getReg());
7480 if (RootDef->getOpcode() == TargetOpcode::G_FRAME_INDEX) {
7482 [=](MachineInstrBuilder &MIB) { MIB.add(RootDef->getOperand(1)); },
7490 auto OpFns = tryFoldAddLowIntoImm(*RootDef, Size, MRI);
7496 MachineOperand &LHS = RootDef->getOperand(1);
7497 MachineOperand &RHS = RootDef->getOperand(2);
7673 MachineInstr *RootDef = getDefIgnoringCopies(Root.getReg(), MRI);
7674 if (!RootDef)
7677 if (!isWorthFoldingIntoExtendedReg(*RootDef, MRI, false))
7681 if (RootDef->getOpcode() == TargetOpcode::G_SHL) {
7683 MachineOperand &RHS = RootDef->getOperand(2);
7691 MachineOperand &LHS = RootDef->getOperand(1);
7701 Ext = getExtendTypeForInst(*RootDef, MRI);
7704 ExtReg = RootDef->getOperand(1).getReg();
7719 MachineIRBuilder MIB(*RootDef);