Lines Matching refs:MRI

169         MachineRegisterInfo &MRI);
171 unsigned &Begin, unsigned &Width, MachineRegisterInfo &MRI);
173 unsigned NewSR, MachineRegisterInfo &MRI);
175 unsigned NewR, unsigned NewSR, MachineRegisterInfo &MRI);
185 const BitTracker::RegisterRef &RR, MachineRegisterInfo &MRI);
187 const BitTracker::RegisterRef &RS, MachineRegisterInfo &MRI);
326 MachineRegisterInfo &MRI) { in replaceReg() argument
330 auto Begin = MRI.use_begin(OldR), End = MRI.use_end(); in replaceReg()
341 unsigned NewSR, MachineRegisterInfo &MRI) { in replaceRegWithSub() argument
345 auto Begin = MRI.use_begin(OldR), End = MRI.use_end(); in replaceRegWithSub()
357 unsigned NewR, unsigned NewSR, MachineRegisterInfo &MRI) { in replaceSubWithSub() argument
361 auto Begin = MRI.use_begin(OldR), End = MRI.use_end(); in replaceSubWithSub()
378 unsigned &Begin, unsigned &Width, MachineRegisterInfo &MRI) { in getSubregMask() argument
379 const TargetRegisterClass *RC = MRI.getRegClass(RR.Reg); in getSubregMask()
864 const BitTracker::RegisterRef &RR, MachineRegisterInfo &MRI) { in getFinalVRegClass() argument
867 auto *RC = MRI.getRegClass(RR.Reg); in getFinalVRegClass()
889 const BitTracker::RegisterRef &RS, MachineRegisterInfo &MRI) { in isTransparentCopy() argument
894 auto *DRC = getFinalVRegClass(RD, MRI); in isTransparentCopy()
898 return DRC == getFinalVRegClass(RS, MRI); in isTransparentCopy()
910 MDT(mdt), MRI(mf.getRegInfo()) {} in DeadCodeElimination()
923 MachineRegisterInfo &MRI; member in __anon3f9b49d70411::DeadCodeElimination
929 for (auto I = MRI.use_begin(R), E = MRI.use_end(); I != E; ++I) { in isDead()
987 MRI.markUsesInDebugValueAsUndef(Regs[i]); in runOnNode()
1011 : Transformation(true), HII(hii), MRI(mri), BT(bt) {} in RedundantInstrElimination()
1024 MachineRegisterInfo &MRI; member in __anon3f9b49d70511::RedundantInstrElimination
1168 for (auto I = MRI.use_begin(R), E = MRI.use_end(); I != E; ++I) { in computeUsedBits()
1171 if (!HBS::getSubregMask(UR, B, W, MRI)) in computeUsedBits()
1216 const TargetRegisterClass *RC = HBS::getFinalVRegClass(RR, MRI); in computeUsedBits()
1239 if (!HBS::getSubregMask(RD, DB, DW, MRI)) in usedBitsEqual()
1242 if (!HBS::getSubregMask(RS, SB, SW, MRI)) in usedBitsEqual()
1286 if (!HBS::isTransparentCopy(RD, RS, MRI)) in processBlock()
1290 if (!HBS::getSubregMask(RS, BN, BW, MRI)) in processBlock()
1299 const TargetRegisterClass *FRC = HBS::getFinalVRegClass(RD, MRI); in processBlock()
1300 unsigned NewR = MRI.createVirtualRegister(FRC); in processBlock()
1303 HBS::replaceSubWithSub(RD.Reg, RD.Sub, NewR, 0, MRI); in processBlock()
1324 : Transformation(true), HII(hii), MRI(mri), BT(bt) {} in ConstGeneration()
1333 MachineRegisterInfo &MRI; member in __anon3f9b49d70611::ConstGeneration
1377 unsigned Reg = MRI.createVirtualRegister(RC); in genTfrConst()
1440 unsigned ImmReg = genTfrConst(MRI.getRegClass(DR), C, B, At, DL); in processBlock()
1442 HBS::replaceReg(DR, ImmReg, MRI); in processBlock()
1468 : Transformation(true), HII(hii), MRI(mri), BT(bt) {} in CopyGeneration()
1475 MachineRegisterInfo &MRI; member in __anon3f9b49d70711::CopyGeneration
1482 : Transformation(false), MRI(mri) {} in CopyPropagation()
1488 MachineRegisterInfo &MRI; member in __anon3f9b49d70711::CopyPropagation
1502 if (!HBS::getSubregMask(Inp, B, W, MRI)) in findMatch()
1506 if (!BT.has(R) || !HBS::isTransparentCopy(R, Inp, MRI)) in findMatch()
1511 if (MRI.getRegClass(Inp.Reg) != MRI.getRegClass(R)) in findMatch()
1524 if (MRI.getRegClass(R) != &Hexagon::DoubleRegsRegClass) in findMatch()
1561 auto *FRC = HBS::getFinalVRegClass(MR, MRI); in processBlock()
1562 unsigned NewR = MRI.createVirtualRegister(FRC); in processBlock()
1602 if (!HBS::isTransparentCopy(RD, RS, MRI)) in propagateRegCopy()
1605 Changed = HBS::replaceRegWithSub(RD.Reg, RS.Reg, RS.Sub, MRI); in propagateRegCopy()
1607 Changed = HBS::replaceReg(RD.Reg, RS.Reg, MRI); in propagateRegCopy()
1614 SL.Reg, SL.Sub, MRI); in propagateRegCopy()
1616 SH.Reg, SH.Sub, MRI); in propagateRegCopy()
1623 RL.Reg, RL.Sub, MRI); in propagateRegCopy()
1625 RH.Reg, RH.Sub, MRI); in propagateRegCopy()
1634 Changed = HBS::replaceSubWithSub(RD.Reg, Sub, RS.Reg, RS.Sub, MRI); in propagateRegCopy()
1670 : Transformation(true), HII(hii), MRI(mri), BT(bt) {} in BitSimplification()
1698 MachineRegisterInfo &MRI; member in __anon3f9b49d70811::BitSimplification
1779 if (!HBS::getFinalVRegClass(RH, MRI)) in matchHalf()
1926 unsigned NewR = MRI.createVirtualRegister(&Hexagon::DoubleRegsRegClass); in genPackhl()
1931 HBS::replaceSubWithSub(RD.Reg, RD.Sub, NewR, 0, MRI); in genPackhl()
1954 NewR = MRI.createVirtualRegister(&Hexagon::IntRegsRegClass); in genExtractHalf()
1958 NewR = MRI.createVirtualRegister(&Hexagon::IntRegsRegClass); in genExtractHalf()
1966 HBS::replaceSubWithSub(RD.Reg, RD.Sub, NewR, 0, MRI); in genExtractHalf()
1991 unsigned NewR = MRI.createVirtualRegister(&Hexagon::IntRegsRegClass); in genCombineHalf()
1995 HBS::replaceSubWithSub(RD.Reg, RD.Sub, NewR, 0, MRI); in genCombineHalf()
2040 if (!HBS::getSubregMask(RS, BN, BW, MRI)) in genExtractLow()
2045 unsigned NewR = MRI.createVirtualRegister(&Hexagon::IntRegsRegClass); in genExtractLow()
2052 HBS::replaceSubWithSub(RD.Reg, RD.Sub, NewR, 0, MRI); in genExtractLow()
2076 if (!BT.has(RS.Reg) || !HBS::getSubregMask(RS, F, W, MRI)) in simplifyTstbit()
2083 const TargetRegisterClass *TC = MRI.getRegClass(V.RefI.Reg); in simplifyTstbit()
2100 unsigned NewR = MRI.createVirtualRegister(&Hexagon::PredRegsRegClass); in simplifyTstbit()
2104 HBS::replaceReg(RD.Reg, NewR, MRI); in simplifyTstbit()
2109 unsigned NewR = MRI.createVirtualRegister(&Hexagon::PredRegsRegClass); in simplifyTstbit()
2112 HBS::replaceReg(RD.Reg, NewR, MRI); in simplifyTstbit()
2150 const TargetRegisterClass *FRC = HBS::getFinalVRegClass(RD, MRI); in processBlock()
2183 MachineRegisterInfo &MRI = MF.getRegInfo(); in runOnMachineFunction() local
2188 const HexagonEvaluator HE(HRI, MRI, HII, MF); in runOnMachineFunction()
2196 ConstGeneration ImmG(BT, HII, MRI); in runOnMachineFunction()
2200 RedundantInstrElimination RIE(BT, HII, MRI); in runOnMachineFunction()
2204 CopyGeneration CopyG(BT, HII, MRI); in runOnMachineFunction()
2208 CopyPropagation CopyP(HRI, MRI); in runOnMachineFunction()
2215 BitSimplification BitS(BT, HII, MRI); in runOnMachineFunction()
2302 HII(0), HRI(0), MRI(0), BTP(0) { in HexagonLoopRescheduling()
2311 MachineRegisterInfo *MRI; member in __anon3f9b49d70911::HexagonLoopRescheduling
2485 const TargetRegisterClass *PhiRC = MRI->getRegClass(NewPredR); in moveGroup()
2486 unsigned PhiR = MRI->createVirtualRegister(PhiRC); in moveGroup()
2497 const TargetRegisterClass *RC = MRI->getRegClass(DR); in moveGroup()
2498 unsigned NewDR = MRI->createVirtualRegister(RC); in moveGroup()
2516 HBS::replaceReg(OldPhiR, RegMap[G.Out.Reg], *MRI); in moveGroup()
2530 for (auto UI = MRI->use_begin(PR), UE = MRI->use_end(); UI != UE; ++UI) { in processLoop()
2583 for (auto UI = MRI->use_begin(DefR), UE = MRI->use_end(); UI != UE; ++UI) { in processLoop()
2689 const MachineInstr *DefPredR = MRI->getVRegDef(F->PR.Reg); in processLoop()
2697 const TargetRegisterClass *RC = MRI->getRegClass(G.Inp.Reg); in processLoop()
2698 if (RC != MRI->getRegClass(F->PR.Reg)) { in processLoop()
2699 PredR = MRI->createVirtualRegister(RC); in processLoop()
2710 assert(MRI->getRegClass(PredR) == MRI->getRegClass(G.Inp.Reg)); in processLoop()
2723 MRI = &MF.getRegInfo(); in runOnMachineFunction()
2724 const HexagonEvaluator HE(*HRI, *MRI, *HII, MF); in runOnMachineFunction()