/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | AntiDepBreaker.h | 59 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 D | LiveRangeEdit.h | 114 LiveInterval &createEmptyIntervalFrom(Register OldReg, bool createSubRanges); 168 Register createFrom(Register OldReg);
|
H A D | LiveDebugVariables.h | 44 void splitRegister(Register OldReg, ArrayRef<Register> NewRegs,
|
H A D | MachineRegisterInfo.h | 861 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 D | ModuloSchedule.h | 232 MachineInstr *Phi, unsigned OldReg,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyPeephole.cpp | 61 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 D | WebAssemblyExplicitLocals.cpp | 342 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 D | MachineCSE.cpp | 635 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 D | LiveRangeEdit.cpp | 34 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 D | OptimizePHIs.cpp | 178 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 D | LiveDebugVariables.cpp | 474 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 D | MachineFunction.cpp | 1042 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 D | ModuloSchedule.cpp | 1146 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 D | GCNRewritePartialRegUses.cpp | 122 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 D | AMDGPUGlobalISelDivergenceLowering.cpp | 74 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 D | SILowerI1Copies.h | 89 virtual void replaceDstReg(Register NewReg, Register OldReg,
|
H A D | SILowerI1Copies.cpp | 75 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 D | AMDGPUMachineCFGStructurizer.cpp | 379 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 D | SIFoldOperands.cpp | 490 Register OldReg = Op1.getReg(); in tryAddToFoldList() local 494 Op2.ChangeToRegister(OldReg, false); in tryAddToFoldList() 497 Op2.setReg(OldReg); in tryAddToFoldList()
|
H A D | AMDGPURegisterBankInfo.cpp | 867 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 D | X86OptimizeLEAs.cpp | 297 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 D | X86FlagsCopyLowering.cpp | 792 Register OldReg = MI.getOperand(0).getReg(); in rewriteSetCC() local 795 MRI->clearKillFlags(OldReg); in rewriteSetCC() 796 MRI->replaceRegWith(OldReg, CondReg); in rewriteSetCC()
|
H A D | X86FloatingPoint.cpp | 987 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 D | CombinerHelper.cpp | 2898 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 D | ARMAsmParser.cpp | 4699 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()
|