| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | RegUsageInfoCollector.cpp | 154 for (unsigned PReg = 1, PRegE = TRI->getNumRegs(); PReg < PRegE; ++PReg) { in runOnMachineFunction() local 156 if (SavedRegs.test(PReg)) in runOnMachineFunction() 160 if (!MRI->def_empty(PReg)) { in runOnMachineFunction() 161 for (MCRegAliasIterator AI(PReg, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() 169 if (UsedPhysRegsMask.test(PReg)) in runOnMachineFunction() 170 SetRegAsDefined(PReg); in runOnMachineFunction() 181 for (unsigned PReg = 1, PRegE = TRI->getNumRegs(); PReg < PRegE; ++PReg) { in runOnMachineFunction() 182 if (MachineOperand::clobbersPhysReg(&(RegMask[0]), PReg)) in runOnMachineFunction() 183 dbgs() << printReg(PReg, TRI) << " "; in runOnMachineFunction()
|
| H A D | RegisterUsageInfo.cpp | 93 for (unsigned PReg = 1, PRegE = TRI->getNumRegs(); PReg < PRegE; ++PReg) { in print() local 94 if (MachineOperand::clobbersPhysReg(&(FPRMPair->second[0]), PReg)) in print() 95 OS << printReg(PReg, TRI) << " "; in print()
|
| H A D | RegAllocPBQP.cpp | 627 MCRegister PReg(R); in initializeGraph() local 628 if (MRI.isReserved(PReg)) in initializeGraph() 647 VRegAllowed.push_back(PReg); in initializeGraph() 740 << TRI.getName(PReg) << "\n"); in mapPBQPToRegAlloc() 741 assert(PReg != 0 && "Invalid preg selected."); in mapPBQPToRegAlloc() 742 VRM.assignVirt2Phys(VReg, PReg); in mapPBQPToRegAlloc() 764 Register PReg = MRI.getSimpleHint(LI.reg()); in finalizeAlloc() local 766 if (PReg == 0) { in finalizeAlloc() 771 PReg = CandidateReg; in finalizeAlloc() 775 assert(PReg && in finalizeAlloc() [all …]
|
| H A D | CallingConvLower.cpp | 251 for (MCPhysReg PReg : RemainingRegs) { in analyzeMustTailForwardedRegisters() local 252 Register VReg = MF.addLiveIn(PReg, RC); in analyzeMustTailForwardedRegisters() 253 Forwards.push_back(ForwardedRegister(VReg, PReg, RegVT)); in analyzeMustTailForwardedRegisters()
|
| H A D | MachineRegisterInfo.cpp | 450 Register MachineRegisterInfo::getLiveInVirtReg(MCRegister PReg) const { in getLiveInVirtReg() 452 if (LI.first == PReg) in getLiveInVirtReg()
|
| H A D | MachineFunction.cpp | 677 Register MachineFunction::addLiveIn(MCRegister PReg, in addLiveIn() argument 680 Register VReg = MRI.getLiveInVirtReg(PReg); in addLiveIn() 689 assert((VRegRC == RC || (VRegRC->contains(PReg) && in addLiveIn() 695 MRI.addLiveIn(PReg, VReg); in addLiveIn()
|
| H A D | MachineVerifier.cpp | 558 void MachineVerifier::report_context(MCPhysReg PReg) const { in report_context() 559 errs() << "- p. register: " << printReg(PReg, TRI) << '\n'; in report_context()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyReplacePhysRegs.cpp | 76 for (unsigned PReg = WebAssembly::NoRegister + 1; in runOnMachineFunction() local 77 PReg < WebAssembly::NUM_TARGET_REGS; ++PReg) { in runOnMachineFunction() 79 if (PReg == WebAssembly::VALUE_STACK || PReg == WebAssembly::ARGUMENTS) in runOnMachineFunction() 83 const TargetRegisterClass *RC = TRI.getMinimalPhysRegClass(PReg); in runOnMachineFunction() 86 llvm::make_early_inc_range(MRI.reg_operands(PReg))) { in runOnMachineFunction() 90 if (PReg == TRI.getFrameRegister(MF)) { in runOnMachineFunction() 95 dbgs() << "replacing preg " << PReg << " with " << VReg << " (" in runOnMachineFunction()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonBitTracker.h | 57 unsigned getNextPhysReg(unsigned PReg, unsigned Width) const; 58 unsigned getVirtRegFor(unsigned PReg) const;
|
| H A D | HexagonBitTracker.cpp | 1250 unsigned HexagonEvaluator::getNextPhysReg(unsigned PReg, unsigned Width) const { in getNextPhysReg() argument 1253 bool Is64 = DoubleRegsRegClass.contains(PReg); in getNextPhysReg() 1254 assert(PReg == 0 || Is64 || IntRegsRegClass.contains(PReg)); in getNextPhysReg() 1262 if (PReg == 0) in getNextPhysReg() 1270 if (Phys32[Idx32] == PReg) in getNextPhysReg() 1277 if (Phys64[Idx64] == PReg) in getNextPhysReg() 1289 unsigned HexagonEvaluator::getVirtRegFor(unsigned PReg) const { in getVirtRegFor() 1291 if (P.first == PReg) in getVirtRegFor()
|
| H A D | HexagonBlockRanges.cpp | 280 unsigned PReg = *RC.begin(); in expandToSubRegs() local 281 MCSubRegIndexIterator I(PReg, &TRI); in expandToSubRegs()
|
| H A D | HexagonInstrInfo.cpp | 1363 Register PReg = Op1.getReg(); in expandPostRAPseudo() local 1372 .addReg(PReg, S) in expandPostRAPseudo() 1381 .addReg(PReg, PState) in expandPostRAPseudo() 1396 Register PReg = Op1.getReg(); in expandPostRAPseudo() local 1407 .addReg(PReg, S) in expandPostRAPseudo() 1419 .addReg(PReg, PState) in expandPostRAPseudo()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | CallingConvLower.h | 166 ForwardedRegister(Register VReg, MCPhysReg PReg, MVT VT) in ForwardedRegister() 167 : VReg(VReg), PReg(PReg), VT(VT) {} in ForwardedRegister() 169 MCPhysReg PReg; member
|
| H A D | MachineRegisterInfo.h | 978 Register getLiveInVirtReg(MCRegister PReg) const;
|
| H A D | MachineFunction.h | 848 Register addLiveIn(MCRegister PReg, const TargetRegisterClass *RC);
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64CallLowering.cpp | 520 MBB.addLiveIn(F.PReg); in handleMustTailForwardedRegisters() 521 MIRBuilder.buildCopy(Register(F.VReg), Register(F.PReg)); in handleMustTailForwardedRegisters() 1050 Register ForwardedReg = F.PReg; in lowerTailCall()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMLoadStoreOptimizer.cpp | 1017 Register PReg = PMO.getReg(); in FormCandidates() local 1019 : TRI->getEncodingValue(PReg); in FormCandidates() 1028 PReg == getLoadStoreBaseOp(*MI).getReg()) in FormCandidates() 1039 if (PReg == ARM::SP || PReg == ARM::PC) in FormCandidates()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86FrameLowering.cpp | 3274 unsigned ScratchReg, SPReg, PReg, SPLimitOffset; in adjustForHiPEPrologue() local 3279 PReg = X86::RBP; in adjustForHiPEPrologue() 3285 PReg = X86::EBP; in adjustForHiPEPrologue() 3300 .addReg(ScratchReg), PReg, false, SPLimitOffset); in adjustForHiPEPrologue() 3309 .addReg(ScratchReg), PReg, false, SPLimitOffset); in adjustForHiPEPrologue()
|
| H A D | X86ISelLowering.cpp | 4645 RegsToPass.push_back(std::make_pair(F.PReg, Val)); in LowerCall()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64FrameLowering.cpp | 805 for (MCRegister PReg : in emitZeroCallUsedRegs() 810 if (RegsToZero[PReg]) in emitZeroCallUsedRegs() 811 BuildMI(MBB, MBBI, DL, TII.get(AArch64::PFALSE), PReg); in emitZeroCallUsedRegs()
|
| H A D | AArch64ISelLowering.cpp | 6616 RegsToPass.emplace_back(F.PReg, Val); in LowerCall()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/AsmParser/ |
| H A D | AMDGPUAsmParser.cpp | 3408 auto PReg = mc2PseudoReg(Reg); in usesConstantBus() local 3409 return isSGPR(PReg, TRI) && PReg != SGPR_NULL; in usesConstantBus()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 604 Register PReg = Next->getOperand(0).getReg(); in isLibCallInTailPosition() local 605 if (!PReg.isPhysical()) in isLibCallInTailPosition() 615 if (PReg != Ret->getOperand(0).getReg()) in isLibCallInTailPosition()
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsISelLowering.cpp | 1253 addLiveIn(MachineFunction &MF, unsigned PReg, const TargetRegisterClass *RC) in addLiveIn() argument 1256 MF.getRegInfo().addLiveIn(PReg, VReg); in addLiveIn()
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/ |
| H A D | M68kISelLowering.cpp | 654 RegsToPass.push_back(std::make_pair(unsigned(F.PReg), Val)); in LowerCall()
|