Home
last modified time | relevance | path

Searched refs:OldReg (Results 1 – 25 of 25) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAntiDepBreaker.h59 void UpdateDbgValue(MachineInstr &MI, unsigned OldReg, unsigned NewReg) {
62 MI.getDebugOperand(0).getReg() == OldReg) in UpdateDbgValue()
66 MI.getOperand(0).getReg() == OldReg) in UpdateDbgValue()
76 unsigned OldReg, unsigned NewReg) { in UpdateDbgValues()
84 UpdateDbgValue(*DbgMI, OldReg, NewReg); in UpdateDbgValues()
60 UpdateDbgValue(MachineInstr & MI,unsigned OldReg,unsigned NewReg) UpdateDbgValue() argument
77 UpdateDbgValues(const DbgValueVector & DbgValues,MachineInstr * ParentMI,unsigned OldReg,unsigned NewReg) UpdateDbgValues() argument
H A DLiveRangeEdit.h114 LiveInterval &createEmptyIntervalFrom(Register OldReg, bool createSubRanges);
168 Register createFrom(Register OldReg);
H A DLiveDebugVariables.h44 void splitRegister(Register OldReg, ArrayRef<Register> NewRegs,
H A DMachineRegisterInfo.h861 void updateDbgUsersToReg(MCRegister OldReg, MCRegister NewReg, in updateDbgUsersToReg() argument
865 auto UpdateOp = [this, &NewReg, &OldReg](MachineOperand &Op) { in updateDbgUsersToReg()
867 getTargetRegisterInfo()->regsOverlap(Op.getReg(), OldReg)) in updateDbgUsersToReg()
H A DModuloSchedule.h232 MachineInstr *Phi, unsigned OldReg,
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyPeephole.cpp61 static bool maybeRewriteToDrop(unsigned OldReg, unsigned NewReg, in maybeRewriteToDrop() argument
65 if (OldReg == NewReg) { in maybeRewriteToDrop()
67 Register NewReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in maybeRewriteToDrop()
146 Register OldReg = MO.getReg(); in runOnMachineFunction() local
149 if (MRI.getRegClass(NewReg) != MRI.getRegClass(OldReg)) in runOnMachineFunction()
152 Changed |= maybeRewriteToDrop(OldReg, NewReg, MO, MFI, MRI); in runOnMachineFunction()
H A DWebAssemblyExplicitLocals.cpp342 Register OldReg = Def.getReg(); in runOnMachineFunction() local
343 if (!MFI.isVRegStackified(OldReg)) { in runOnMachineFunction()
344 const TargetRegisterClass *RC = MRI.getRegClass(OldReg); in runOnMachineFunction()
347 if (UseEmpty[Register::virtReg2Index(OldReg)]) { in runOnMachineFunction()
354 if (MFI.isFrameBaseVirtual() && OldReg == MFI.getFrameBaseVreg()) in runOnMachineFunction()
357 unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); in runOnMachineFunction()
382 Register OldReg = MO.getReg(); in runOnMachineFunction() local
389 unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); in runOnMachineFunction()
399 if (MFI.isVRegStackified(OldReg)) { in runOnMachineFunction()
407 unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); in runOnMachineFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineCSE.cpp635 Register OldReg = MO.getReg(); in ProcessBlockCSE() local
645 if (MO.isImplicit() && !MO.isDead() && OldReg == NewReg) in ProcessBlockCSE()
646 ImplicitDefs.push_back(OldReg); in ProcessBlockCSE()
648 if (OldReg == NewReg) { in ProcessBlockCSE()
653 assert(OldReg.isVirtual() && NewReg.isVirtual() && in ProcessBlockCSE()
656 if (!isProfitableToCSE(NewReg, OldReg, CSMI->getParent(), &MI)) { in ProcessBlockCSE()
665 if (!MRI->constrainRegAttrs(NewReg, OldReg)) { in ProcessBlockCSE()
672 CSEPairs.push_back(std::make_pair(OldReg, NewReg)); in ProcessBlockCSE()
679 unsigned OldReg = CSEPair.first; in ProcessBlockCSE() local
686 MRI->replaceRegWith(OldReg, NewReg); in ProcessBlockCSE()
H A DLiveRangeEdit.cpp34 LiveInterval &LiveRangeEdit::createEmptyIntervalFrom(Register OldReg, in createEmptyIntervalFrom() argument
36 Register VReg = MRI.cloneVirtualRegister(OldReg); in createEmptyIntervalFrom()
38 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createEmptyIntervalFrom()
47 LiveInterval &OldLI = LIS.getInterval(OldReg); in createEmptyIntervalFrom()
55 Register LiveRangeEdit::createFrom(Register OldReg) { in createFrom() argument
56 Register VReg = MRI.cloneVirtualRegister(OldReg); in createFrom()
58 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createFrom()
H A DOptimizePHIs.cpp178 Register OldReg = MI->getOperand(0).getReg(); in OptimizeBB() local
179 if (!MRI->constrainRegClass(SingleValReg, MRI->getRegClass(OldReg))) in OptimizeBB()
182 MRI->replaceRegWith(OldReg, SingleValReg); in OptimizeBB()
H A DLiveDebugVariables.cpp474 bool splitRegister(Register OldReg, ArrayRef<Register> NewRegs,
663 void splitPHIRegister(Register OldReg, ArrayRef<Register> NewRegs);
666 void splitRegister(Register OldReg, ArrayRef<Register> NewRegs);
1433 UserValue::splitRegister(Register OldReg, ArrayRef<Register> NewRegs, in splitRegister() argument
1441 if (!Loc->isReg() || Loc->getReg() != OldReg) in splitRegister()
1448 void LDVImpl::splitPHIRegister(Register OldReg, ArrayRef<Register> NewRegs) { in splitPHIRegister() argument
1449 auto RegIt = RegToPHIIdx.find(OldReg); in splitPHIRegister()
1459 assert(OldReg == PHIIt->second.Reg); in splitPHIRegister()
1486 void LDVImpl::splitRegister(Register OldReg, ArrayRef<Register> NewRegs) { in splitRegister() argument
1488 splitPHIRegister(OldReg, NewRegs); in splitRegister()
[all …]
H A DMachineFunction.cpp1042 Register NewReg, OldReg; in salvageCopySSAImpl() local
1045 OldReg = Cpy.getOperand(0).getReg(); in salvageCopySSAImpl()
1049 OldReg = Cpy.getOperand(0).getReg(); in salvageCopySSAImpl()
1056 OldReg = Dest.getReg(); in salvageCopySSAImpl()
H A DModuloSchedule.cpp1146 unsigned PhiNum, MachineInstr *Phi, unsigned OldReg, unsigned NewReg, in rewriteScheduledInstr() argument
1153 llvm::make_early_inc_range(MRI.use_operands(OldReg))) { in rewriteScheduledInstr()
1160 if (getLoopPhiReg(*UseMI, BB) != OldReg) in rewriteScheduledInstr()
1190 MRI.constrainRegClass(ReplaceReg, MRI.getRegClass(OldReg)); in rewriteScheduledInstr()
1194 Register SplitReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in rewriteScheduledInstr()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNRewritePartialRegUses.cpp122 void updateLiveIntervals(Register OldReg, Register NewReg,
348 void GCNRewritePartialRegUses::updateLiveIntervals(Register OldReg, in updateLiveIntervals() argument
351 if (!LIS->hasInterval(OldReg)) in updateLiveIntervals()
354 auto &OldLI = LIS->getInterval(OldReg); in updateLiveIntervals()
384 LIS->removeInterval(OldReg); in updateLiveIntervals()
401 LIS->removeInterval(OldReg); in updateLiveIntervals()
H A DAMDGPUGlobalISelDivergenceLowering.cpp74 void replaceDstReg(Register NewReg, Register OldReg,
123 void DivergenceLoweringHelper::replaceDstReg(Register NewReg, Register OldReg, in replaceDstReg() argument
125 BuildMI(*MBB, MBB->getFirstNonPHI(), {}, TII->get(AMDGPU::COPY), OldReg) in replaceDstReg()
H A DSILowerI1Copies.h89 virtual void replaceDstReg(Register NewReg, Register OldReg,
H A DSILowerI1Copies.cpp75 void replaceDstReg(Register NewReg, Register OldReg,
848 void Vreg1LoweringHelper::replaceDstReg(Register NewReg, Register OldReg, in replaceDstReg() argument
850 MRI->replaceRegWith(NewReg, OldReg); in replaceDstReg()
H A DAMDGPUMachineCFGStructurizer.cpp379 void replaceLiveOut(unsigned OldReg, unsigned NewReg);
880 void LinearizedRegion::replaceLiveOut(unsigned OldReg, unsigned NewReg) { in replaceLiveOut() argument
881 if (isLiveOut(OldReg)) { in replaceLiveOut()
882 removeLiveOut(OldReg); in replaceLiveOut()
H A DSIFoldOperands.cpp490 Register OldReg = Op1.getReg(); in tryAddToFoldList() local
494 Op2.ChangeToRegister(OldReg, false); in tryAddToFoldList()
497 Op2.setReg(OldReg); in tryAddToFoldList()
H A DAMDGPURegisterBankInfo.cpp867 Register OldReg = Op.getReg(); in executeInWaterfallLoop() local
868 if (!SGPROperandRegs.count(OldReg)) in executeInWaterfallLoop()
873 auto OldVal = WaterfalledRegMap.find(OldReg); in executeInWaterfallLoop()
932 WaterfalledRegMap.insert(std::pair(OldReg, Op.getReg())); in executeInWaterfallLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp297 MachineInstr *replaceDebugValue(MachineInstr &MI, unsigned OldReg,
575 unsigned OldReg, in replaceDebugValue() argument
588 for (MachineOperand &Op : MI.getDebugOperandsForReg(OldReg)) { in replaceDebugValue()
608 auto replaceOldReg = [OldReg, NewReg](const MachineOperand &Op) { in replaceDebugValue()
609 if (Op.isReg() && Op.getReg() == OldReg) in replaceDebugValue()
H A DX86FlagsCopyLowering.cpp792 Register OldReg = MI.getOperand(0).getReg(); in rewriteSetCC() local
795 MRI->clearKillFlags(OldReg); in rewriteSetCC()
796 MRI->replaceRegWith(OldReg, CondReg); in rewriteSetCC()
H A DX86FloatingPoint.cpp987 unsigned OldReg = getStackEntry(FixCount); in shuffleStackTop() local
990 if (Reg == OldReg) in shuffleStackTop()
995 moveToTop(OldReg, I); in shuffleStackTop()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp2898 Register OldReg = MI.getOperand(0).getReg(); in replaceSingleDefInstWithOperand() local
2900 assert(canReplaceReg(OldReg, Replacement, MRI) && "Cannot replace register?"); in replaceSingleDefInstWithOperand()
2902 replaceRegWith(MRI, OldReg, Replacement); in replaceSingleDefInstWithOperand()
2908 Register OldReg = MI.getOperand(0).getReg(); in replaceSingleDefInstWithReg() local
2909 assert(canReplaceReg(OldReg, Replacement, MRI) && "Cannot replace register?"); in replaceSingleDefInstWithReg()
2911 replaceRegWith(MRI, OldReg, Replacement); in replaceSingleDefInstWithReg()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/
H A DARMAsmParser.cpp4699 int OldReg = Reg; in parseRegisterList() local
4741 MRI->getEncodingValue(Reg) < MRI->getEncodingValue(OldReg)) { in parseRegisterList()
4750 Reg != OldReg + 1) in parseRegisterList()
4960 int OldReg = Reg; in parseVectorList() local
4984 if (Reg != OldReg + 1) in parseVectorList()
5002 Spacing = 1 + (Reg == OldReg + 2); in parseVectorList()
5005 if (Reg != OldReg + Spacing) in parseVectorList()