Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyPeephole.cpp60 static bool maybeRewriteToDrop(unsigned OldReg, unsigned NewReg, in maybeRewriteToDrop() argument
64 if (OldReg == NewReg) { in maybeRewriteToDrop()
66 Register NewReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in maybeRewriteToDrop() local
67 MO.setReg(NewReg); in maybeRewriteToDrop()
69 MFI.stackifyVReg(NewReg); in maybeRewriteToDrop()
120 Register NewReg = MRI.createVirtualRegister(RegClass); in maybeRewriteToFallthrough() local
121 BuildMI(MBB, MI, MI.getDebugLoc(), TII.get(CopyLocalOpc), NewReg) in maybeRewriteToFallthrough()
123 MO.setReg(NewReg); in maybeRewriteToFallthrough()
124 MFI.stackifyVReg(NewReg); in maybeRewriteToFallthrough()
168 Register NewReg = Op2.getReg(); in runOnMachineFunction() local
[all …]
DWebAssemblyExplicitLocals.cpp248 Register NewReg = MRI.createVirtualRegister(RC); in runOnMachineFunction() local
250 BuildMI(MBB, &MI, MI.getDebugLoc(), TII->get(Opc), NewReg) in runOnMachineFunction()
252 MI.getOperand(2).setReg(NewReg); in runOnMachineFunction()
253 MFI.stackifyVReg(NewReg); in runOnMachineFunction()
279 Register NewReg = MRI.createVirtualRegister(RC); in runOnMachineFunction() local
290 .addReg(NewReg); in runOnMachineFunction()
301 .addReg(NewReg); in runOnMachineFunction()
303 MI.getOperand(0).setReg(NewReg); in runOnMachineFunction()
308 MFI.stackifyVReg(NewReg); in runOnMachineFunction()
354 Register NewReg = MRI.createVirtualRegister(RC); in runOnMachineFunction() local
[all …]
DWebAssemblyRegStackify.cpp502 Register NewReg = MRI.createVirtualRegister(MRI.getRegClass(Reg)); in moveForSingleUse() local
503 Def->getOperand(0).setReg(NewReg); in moveForSingleUse()
504 Op.setReg(NewReg); in moveForSingleUse()
507 LIS.createAndComputeVirtRegInterval(NewReg); in moveForSingleUse()
515 MFI.stackifyVReg(NewReg); in moveForSingleUse()
517 DefDIs.updateReg(NewReg); in moveForSingleUse()
538 Register NewReg = MRI.createVirtualRegister(MRI.getRegClass(Reg)); in rematerializeCheapDef() local
539 TII->reMaterialize(MBB, Insert, NewReg, 0, Def, *TRI); in rematerializeCheapDef()
540 Op.setReg(NewReg); in rematerializeCheapDef()
543 LIS.createAndComputeVirtRegInterval(NewReg); in rematerializeCheapDef()
[all …]
DWebAssemblyDebugValueManager.cpp38 unsigned NewReg) { in clone() argument
43 Clone->getOperand(0).setReg(NewReg); in clone()
DWebAssemblyDebugValueManager.h32 void clone(MachineInstr *Insert, unsigned NewReg);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCriticalAntiDepBreaker.cpp359 unsigned NewReg) { in isNewRegClobberedByRefs() argument
374 if (CheckOper.isRegMask() && CheckOper.clobbersPhysReg(NewReg)) in isNewRegClobberedByRefs()
378 CheckOper.getReg() != NewReg) in isNewRegClobberedByRefs()
409 unsigned NewReg = Order[i]; in findSuitableFreeRegister() local
411 if (NewReg == AntiDepReg) continue; in findSuitableFreeRegister()
415 if (NewReg == LastNewReg) continue; in findSuitableFreeRegister()
419 if (isNewRegClobberedByRefs(RegRefBegin, RegRefEnd, NewReg)) continue; in findSuitableFreeRegister()
424 assert(((KillIndices[NewReg] == ~0u) != (DefIndices[NewReg] == ~0u)) in findSuitableFreeRegister()
426 if (KillIndices[NewReg] != ~0u || in findSuitableFreeRegister()
427 Classes[NewReg] == reinterpret_cast<TargetRegisterClass *>(-1) || in findSuitableFreeRegister()
[all …]
DAntiDepBreaker.h59 void UpdateDbgValue(MachineInstr &MI, unsigned OldReg, unsigned NewReg) { in UpdateDbgValue() argument
62 MI.getOperand(0).setReg(NewReg); in UpdateDbgValue()
68 unsigned OldReg, unsigned NewReg) { in UpdateDbgValues() argument
76 UpdateDbgValue(*DbgMI, OldReg, NewReg); in UpdateDbgValues()
DAggressiveAntiDepBreaker.cpp662 unsigned NewReg = 0; in FindSuitableFreeRegisters() local
664 NewReg = NewSuperReg; in FindSuitableFreeRegisters()
668 NewReg = TRI->getSubReg(NewSuperReg, NewSubRegIdx); in FindSuitableFreeRegisters()
671 LLVM_DEBUG(dbgs() << " " << printReg(NewReg, TRI)); in FindSuitableFreeRegisters()
674 if (!RenameRegisterMap[Reg].test(NewReg)) { in FindSuitableFreeRegisters()
683 if (State->IsLive(NewReg) || (KillIndices[Reg] > DefIndices[NewReg])) { in FindSuitableFreeRegisters()
688 for (MCRegAliasIterator AI(NewReg, TRI, false); AI.isValid(); ++AI) { in FindSuitableFreeRegisters()
706 int Idx = UseMI->findRegisterDefOperandIdx(NewReg, false, true, TRI); in FindSuitableFreeRegisters()
724 if (DefMI->readsRegister(NewReg, TRI)) { in FindSuitableFreeRegisters()
731 RenameMap.insert(std::pair<unsigned, unsigned>(Reg, NewReg)); in FindSuitableFreeRegisters()
[all …]
DMachineCSE.cpp600 Register NewReg = CSMI->getOperand(i).getReg(); in ProcessBlockCSE() local
609 if (MO.isImplicit() && !MO.isDead() && OldReg == NewReg) in ProcessBlockCSE()
612 if (OldReg == NewReg) { in ProcessBlockCSE()
618 Register::isVirtualRegister(NewReg) && in ProcessBlockCSE()
621 if (!isProfitableToCSE(NewReg, OldReg, CSMI->getParent(), MI)) { in ProcessBlockCSE()
630 if (!MRI->constrainRegAttrs(NewReg, OldReg)) { in ProcessBlockCSE()
637 CSEPairs.push_back(std::make_pair(OldReg, NewReg)); in ProcessBlockCSE()
645 unsigned NewReg = CSEPair.second; in ProcessBlockCSE() local
647 MachineInstr *Def = MRI->getUniqueVRegDef(NewReg); in ProcessBlockCSE()
649 Def->clearRegisterDeads(NewReg); in ProcessBlockCSE()
[all …]
DModuloSchedule.cpp405 unsigned NewReg = VRMap[PrevStage][LoopVal]; in generateExistingPhis() local
407 InitVal, NewReg); in generateExistingPhis()
420 unsigned NewReg = 0; in generateExistingPhis() local
520 NewReg = PhiOp2; in generateExistingPhis()
527 NewReg = VRMap[ReuseStage - np][LoopVal]; in generateExistingPhis()
530 Def, NewReg); in generateExistingPhis()
532 VRMap[CurStageNum - np][Def] = NewReg; in generateExistingPhis()
533 PhiOp2 = NewReg; in generateExistingPhis()
538 replaceRegUsesAfterLoop(Def, NewReg, BB, MRI, LIS); in generateExistingPhis()
549 NewReg = MRI.createVirtualRegister(RC); in generateExistingPhis()
[all …]
DTailDuplicator.cpp329 void TailDuplicator::addSSAUpdateEntry(unsigned OrigReg, unsigned NewReg, in addSSAUpdateEntry() argument
334 LI->second.push_back(std::make_pair(BB, NewReg)); in addSSAUpdateEntry()
337 Vals.push_back(std::make_pair(BB, NewReg)); in addSSAUpdateEntry()
399 Register NewReg = MRI->createVirtualRegister(RC); in duplicateInstruction() local
400 MO.setReg(NewReg); in duplicateInstruction()
401 LocalVRMap.insert(std::make_pair(Reg, RegSubRegPair(NewReg, 0))); in duplicateInstruction()
403 addSSAUpdateEntry(Reg, NewReg, PredBB); in duplicateInstruction()
443 Register NewReg = MRI->createVirtualRegister(NewRC); in duplicateInstruction() local
445 TII->get(TargetOpcode::COPY), NewReg) in duplicateInstruction()
448 LocalVRMap.insert(std::make_pair(Reg, RegSubRegPair(NewReg, 0))); in duplicateInstruction()
[all …]
DLiveDebugValues.cpp250 unsigned NewReg) { in CreateEntryCopyBackupLoc()
255 VL.Loc.RegNo = NewReg; in CreateEntryCopyBackupLoc()
262 unsigned NewReg) { in CreateCopyLoc()
265 VL.Loc.RegNo = NewReg; in CreateCopyLoc()
521 unsigned NewReg = 0);
859 unsigned NewReg) { in insertTransferDebugPair() argument
879 assert(NewReg && in insertTransferDebugPair()
883 VarLoc VL = VarLoc::CreateCopyLoc(*DebugInstr, LS, NewReg); in insertTransferDebugPair()
905 assert(NewReg && in insertTransferDebugPair()
909 VarLoc VL = VarLoc::CreateCopyLoc(*DebugInstr, LS, NewReg); in insertTransferDebugPair()
DPeepholeOptimizer.cpp825 virtual bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) = 0;
853 bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) override { in RewriteCurrentSource() argument
857 MOSrc.setReg(NewReg); in RewriteCurrentSource()
898 bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) override { in RewriteCurrentSource() argument
942 bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) override { in RewriteCurrentSource() argument
947 MO.setReg(NewReg); in RewriteCurrentSource()
989 bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) override { in RewriteCurrentSource() argument
994 CopyLike.getOperand(CurrentSrcIdx).setReg(NewReg); in RewriteCurrentSource()
1067 bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) override { in RewriteCurrentSource() argument
1074 MO.setReg(NewReg); in RewriteCurrentSource()
DCriticalAntiDepBreaker.h101 unsigned NewReg);
DTwoAddressInstructionPass.cpp777 unsigned NewReg = 0; in scanUses() local
780 NewReg, IsDstPhys)) { in scanUses()
790 VirtRegPairs.push_back(NewReg); in scanUses()
793 bool isNew = SrcRegMap.insert(std::make_pair(NewReg, Reg)).second; in scanUses()
795 assert(SrcRegMap[NewReg] == Reg && "Can't map to two src registers!"); in scanUses()
796 VirtRegPairs.push_back(NewReg); in scanUses()
797 Reg = NewReg; in scanUses()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCallLowering.cpp327 Register NewReg = in handleAssignments() local
329 Handler.assignValueToReg(NewReg, VA.getLocReg(), VA); in handleAssignments()
341 auto Unmerge = MIRBuilder.buildUnmerge({OrigTy, OrigTy}, {NewReg}); in handleAssignments()
344 MIRBuilder.buildTrunc(ArgReg, {NewReg}).getReg(0); in handleAssignments()
475 Register NewReg = MRI.createGenericVirtualRegister(LocTy); in extendRegister() local
476 MIRBuilder.buildSExt(NewReg, ValReg); in extendRegister()
477 return NewReg; in extendRegister()
480 Register NewReg = MRI.createGenericVirtualRegister(LocTy); in extendRegister() local
481 MIRBuilder.buildZExt(NewReg, ValReg); in extendRegister()
482 return NewReg; in extendRegister()
DLocalizer.cpp159 Register NewReg = MRI->createGenericVirtualRegister(MRI->getType(Reg)); in localizeInterBlock() local
160 MRI->setRegClassOrRegBank(NewReg, MRI->getRegClassOrRegBank(Reg)); in localizeInterBlock()
161 LocalizedMI->getOperand(0).setReg(NewReg); in localizeInterBlock()
163 MBBWithLocalDef.insert(std::make_pair(MBBAndReg, NewReg)).first; in localizeInterBlock()
DRegisterBankInfo.cpp469 Register NewReg = *NewRegs.begin(); in applyDefaultMapping() local
471 MO.setReg(NewReg); in applyDefaultMapping()
472 LLVM_DEBUG(dbgs() << " with " << printReg(NewReg, nullptr)); in applyDefaultMapping()
477 LLT NewTy = MRI.getType(NewReg); in applyDefaultMapping()
488 MRI.setType(NewReg, OrigTy); in applyDefaultMapping()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64DeadRegisterDefinitionsPass.cpp161 unsigned NewReg; in processMachineBasicBlock() local
166 NewReg = AArch64::WZR; in processMachineBasicBlock()
168 NewReg = AArch64::XZR; in processMachineBasicBlock()
174 MO.setReg(NewReg); in processMachineBasicBlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86FlagsCopyLowering.cpp996 unsigned NewReg; in rewriteSetCarryExtended() local
1010 NewReg = MRI->createVirtualRegister(&X86::GR32RegClass); in rewriteSetCarryExtended()
1011 BuildMI(MBB, SetPos, SetLoc, TII->get(X86::MOVZX32rr8), NewReg) in rewriteSetCarryExtended()
1014 return NewReg; in rewriteSetCarryExtended()
1015 Reg = NewReg; in rewriteSetCarryExtended()
1019 NewReg = MRI->createVirtualRegister(&SetBRC); in rewriteSetCarryExtended()
1022 NewReg) in rewriteSetCarryExtended()
1033 NewReg) in rewriteSetCarryExtended()
1036 BuildMI(MBB, SetPos, SetLoc, TII->get(TargetOpcode::COPY), NewReg) in rewriteSetCarryExtended()
1039 return NewReg; in rewriteSetCarryExtended()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DDbgEntityHistoryCalculator.cpp186 if (Register NewReg = isDescribedByReg(DV)) { in handleNewDebugValue() local
187 if (!TrackedRegs.count(NewReg)) in handleNewDebugValue()
188 addRegDescribedVar(RegVars, NewReg, Var); in handleNewDebugValue()
190 TrackedRegs[NewReg] = true; in handleNewDebugValue()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DA15SDOptimizer.cpp630 unsigned NewReg = optimizeSDPattern(MI); in runOnInstruction() local
632 if (NewReg != 0) { in runOnInstruction()
641 MRI->constrainRegClass(NewReg, MRI->getRegClass((*I)->getReg())); in runOnInstruction()
644 << printReg(NewReg) << "\n"); in runOnInstruction()
645 (*I)->substVirtReg(NewReg, 0, *TRI); in runOnInstruction()
648 Replacements[MI] = NewReg; in runOnInstruction()
DARMBaseRegisterInfo.cpp355 ARMBaseRegisterInfo::updateRegAllocHint(unsigned Reg, unsigned NewReg, in updateRegAllocHint() argument
370 MRI->setRegAllocationHint(OtherReg, Hint.first, NewReg); in updateRegAllocHint()
371 if (Register::isVirtualRegister(NewReg)) in updateRegAllocHint()
372 MRI->setRegAllocationHint(NewReg, in updateRegAllocHint()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DRDFCopy.cpp179 unsigned NewReg = MinPhysReg(SR); in run() local
180 Op.setReg(NewReg); in run()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DTailDuplicator.h98 void addSSAUpdateEntry(unsigned OrigReg, unsigned NewReg,

12