Home
last modified time | relevance | path

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

12

/external/llvm/lib/CodeGen/
DCriticalAntiDepBreaker.cpp332 unsigned NewReg) in isNewRegClobberedByRefs() argument
348 if (CheckOper.isRegMask() && CheckOper.clobbersPhysReg(NewReg)) in isNewRegClobberedByRefs()
352 CheckOper.getReg() != NewReg) in isNewRegClobberedByRefs()
384 unsigned NewReg = Order[i]; in findSuitableFreeRegister() local
386 if (NewReg == AntiDepReg) continue; in findSuitableFreeRegister()
390 if (NewReg == LastNewReg) continue; in findSuitableFreeRegister()
394 if (isNewRegClobberedByRefs(RegRefBegin, RegRefEnd, NewReg)) continue; in findSuitableFreeRegister()
399 assert(((KillIndices[NewReg] == ~0u) != (DefIndices[NewReg] == ~0u)) in findSuitableFreeRegister()
401 if (KillIndices[NewReg] != ~0u || in findSuitableFreeRegister()
402 Classes[NewReg] == reinterpret_cast<TargetRegisterClass *>(-1) || in findSuitableFreeRegister()
[all …]
DAggressiveAntiDepBreaker.cpp641 unsigned NewReg = 0; in FindSuitableFreeRegisters() local
643 NewReg = NewSuperReg; in FindSuitableFreeRegisters()
647 NewReg = TRI->getSubReg(NewSuperReg, NewSubRegIdx); in FindSuitableFreeRegisters()
650 DEBUG(dbgs() << " " << TRI->getName(NewReg)); in FindSuitableFreeRegisters()
654 if (!BV.test(NewReg)) { in FindSuitableFreeRegisters()
663 if (State->IsLive(NewReg) || (KillIndices[Reg] > DefIndices[NewReg])) { in FindSuitableFreeRegisters()
668 for (MCRegAliasIterator AI(NewReg, TRI, false); AI.isValid(); ++AI) { in FindSuitableFreeRegisters()
685 int Idx = UseMI->findRegisterDefOperandIdx(NewReg, false, true, TRI); in FindSuitableFreeRegisters()
703 if (DefMI->readsRegister(NewReg, TRI)) { in FindSuitableFreeRegisters()
710 RenameMap.insert(std::pair<unsigned, unsigned>(Reg, NewReg)); in FindSuitableFreeRegisters()
[all …]
DMachineCSE.cpp541 unsigned NewReg = CSMI->getOperand(i).getReg(); in ProcessBlock() local
550 if (MO.isImplicit() && !MO.isDead() && OldReg == NewReg) in ProcessBlock()
553 if (OldReg == NewReg) { in ProcessBlock()
559 TargetRegisterInfo::isVirtualRegister(NewReg) && in ProcessBlock()
562 if (!isProfitableToCSE(NewReg, OldReg, CSMI, MI)) { in ProcessBlock()
571 if (!MRI->constrainRegClass(NewReg, OldRC)) { in ProcessBlock()
577 CSEPairs.push_back(std::make_pair(OldReg, NewReg)); in ProcessBlock()
585 unsigned NewReg = CSEPairs[i].second; in ProcessBlock() local
587 MachineInstr *Def = MRI->getUniqueVRegDef(NewReg); in ProcessBlock()
589 Def->clearRegisterDeads(NewReg); in ProcessBlock()
[all …]
DAntiDepBreaker.h58 void UpdateDbgValue(MachineInstr *MI, unsigned OldReg, unsigned NewReg) { in UpdateDbgValue() argument
61 MI->getOperand(0).setReg(NewReg); in UpdateDbgValue()
DTailDuplication.cpp89 void AddSSAUpdateEntry(unsigned OrigReg, unsigned NewReg,
379 void TailDuplicatePass::AddSSAUpdateEntry(unsigned OrigReg, unsigned NewReg, in AddSSAUpdateEntry() argument
383 LI->second.push_back(std::make_pair(BB, NewReg)); in AddSSAUpdateEntry()
386 Vals.push_back(std::make_pair(BB, NewReg)); in AddSSAUpdateEntry()
441 unsigned NewReg = MRI->createVirtualRegister(RC); in DuplicateInstruction() local
442 MO.setReg(NewReg); in DuplicateInstruction()
443 LocalVRMap.insert(std::make_pair(Reg, NewReg)); in DuplicateInstruction()
445 AddSSAUpdateEntry(Reg, NewReg, PredBB); in DuplicateInstruction()
DLiveDebugVariables.h48 void renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx);
DPeepholeOptimizer.cpp804 virtual bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) { in RewriteCurrentSource() argument
808 MOSrc.setReg(NewReg); in RewriteCurrentSource()
1005 bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) override { in RewriteCurrentSource() argument
1010 MO.setReg(NewReg); in RewriteCurrentSource()
1054 bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) override { in RewriteCurrentSource() argument
1059 CopyLike.getOperand(CurrentSrcIdx).setReg(NewReg); in RewriteCurrentSource()
1133 bool RewriteCurrentSource(unsigned NewReg, unsigned NewSubReg) override { in RewriteCurrentSource() argument
1140 MO.setReg(NewReg); in RewriteCurrentSource()
DCriticalAntiDepBreaker.h98 unsigned NewReg);
DTwoAddressInstructionPass.cpp738 unsigned NewReg = 0; in scanUses() local
741 NewReg, IsDstPhys)) { in scanUses()
751 VirtRegPairs.push_back(NewReg); in scanUses()
754 bool isNew = SrcRegMap.insert(std::make_pair(NewReg, Reg)).second; in scanUses()
756 assert(SrcRegMap[NewReg] == Reg && "Can't map to two src registers!"); in scanUses()
757 VirtRegPairs.push_back(NewReg); in scanUses()
758 Reg = NewReg; in scanUses()
DRegisterCoalescer.cpp681 unsigned NewReg = NewDstMO.getReg(); in removeCopyByCommutingDef() local
682 if (NewReg != IntB.reg || !IntB.Query(AValNo->def).isKill()) in removeCopyByCommutingDef()
746 UseMO.setReg(NewReg); in removeCopyByCommutingDef()
756 if (TargetRegisterInfo::isPhysicalRegister(NewReg)) in removeCopyByCommutingDef()
757 UseMO.substPhysReg(NewReg, *TRI); in removeCopyByCommutingDef()
759 UseMO.setReg(NewReg); in removeCopyByCommutingDef()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyPeephole.cpp76 unsigned NewReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in runOnMachineFunction() local
77 MO.setReg(NewReg); in runOnMachineFunction()
79 MFI.stackifyVReg(NewReg); in runOnMachineFunction()
80 MFI.addWAReg(NewReg, WebAssemblyFunctionInfo::UnusedReg); in runOnMachineFunction()
/external/llvm/lib/Target/AArch64/
DAArch64DeadRegisterDefinitionsPass.cpp110 unsigned NewReg; in processMachineBasicBlock() local
116 NewReg = AArch64::WZR; in processMachineBasicBlock()
119 NewReg = AArch64::XZR; in processMachineBasicBlock()
123 MO.setReg(NewReg); in processMachineBasicBlock()
/external/v8/test/unittests/compiler/
Dinstruction-sequence-unittest.cc148 VReg vreg = NewReg(); in Define()
173 auto phi = new (zone()) PhiInstruction(zone(), NewReg().value_, input_count); in Phi()
184 auto phi = new (zone()) PhiInstruction(zone(), NewReg().value_, input_count); in Phi()
200 VReg vreg = NewReg(); in DefineConstant()
239 VReg output_vreg = NewReg(); in EmitOI()
258 VRegPair output_vregs = std::make_pair(NewReg(), NewReg()); in EmitOOI()
279 VReg output_vreg = NewReg(); in EmitCall()
Dinstruction-sequence-unittest.h185 VReg NewReg() { return VReg(sequence()->NextVirtualRegister()); } in NewReg() function
/external/llvm/lib/Target/ARM/
DA15SDOptimizer.cpp658 unsigned NewReg = optimizeSDPattern(MI); in runOnInstruction() local
660 if (NewReg != 0) { in runOnInstruction()
669 MRI->constrainRegClass(NewReg, MRI->getRegClass((*I)->getReg())); in runOnInstruction()
673 << PrintReg(NewReg) << "\n"); in runOnInstruction()
674 (*I)->substVirtReg(NewReg, 0, *TRI); in runOnInstruction()
677 Replacements[MI] = NewReg; in runOnInstruction()
DARMBaseRegisterInfo.cpp279 ARMBaseRegisterInfo::updateRegAllocHint(unsigned Reg, unsigned NewReg, in updateRegAllocHint() argument
294 MRI->setRegAllocationHint(OtherReg, Hint.first, NewReg); in updateRegAllocHint()
295 if (TargetRegisterInfo::isVirtualRegister(NewReg)) in updateRegAllocHint()
296 MRI->setRegAllocationHint(NewReg, in updateRegAllocHint()
DARMBaseRegisterInfo.h132 void updateRegAllocHint(unsigned Reg, unsigned NewReg,
DARMBaseInstrInfo.cpp2738 unsigned NewReg = MRI->createVirtualRegister(MRI->getRegClass(Reg)); in FoldImmediate() local
2741 get(NewUseOpc), NewReg) in FoldImmediate()
2745 UseMI->getOperand(1).setReg(NewReg); in FoldImmediate()
/external/llvm/lib/CodeGen/AsmPrinter/
DDbgValueHistoryCalculator.cpp217 if (unsigned NewReg = isDescribedByReg(MI)) in calculateDbgValueHistory() local
218 addRegDescribedVar(RegVars, NewReg, Var); in calculateDbgValueHistory()
/external/llvm/utils/TableGen/
DCodeGenRegisters.cpp586 Record *NewReg = new Record(Name, Def->getLoc(), Def->getRecords()); in expand() local
587 Elts.insert(NewReg); in expand()
593 NewReg->addSuperClass(Supers[i], Ranges[i]); in expand()
600 if (NewReg->getValue(RV.getNameInit())) in expand()
624 NewReg->addValue(*Def->getValue(Field)); in expand()
633 NewReg->addValue(*DefRV); in expand()
638 NewReg->addValue(RV); in expand()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp491 const MemRegion *NewReg = symVal.castAs<loc::MemRegionVal>().getRegion(); in VisitCXXNewExpr() local
494 getStoreManager().GetElementZeroRegion(NewReg, ObjTy); in VisitCXXNewExpr()
/external/llvm/lib/CodeGen/SelectionDAG/
DInstrEmitter.cpp460 unsigned NewReg = MRI->createVirtualRegister(RC); in ConstrainForSubReg() local
461 BuildMI(*MBB, InsertPos, DL, TII->get(TargetOpcode::COPY), NewReg) in ConstrainForSubReg()
463 return NewReg; in ConstrainForSubReg()
/external/llvm/include/llvm/Target/
DTargetRegisterInfo.h734 virtual void updateRegAllocHint(unsigned Reg, unsigned NewReg, in updateRegAllocHint() argument
/external/llvm/lib/Target/X86/
DX86FloatingPoint.cpp1578 unsigned NewReg = ScratchFPReg; in handleSpecialFP() local
1579 duplicateToTop(FirstFPRegOp, NewReg, MI); in handleSpecialFP()
1580 FirstFPRegOp = NewReg; in handleSpecialFP()
/external/llvm/lib/Target/ARM/InstPrinter/
DARMInstPrinter.cpp282 MCOperand NewReg; in printInst() local
287 NewReg = MCOperand::createReg(MRI.getMatchingSuperReg( in printInst()
289 NewMI.addOperand(NewReg); in printInst()

12