/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyPeephole.cpp | 60 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 …]
|
D | WebAssemblyExplicitLocals.cpp | 248 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 …]
|
D | WebAssemblyRegStackify.cpp | 502 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 …]
|
D | WebAssemblyDebugValueManager.cpp | 38 unsigned NewReg) { in clone() argument 43 Clone->getOperand(0).setReg(NewReg); in clone()
|
D | WebAssemblyDebugValueManager.h | 32 void clone(MachineInstr *Insert, unsigned NewReg);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CriticalAntiDepBreaker.cpp | 359 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 …]
|
D | AntiDepBreaker.h | 59 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()
|
D | AggressiveAntiDepBreaker.cpp | 662 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 …]
|
D | MachineCSE.cpp | 600 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 …]
|
D | ModuloSchedule.cpp | 405 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 …]
|
D | TailDuplicator.cpp | 329 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 …]
|
D | LiveDebugValues.cpp | 250 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()
|
D | PeepholeOptimizer.cpp | 825 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()
|
D | CriticalAntiDepBreaker.h | 101 unsigned NewReg);
|
D | TwoAddressInstructionPass.cpp | 777 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/ |
D | CallLowering.cpp | 327 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()
|
D | Localizer.cpp | 159 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()
|
D | RegisterBankInfo.cpp | 469 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/ |
D | AArch64DeadRegisterDefinitionsPass.cpp | 161 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/ |
D | X86FlagsCopyLowering.cpp | 996 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/ |
D | DbgEntityHistoryCalculator.cpp | 186 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/ |
D | A15SDOptimizer.cpp | 630 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()
|
D | ARMBaseRegisterInfo.cpp | 355 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/ |
D | RDFCopy.cpp | 179 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/ |
D | TailDuplicator.h | 98 void addSSAUpdateEntry(unsigned OrigReg, unsigned NewReg,
|